Skip to content

Commit

Permalink
Errorprone ignores code in build directory (#853)
Browse files Browse the repository at this point in the history
Do not run error prone on any code in the build directory
  • Loading branch information
ferozco authored and bulldozer-bot[bot] committed Sep 18, 2019
1 parent 3558815 commit d319427
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-853.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: Do not run error prone on any code in the build directory
links:
- https://github.com/palantir/gradle-baseline/pull/853
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private static void configureErrorProneOptions(

errorProneOptions.setEnabled(true);
errorProneOptions.setDisableWarningsInGeneratedCode(true);
errorProneOptions.setExcludedPaths(project.getBuildDir().getAbsolutePath() + "/.*");
errorProneOptions.check("EqualsHashCode", CheckSeverity.ERROR);
errorProneOptions.check("EqualsIncompatibleType", CheckSeverity.ERROR);
errorProneOptions.check("StreamResourceLeak", CheckSeverity.ERROR);
Expand Down

0 comments on commit d319427

Please sign in to comment.