Skip to content

Commit

Permalink
Promote two error-prone checks to error (#758)
Browse files Browse the repository at this point in the history
error-prone now detects `Duration#getNanos` mistakes and bans URL in equals methods
  • Loading branch information
iamdanfox authored and bulldozer-bot[bot] committed Aug 19, 2019
1 parent 24bbd6c commit 72b701d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-758.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: improvement
improvement:
description: error-prone now detects `Duration#getNanos` mistakes and bans URL in
equals methods
links:
- https://github.com/palantir/gradle-baseline/pull/758
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public void apply(Project project) {
errorProneOptions.check("EqualsIncompatibleType", CheckSeverity.ERROR);
errorProneOptions.check("StreamResourceLeak", CheckSeverity.ERROR);
errorProneOptions.check("InputStreamSlowMultibyteRead", CheckSeverity.ERROR);
errorProneOptions.check("JavaDurationGetSecondsGetNano", CheckSeverity.ERROR);
errorProneOptions.check("URLEqualsHashCode", CheckSeverity.ERROR);

if (jdkVersion.compareTo(JavaVersion.toVersion("12.0.1")) >= 0) {
// Errorprone isn't officially compatible with Java12, but in practise everything
Expand Down

0 comments on commit 72b701d

Please sign in to comment.