Skip to content

Commit

Permalink
Disable UnusedVariable in favour of StrictUnusedVariable (#888)
Browse files Browse the repository at this point in the history
Disable `UnusedVariable` error prone rule by default
  • Loading branch information
ferozco authored and bulldozer-bot[bot] committed Sep 24, 2019
1 parent 95b78c6 commit a1d3c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-888.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: Disable `UnusedVariable` error prone rule by default
links:
- https://github.com/palantir/gradle-baseline/pull/888
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ private static void configureErrorProneOptions(
errorProneOptions.setDisableWarningsInGeneratedCode(true);
errorProneOptions.setExcludedPaths(
String.format("%s/(build|src/generated.*)/.*", project.getProjectDir().getPath()));
errorProneOptions.check("UnusedVariable", CheckSeverity.OFF);
errorProneOptions.check("EqualsHashCode", CheckSeverity.ERROR);
errorProneOptions.check("EqualsIncompatibleType", CheckSeverity.ERROR);
errorProneOptions.check("StreamResourceLeak", CheckSeverity.ERROR);
Expand Down

0 comments on commit a1d3c42

Please sign in to comment.