1
2# 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
17# When updating this list, also update cts_error_prone_rules in Android.bp
18LOCAL_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 \
37
38