Julien Desprez | 0f0a02a | 2017-03-01 16:59:10 +0000 | [diff] [blame] | 1 | # Copyright (C) 2017 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # Set of error prone rules to ensure code quality |
Julien Desprez | 8eba990 | 2017-03-02 14:09:04 +0000 | [diff] [blame] | 16 | # PackageLocation check requires the androidCompatible=false otherwise it does not do anything. |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 17 | LOCAL_ERROR_PRONE_FLAGS:= -XDandroidCompatible=false \ |
Julien Desprez | 0f0a02a | 2017-03-01 16:59:10 +0000 | [diff] [blame] | 18 | -Xep:ArrayToString:ERROR \ |
Julien Desprez | 8eba990 | 2017-03-02 14:09:04 +0000 | [diff] [blame] | 19 | -Xep:BoxedPrimitiveConstructor:ERROR \ |
Julien Desprez | 8eba990 | 2017-03-02 14:09:04 +0000 | [diff] [blame] | 20 | -Xep:ConstantField:ERROR \ |
jdesprez | 3a72bc8 | 2017-08-01 17:23:58 -0700 | [diff] [blame] | 21 | -Xep:DeadException:ERROR \ |
jdesprez | bc580f9 | 2017-06-02 11:41:40 -0700 | [diff] [blame] | 22 | -Xep:EqualsIncompatibleType:ERROR \ |
Julien Desprez | e2fb5aa | 2019-03-26 10:49:01 -0700 | [diff] [blame] | 23 | -Xep:ExtendingJUnitAssert:ERROR \ |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 24 | -Xep:FormatString:ERROR \ |
jdesprez | bc580f9 | 2017-06-02 11:41:40 -0700 | [diff] [blame] | 25 | -Xep:GetClassOnClass:ERROR \ |
jdesprez | a0ebfbd | 2017-07-11 02:53:19 -0700 | [diff] [blame] | 26 | -Xep:IdentityBinaryExpression:ERROR \ |
jdesprez | bc580f9 | 2017-06-02 11:41:40 -0700 | [diff] [blame] | 27 | -Xep:JUnit3TestNotRun:ERROR \ |
jdesprez | 9b97fa6 | 2018-01-30 10:34:35 -0800 | [diff] [blame] | 28 | -Xep:JUnit4ClassUsedInJUnit3:ERROR \ |
Julien Desprez | 592925f | 2017-03-14 12:13:37 +0000 | [diff] [blame] | 29 | -Xep:JUnitAmbiguousTestClass:ERROR \ |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 30 | -Xep:MissingFail:ERROR \ |
Julien Desprez | 592925f | 2017-03-14 12:13:37 +0000 | [diff] [blame] | 31 | -Xep:MissingOverride:ERROR \ |
Julien Desprez | e2fb5aa | 2019-03-26 10:49:01 -0700 | [diff] [blame] | 32 | -Xep:ModifiedButNotUsed:ERROR \ |
jdesprez | d0e00da | 2017-09-07 18:54:49 -0700 | [diff] [blame] | 33 | -Xep:MustBeClosedChecker:ERROR \ |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 34 | -Xep:Overrides:ERROR \ |
Julien Desprez | 8eba990 | 2017-03-02 14:09:04 +0000 | [diff] [blame] | 35 | -Xep:PackageLocation:ERROR \ |
Julien Desprez | e2fb5aa | 2019-03-26 10:49:01 -0700 | [diff] [blame] | 36 | -Xep:ParameterName:ERROR \ |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 37 | -Xep:ReferenceEquality:ERROR \ |
| 38 | -Xep:RemoveUnusedImports:ERROR \ |
| 39 | -Xep:ReturnValueIgnored:ERROR \ |
Julien Desprez | 592925f | 2017-03-14 12:13:37 +0000 | [diff] [blame] | 40 | -Xep:SelfEquals:ERROR \ |
jdesprez | bc580f9 | 2017-06-02 11:41:40 -0700 | [diff] [blame] | 41 | -Xep:SizeGreaterThanOrEqualsZero:ERROR \ |
| 42 | -Xep:TryFailThrowable:ERROR |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 43 | |