Skip to content

Commit

Permalink
upgrade errorprone static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed May 26, 2022
1 parent 04358e1 commit 2b31168
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .codecov
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
coverage:
comment: false
round: nearest
status:
project:
default:
informational: true
patch:
default:
informational: true
15 changes: 7 additions & 8 deletions gradle/codeQuality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,13 @@ tasks.withType(JavaCompile).configureEach {
options.errorprone {
def enabledChecks = [
'AssertFalse', 'CatchingUnchecked', 'CheckedExceptionNotThrown', 'ClassName',
'ComparisonContractViolated', 'DepAnn', 'DivZero', 'EmptyIf', 'EqualsBrokenForNull',
'FieldCanBeFinal', 'FieldCanBeLocal', 'FieldCanBeStatic', 'ForEachIterable',
'FuzzyEqualsShouldNotBeUsedInEqualsMethod', 'FunctionalInterfaceClash',
'IterablePathParameter', 'LockMethodChecker', 'LongLiteralLowerCaseSuffix', 'MissingBraces',
'MissingDefault', 'MixedArrayDimensions', 'MissingDefault', 'NoAllocation', 'PackageLocation',
'PreferredInterfaceType', 'RedundantThrows', 'RemoveUnusedImports', 'ReturnsNullCollection',
'StronglyTypeByteString', 'StronglyTypeTime', 'SwitchDefault', 'TimeUnitMismatch',
'TransientMisuse', 'UnlockMethod', 'UnnecessarilyVisible', 'UnnecessaryAnonymousClass',
'ComparisonContractViolated', 'DepAnn', 'EmptyIf', 'EqualsBrokenForNull', 'FieldCanBeLocal',
'FieldCanBeStatic', 'ForEachIterable', 'FuzzyEqualsShouldNotBeUsedInEqualsMethod',
'FunctionalInterfaceClash', 'IterablePathParameter', 'LongLiteralLowerCaseSuffix',
'MissingBraces', 'MissingDefault', 'MixedArrayDimensions', 'MissingDefault', 'NoAllocation',
'PackageLocation', 'PreferredInterfaceType', 'RedundantThrows', 'RemoveUnusedImports',
'ReturnsNullCollection', 'StronglyTypeByteString', 'StronglyTypeTime', 'SwitchDefault',
'TimeUnitMismatch', 'TransientMisuse', 'UnnecessarilyVisible', 'UnnecessaryAnonymousClass',
'UnnecessaryOptionalGet', 'UnsafeLocaleUsage', 'UsingJsr305CheckReturnValue']
enabledChecks.each { enable(it) }

Expand Down
4 changes: 2 additions & 2 deletions 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.13.1',
errorprone: '2.14.0',
expiringMap: '0.5.10',
fastfilter: '1.0.2',
fastutil: '8.5.8',
Expand Down Expand Up @@ -79,7 +79,7 @@ ext {
slf4jTest: '2.6.1',
testng: '7.6.0',
truth: '1.1.3',
felix: '7.0.3',
felix: '7.0.4',
felixScr: '2.2.0',
osgiUtilFunction: '1.2.0',
osgiUtilPromise: '1.2.0',
Expand Down

0 comments on commit 2b31168

Please sign in to comment.