blob: 4e331148fa382a1a1cdeb956e054f27986de894e [file] [log] [blame]
Colin Cross9db703b2018-08-10 14:11:59 -07001
jdesprez311bf0a2017-05-01 11:23:30 -07002# Copyright (C) 2017 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# Set of error prone rules to ensure code quality
Colin Cross9db703b2018-08-10 14:11:59 -070017# When updating this list, also update cts_error_prone_rules in Android.bp
Andreas Gampe9f6a8262018-06-18 11:45:15 -070018LOCAL_ERROR_PRONE_FLAGS += -Xep:ArrayToString:ERROR \
19 -Xep:BoxedPrimitiveConstructor:ERROR \
20 -Xep:ConstantField:ERROR \
21 -Xep:EqualsIncompatibleType:ERROR \
22 -Xep:FormatString:ERROR \
23 -Xep:GetClassOnClass:ERROR \
24 -Xep:IdentityBinaryExpression:ERROR \
25 -Xep:JUnit3TestNotRun:ERROR \
26 -Xep:JUnit4ClassUsedInJUnit3:ERROR \
27 -Xep:JUnitAmbiguousTestClass:ERROR \
28 -Xep:MissingFail:ERROR \
29 -Xep:MissingOverride:ERROR \
30 -Xep:Overrides:ERROR \
31 -Xep:ReferenceEquality:ERROR \
32 -Xep:RemoveUnusedImports:ERROR \
33 -Xep:ReturnValueIgnored:ERROR \
34 -Xep:SelfEquals:ERROR \
35 -Xep:SizeGreaterThanOrEqualsZero:ERROR \
36 -Xep:TryFailThrowable:ERROR \
jdesprez311bf0a2017-05-01 11:23:30 -070037