Skip to content

Commit

Permalink
upgrade errorpone static analyzer
Browse files Browse the repository at this point in the history
Temporarily disabled `FieldCanBeFinal` due to google/error-prone#3081
  • Loading branch information
ben-manes committed Apr 13, 2022
1 parent ccd669d commit 702f159
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions gradle/codeQuality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ tasks.withType(JavaCompile).configureEach {
'FieldCanBeFinal', 'FieldCanBeLocal', 'FieldCanBeStatic', 'ForEachIterable',
'FuzzyEqualsShouldNotBeUsedInEqualsMethod', 'FunctionalInterfaceClash', 'HashCodeToString',
'IterablePathParameter', 'LockMethodChecker', 'LongLiteralLowerCaseSuffix', 'MissingBraces',
'MissingDefault', 'MixedArrayDimensions', 'MissingDefault', 'NoAllocation', 'NumericEquality',
'PackageLocation', 'PreferredInterfaceType', 'RedundantThrows', 'RemoveUnusedImports',
'ReturnsNullCollection', 'StringEquality', 'StronglyTypeByteString', 'StronglyTypeTime',
'SwitchDefault', 'TimeUnitMismatch', 'TransientMisuse', 'UnlockMethod',
'UnnecessarilyVisible', 'UnnecessaryAnonymousClass', 'UnnecessaryOptionalGet',
'UnsafeLocaleUsage', 'UsingJsr305CheckReturnValue']
'MissingDefault', 'MixedArrayDimensions', 'MissingDefault', 'NoAllocation', 'PackageLocation',
'PreferredInterfaceType', 'RedundantThrows', 'RemoveUnusedImports', 'ReturnsNullCollection',
'StronglyTypeByteString', 'StronglyTypeTime', 'SwitchDefault', 'TimeUnitMismatch',
'TransientMisuse', 'UnlockMethod', 'UnnecessarilyVisible', 'UnnecessaryAnonymousClass',
'UnnecessaryOptionalGet', 'UnsafeLocaleUsage', 'UsingJsr305CheckReturnValue']
enabledChecks.each { enable(it) }

def disabledChecks = [ 'AutoValueSubclassLeaked', 'EmptyCatch', 'MissingSummary' ]
def disabledChecks = [
'AutoValueSubclassLeaked', 'EmptyCatch', 'FieldCanBeFinal', 'MissingSummary']
disabledChecks.each { disable(it) }

def errorChecks = [ 'NullAway' ]
Expand Down
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ext {
concurrentlinkedhashmap: '1.4.2',
config: '1.4.2',
ehcache3: '3.10.0',
errorprone: '2.11.0',
errorprone: '2.12.1',
expiringMap: '0.5.10',
fastfilter: '1.0.2',
fastutil: '8.5.8',
Expand Down

0 comments on commit 702f159

Please sign in to comment.