Repository navigation
Expand file tree
/
Copy patherrorprone.args
More file actions
195 lines (184 loc) · 6.08 KB
/
Copy patherrorprone.args
File metadata and controls
195 lines (184 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# Error Prone and NullAway configuration.
#
# build.gradle.kts reads this file through options.errorprone.argumentFiles.
#
# Rules for this file:
# 1. Write one flag per line.
# 2. Write a check as the Xep prefix, then the check name, then the severity.
# A severity is ERROR, WARN or OFF. Omit the severity to keep the default.
# 3. Write a check option as the XepOpt prefix, then the key, then the value.
# 4. Never write an "at" sign in a comment. Error Prone reads it as a file reference.
# 5. Never start a comment word with a dash. Error Prone reads it as a flag.
# 6. This file cannot reference a second argument file.
# Nullness
-Xep:NullAway:ERROR
-XepOpt:NullAway:AcknowledgeRestrictiveAnnotations=true
-XepOpt:NullAway:AnnotatedPackages=it.aboutbits.postgresql
-XepOpt:NullAway:CheckOptionalEmptiness=true
# ExhaustiveOverride is safe only while MissingOverride runs at ERROR, because it assumes that every overriding method carries the Override annotation.
-XepOpt:NullAway:ExhaustiveOverride=true
-XepOpt:NullAway:HandleTestAssertionLibraries=true
-XepOpt:NullAway:JSpecifyMode=true
-Xep:JSpecifyUnrecognizedAnnotationLocation:ERROR
-Xep:AnnotationPosition:ERROR
-Xep:EqualsMissingNullable:ERROR
-Xep:MultipleNullnessAnnotations:ERROR
-Xep:RequireExplicitNullMarking:ERROR
# Javadoc
-Xep:AlmostJavadoc:ERROR
-Xep:DepAnn:ERROR
-Xep:EmptyBlockTag:ERROR
-Xep:EscapedEntity:ERROR
-Xep:InvalidBlockTag:ERROR
-Xep:InvalidInlineTag:ERROR
-Xep:InvalidLink:ERROR
-Xep:InvalidParam:ERROR
-Xep:InvalidThrows:ERROR
-Xep:MalformedInlineTag:ERROR
-Xep:MissingSummary:ERROR
-Xep:NotJavadoc:ERROR
-Xep:PreferThrowsTag:ERROR
-Xep:UnescapedEntity:ERROR
-Xep:UnrecognisedJavadocTag:ERROR
-Xep:UrlInSee:ERROR
# Imports
-Xep:BadImport:ERROR
-Xep:NonCanonicalStaticMemberImport:ERROR
-Xep:RemoveUnusedImports:ERROR
-Xep:UnnecessarilyFullyQualified:ERROR
-Xep:UnnecessaryStaticImport:ERROR
-Xep:WildcardImport:ERROR
# Naming and source layout
-Xep:ClassName:ERROR
-Xep:ClassNamedLikeTypeParameter:ERROR
-Xep:ConstantField:ERROR
-Xep:DefaultPackage:ERROR
-Xep:DifferentNameButSame:ERROR
-Xep:MultipleTopLevelClasses:ERROR
-Xep:NegativeBoolean:ERROR
-Xep:PackageLocation:ERROR
-Xep:PublicApiNamedStreamShouldReturnStream:ERROR
-Xep:UngroupedOverloads:ERROR
# Blocks, statements and switches
-Xep:EmptyCatch:ERROR
-Xep:EmptyIf:ERROR
-Xep:EmptyTopLevelDeclaration:ERROR
-Xep:ForEachIterable:ERROR
-Xep:IfChainToSwitch:ERROR
-Xep:MissingBraces:ERROR
-Xep:MissingCasesInEnumSwitch:ERROR
-Xep:MissingDefault:ERROR
-Xep:MultiVariableDeclaration:ERROR
-Xep:SwitchDefault:ERROR
-Xep:UnnecessaryDefaultInEnumSwitch:ERROR
-Xep:UseEnumSwitch:ERROR
# Class design
-Xep:AvoidObjectArrays:ERROR
-Xep:BuilderReturnThis:ERROR
-Xep:FieldCanBeFinal:ERROR
-Xep:FieldCanBeLocal:ERROR
-Xep:FieldCanBeStatic:ERROR
-Xep:InconsistentOverloads:ERROR
-Xep:InterfaceWithOnlyStatics:ERROR
-Xep:MethodCanBeStatic:ERROR
-Xep:MutablePublicArray:ERROR
-Xep:NonFinalStaticField:ERROR
-Xep:PreferredInterfaceType:ERROR
-Xep:PrivateConstructorForUtilityClass:ERROR
-Xep:ProtectedMembersInFinalClass:ERROR
-Xep:RecordComponentAccessorAnnotationConflict:ERROR
-Xep:TooManyParameters:ERROR
-Xep:UnnecessarilyVisible:ERROR
# Correctness
-Xep:AmbiguousMethodReference:ERROR
-Xep:AssertFalse:ERROR
-Xep:AssignmentExpression:ERROR
-Xep:BadInstanceof:ERROR
-Xep:CatchingUnchecked:ERROR
-Xep:CheckReturnValue:ERROR
-Xep:CheckedExceptionNotThrown:ERROR
-Xep:ComparisonContractViolated:ERROR
-Xep:DistinctVarargsChecker:ERROR
-Xep:EqualsBrokenForNull:ERROR
-Xep:EqualsIncompatibleType:ERROR
-Xep:FallThrough:ERROR
-Xep:Finally:ERROR
-Xep:FunctionalInterfaceClash:ERROR
-Xep:HashCodeInObjectsHash:ERROR
-Xep:HidingField:ERROR
-Xep:InterruptedExceptionSwallowed:ERROR
-Xep:Interruption:ERROR
-Xep:IterablePathParameter:ERROR
# Important due to performance reasons, see
# https://github.com/uber/NullAway/wiki/Configuration#perform-exhaustive-override-checks
-Xep:MissingOverride:ERROR
-Xep:MockNotUsedInProduction:ERROR
-Xep:NarrowingCompoundAssignment:ERROR
-Xep:Overrides:ERROR
-Xep:PreferCharsetOverload:ERROR
-Xep:PreferJavaTimeOverload:ERROR
-Xep:PrimitiveArrayPassedToVarargsMethod:ERROR
-Xep:ReferenceEquality:ERROR
-Xep:SelfComparison:ERROR
-Xep:StaticQualifiedUsingExpression:ERROR
-Xep:StronglyTypeTime:ERROR
-Xep:SymbolToString:ERROR
-Xep:TimeUnitMismatch:ERROR
-Xep:TypeToString:ERROR
-Xep:UndefinedEquals:ERROR
-Xep:UnsafeLocaleUsage:ERROR
-Xep:UnusedException:ERROR
-Xep:UnusedMethod:ERROR
-Xep:UnusedNestedClass:ERROR
-Xep:UnusedVariable:ERROR
-Xep:UseCorrectAssertInTests:ERROR
-Xep:ValueClassIdentity:ERROR
# Security and platform
-Xep:BanClassLoader:ERROR
-Xep:BanSerializableRead:ERROR
-Xep:InsecureCryptoUsage:ERROR
-Xep:SunApi:ERROR
-Xep:SystemExitOutsideMain:ERROR
-Xep:SystemOut:ERROR
# Dependency injection
-Xep:MissingRuntimeRetention:ERROR
-Xep:MoreThanOneQualifier:ERROR
-Xep:QualifierWithTypeUse:ERROR
# Redundant code and house style
-Xep:BooleanLiteral:ERROR
-Xep:ComplexBooleanConstant:ERROR
-Xep:ConstantPatternCompile:ERROR
-Xep:DeduplicateConstants:ERROR
-Xep:ExplicitArrayForVarargs:ERROR
-Xep:InitializeInline:ERROR
-Xep:LambdaFunctionalInterface:ERROR
-Xep:LongLiteralLowerCaseSuffix:ERROR
-Xep:MixedArrayDimensions:ERROR
-Xep:ParameterComment:ERROR
-Xep:PatternMatchingInstanceof:ERROR
-Xep:RedundantOverride:ERROR
-Xep:RedundantThrows:ERROR
-Xep:RequireNonNullRefactoring:ERROR
-Xep:StringConcatToTextBlock:ERROR
-Xep:StringFormatWithLiteral:ERROR
-Xep:SuppressWarningsWithoutExplanation:ERROR
-Xep:ThrowSpecificExceptions:ERROR
-Xep:TransientMisuse:ERROR
-Xep:TryWithResourcesVariable:ERROR
-Xep:UnnamedVariable:ERROR
# Report every unused catch, lambda and resource variable, not only the ones named unused
-XepOpt:UnnamedVariable:OnlyRenameVariablesNamedUnused=false
-Xep:UnnecessarilyUsedValue:ERROR
-Xep:UnnecessaryAnonymousClass:ERROR
-Xep:UnnecessaryAssignment:ERROR
-Xep:UnnecessaryBoxedAssignment:ERROR
-Xep:UnnecessaryBoxedVariable:ERROR
-Xep:UnnecessaryFinal:ERROR
-Xep:UnnecessaryLambda:ERROR
-Xep:UnnecessaryMethodReference:ERROR
-Xep:UnnecessaryOptionalGet:ERROR
-Xep:UnnecessaryParentheses:ERROR
-Xep:Varifier:ERROR
-Xep:YodaCondition:ERROR
# Turn off as this check is too noisy
-Xep:StringSplitter:OFF