Skip to content

Commit

Permalink
Make DEFAULT_PATCH_CHECKS public (#2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
RTiwary authored Dec 13, 2024
1 parent 4dff2d6 commit 8ec83f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-2978.v2.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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<String> DEFAULT_PATCH_CHECKS = ImmutableList.of(
public static final Set<String> DEFAULT_PATCH_CHECKS = Set.of(
// Baseline checks
"AssertNoArgs",
"AvoidNewHashMapInt",
Expand Down

0 comments on commit 8ec83f4

Please sign in to comment.