Skip to content

Commit 104ac8c

Browse files
author
Vincent Potucek
committed
[prone] Apply UnusedMethod
1 parent b91580d commit 104ac8c

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

gradle/error-prone.gradle

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,10 @@ tasks.withType(JavaCompile).configureEach {
1313
'FormatStringConcatenation',
1414
'FunctionalInterfaceMethodChanged',
1515
'JavaxInjectOnAbstractMethod',
16+
'MissingSummary',
1617
'OverridesJavaxInjectableMethod',
1718
'ReturnValueIgnored',
1819
'Slf4jLogStatement',
19-
'MissingSummary',
20-
// patchable
21-
'LexicographicalAnnotationAttributeListing',
22-
'LexicographicalAnnotationListing',
23-
'NonStaticImport',
24-
'Slf4jLoggerDeclaration', // logger -> log
25-
'StaticImport',
26-
// critical, finds lots of bugs... unused configs and stuff.
27-
'Unused',
28-
'UnusedMethod',
29-
'UnusedParameters',
30-
'UnusedVariable',
3120
)
3221
error(
3322
'AmbiguousJsonCreator',
@@ -53,10 +42,9 @@ tasks.withType(JavaCompile).configureEach {
5342
'StringJoin',
5443
'StringJoining',
5544
)
56-
// fixme bug: this only happens when the file is dirty!
57-
// up2date checking (caching) must consider file changes, as file is currently corrupt!
58-
// fix SelfTest.java:L22 ForbidGradleInternal(import org.gradle.api.internal.project.ProjectInternal;)
59-
errorproneArgs.add('-XepExcludedPaths:.*/SelfTest.java')
45+
// bug: this only happens when the file is dirty.
46+
// might be an up2date (caching) issue, as file is currently in corrupt state.
47+
errorproneArgs.add('-XepExcludedPaths:.*/SelfTest.java') // fix: SelfTest.java:L22 ForbidGradleInternal(import org.gradle.api.internal.project.ProjectInternal;)
6048
if (!getenv().containsKey('CI') && getenv('IN_PLACE')?.toBoolean()) {
6149
errorproneArgs.addAll(
6250
'-XepPatchLocation:IN_PLACE',

0 commit comments

Comments
 (0)