Skip to content

Commit

Permalink
Make ExtendsAutoValue an ERROR.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=283030476
  • Loading branch information
graememorgan authored and nick-someone committed Dec 2, 2019
1 parent 2230bd1 commit 36713f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@BugPattern(
name = "ExtendsAutoValue",
summary = "Do not extend an @AutoValue/@AutoOneOf class in non-generated code.",
severity = SeverityLevel.WARNING)
severity = SeverityLevel.ERROR)
public final class ExtendsAutoValue extends BugChecker implements ClassTreeMatcher {

private static final Supplier<ImmutableSet<Name>> AUTOS =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ public static ScannerSupplier errorChecks() {
EqualsNaN.class,
EqualsReference.class,
EqualsWrongThing.class,
ExtendsAutoValue.class,
ForOverrideChecker.class,
FormatString.class,
FormatStringAnnotationChecker.class,
Expand Down Expand Up @@ -661,7 +662,6 @@ public static ScannerSupplier errorChecks() {
EqualsUnsafeCast.class,
EqualsUsingHashCode.class,
ExtendingJUnitAssert.class,
ExtendsAutoValue.class,
FallThrough.class,
Finally.class,
FloatCast.class,
Expand Down

0 comments on commit 36713f5

Please sign in to comment.