From 8ec83f475645600d541d73adb32a906a86fe6b08 Mon Sep 17 00:00:00 2001 From: RTiwary Date: Fri, 13 Dec 2024 07:46:42 -0500 Subject: [PATCH] Make DEFAULT_PATCH_CHECKS public (#2978) --- changelog/@unreleased/pr-2978.v2.yml | 6 ++++++ .../baseline/extensions/BaselineErrorProneExtension.java | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 changelog/@unreleased/pr-2978.v2.yml diff --git a/changelog/@unreleased/pr-2978.v2.yml b/changelog/@unreleased/pr-2978.v2.yml new file mode 100644 index 000000000..7ebb6fb30 --- /dev/null +++ b/changelog/@unreleased/pr-2978.v2.yml @@ -0,0 +1,6 @@ +type: fix +fix: + description: Make `BaselineErrorProne.DEFAULT_PATCH_CHECKS` public so other tools + can use it. + links: + - https://github.com/palantir/gradle-baseline/pull/2978 diff --git a/gradle-baseline-java/src/main/java/com/palantir/baseline/extensions/BaselineErrorProneExtension.java b/gradle-baseline-java/src/main/java/com/palantir/baseline/extensions/BaselineErrorProneExtension.java index 8682bca2d..bf9df7a6a 100644 --- a/gradle-baseline-java/src/main/java/com/palantir/baseline/extensions/BaselineErrorProneExtension.java +++ b/gradle-baseline-java/src/main/java/com/palantir/baseline/extensions/BaselineErrorProneExtension.java @@ -16,8 +16,8 @@ package com.palantir.baseline.extensions; -import com.google.common.collect.ImmutableList; import com.palantir.gradle.suppressibleerrorprone.SuppressibleErrorProneExtension; +import java.util.Set; import org.gradle.api.provider.SetProperty; public abstract class BaselineErrorProneExtension { @@ -26,7 +26,7 @@ public abstract class BaselineErrorProneExtension { * Do not add SUGGESTION checks here. Instead either increase the severity to WARNING or do not apply them by * default. */ - private static final ImmutableList DEFAULT_PATCH_CHECKS = ImmutableList.of( + public static final Set DEFAULT_PATCH_CHECKS = Set.of( // Baseline checks "AssertNoArgs", "AvoidNewHashMapInt",