From 4f6505e8934bdc2e19e650db7f5901c04e086fef Mon Sep 17 00:00:00 2001 From: forozco Date: Tue, 3 Sep 2019 23:32:12 -0400 Subject: [PATCH 1/2] disable PreconditionsConstantMessage on gradle plugins --- .../groovy/com/palantir/baseline/plugins/BaselineErrorProne.java | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java index 968b002e5..05f4cc7a1 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java @@ -167,6 +167,7 @@ public void apply(Project project) { errorProneOptions.check("Slf4jLogsafeArgs", CheckSeverity.OFF); errorProneOptions.check("PreferSafeLoggableExceptions", CheckSeverity.OFF); errorProneOptions.check("PreferSafeLoggingPreconditions", CheckSeverity.OFF); + errorProneOptions.check("PreconditionsConstantMessage", CheckSeverity.OFF); })); }); From b5c85955ee01f0244a9b793254b8b3a4542976c8 Mon Sep 17 00:00:00 2001 From: forozco Date: Wed, 4 Sep 2019 03:32:12 +0000 Subject: [PATCH 2/2] Add generated changelog entries --- changelog/@unreleased/pr-790.v2.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelog/@unreleased/pr-790.v2.yml diff --git a/changelog/@unreleased/pr-790.v2.yml b/changelog/@unreleased/pr-790.v2.yml new file mode 100644 index 000000000..b3a65b5b5 --- /dev/null +++ b/changelog/@unreleased/pr-790.v2.yml @@ -0,0 +1,5 @@ +type: improvement +improvement: + description: Disable `PreconditionsConstantMessage` on gradle plugins + links: + - https://github.com/palantir/gradle-baseline/pull/790