Skip to content

Commit

Permalink
Turn down DivZero.
Browse files Browse the repository at this point in the history
It's aiming to replicate a javac warning, which I think we enable as an error anyway?

PiperOrigin-RevId: 443055423
  • Loading branch information
graememorgan authored and Error Prone Team committed Apr 20, 2022
1 parent f174a80 commit 5361233
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 239 deletions.
80 changes: 0 additions & 80 deletions core/src/main/java/com/google/errorprone/bugpatterns/DivZero.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
import com.google.errorprone.bugpatterns.DifferentNameButSame;
import com.google.errorprone.bugpatterns.DiscardedPostfixExpression;
import com.google.errorprone.bugpatterns.DistinctVarargsChecker;
import com.google.errorprone.bugpatterns.DivZero;
import com.google.errorprone.bugpatterns.DoNotCallChecker;
import com.google.errorprone.bugpatterns.DoNotCallSuggester;
import com.google.errorprone.bugpatterns.DoNotClaimAnnotations;
Expand Down Expand Up @@ -1016,7 +1015,6 @@ public static ScannerSupplier errorChecks() {
DeduplicateConstants.class,
DepAnn.class,
DifferentNameButSame.class,
DivZero.class,
EmptyIfStatement.class,
EmptyTopLevelDeclaration.class,
EqualsBrokenForNull.class,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
import com.google.errorprone.bugpatterns.BugChecker;
import com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter;
import com.google.errorprone.bugpatterns.DepAnn;
import com.google.errorprone.bugpatterns.DivZero;
import com.google.errorprone.bugpatterns.EqualsIncompatibleType;
import com.google.errorprone.bugpatterns.LongLiteralLowerCaseSuffix;
import com.google.errorprone.bugpatterns.MethodCanBeStatic;
import com.google.errorprone.bugpatterns.PackageLocation;
import com.google.errorprone.bugpatterns.ReferenceEquality;
import com.google.errorprone.bugpatterns.StaticQualifiedUsingExpression;
Expand Down Expand Up @@ -325,7 +325,9 @@ public void applyOverridesEnableAllChecks() {
// The 'AllDisabledChecksAsWarnings' flag doesn't populate through to additional plugins
assertScanner(
ss.applyOverrides(epOptions)
.plus(ScannerSupplier.fromBugCheckerClasses(DivZero.class).filter(t -> false)))
.plus(
ScannerSupplier.fromBugCheckerClasses(MethodCanBeStatic.class)
.filter(t -> false)))
.hasEnabledChecks(BadShiftAmount.class, StaticQualifiedUsingExpression.class);
}

Expand Down
1 change: 0 additions & 1 deletion docs/bugpattern/DivZero.md

This file was deleted.

0 comments on commit 5361233

Please sign in to comment.