diff --git a/changelog/@unreleased/pr-1098.v2.yml b/changelog/@unreleased/pr-1098.v2.yml new file mode 100644 index 000000000..8f0a778c1 --- /dev/null +++ b/changelog/@unreleased/pr-1098.v2.yml @@ -0,0 +1,5 @@ +type: fix +fix: + description: Disable ThrowSpecificty and CatchSpecificity fixes by default + links: + - https://github.com/palantir/gradle-baseline/pull/1098 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 bea74932f..5091f1055 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 @@ -25,7 +25,8 @@ public class BaselineErrorProneExtension { // Baseline checks "AssertjPrimitiveComparison", "CatchBlockLogException", - "CatchSpecificity", + // TODO(ckozak): re-enable pending scala check + //"CatchSpecificity", "ExecutorSubmitRunnableFutureIgnored", "FinalClass", "LambdaMethodReference", @@ -45,7 +46,8 @@ public class BaselineErrorProneExtension { "StrictUnusedVariable", "StringBuilderConstantParameters", "ThrowError", - "ThrowSpecificity", + // TODO(ckozak): re-enable pending scala check + //"ThrowSpecificity", // Built-in checks "ArrayEquals",