diff --git a/changelog/@unreleased/pr-751.v2.yml b/changelog/@unreleased/pr-751.v2.yml new file mode 100644 index 000000000..d05cad2a8 --- /dev/null +++ b/changelog/@unreleased/pr-751.v2.yml @@ -0,0 +1,5 @@ +type: improvement +improvement: + description: Apply the suggested fixes for `UnusedMethod` and `UnusedVariable`. + links: + - https://github.com/palantir/gradle-baseline/pull/751 diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java index 5254c496e..7ac038e4a 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java @@ -33,7 +33,9 @@ public class BaselineErrorProneExtension { // Built-in checks "ArrayEquals", - "MissingOverride"); + "MissingOverride", + "UnusedMethod", + "UnusedVariable"); private final ListProperty patchChecks;