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 | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 23 | -Xep:FormatString:ERROR \ |
jdesprez | bc580f9 | 2017-06-02 11:41:40 -0700 | [diff] [blame] | 24 | -Xep:GetClassOnClass:ERROR \ |
jdesprez | a0ebfbd | 2017-07-11 02:53:19 -0700 | [diff] [blame] | 25 | -Xep:IdentityBinaryExpression:ERROR \ |
jdesprez | bc580f9 | 2017-06-02 11:41:40 -0700 | [diff] [blame] | 26 | -Xep:JUnit3TestNotRun:ERROR \ |
Julien Desprez | 592925f | 2017-03-14 12:13:37 +0000 | [diff] [blame] | 27 | -Xep:JUnitAmbiguousTestClass:ERROR \ |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 28 | -Xep:MissingFail:ERROR \ |
Julien Desprez | 592925f | 2017-03-14 12:13:37 +0000 | [diff] [blame] | 29 | -Xep:MissingOverride:ERROR \ |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 30 | -Xep:Overrides:ERROR \ |
Julien Desprez | 8eba990 | 2017-03-02 14:09:04 +0000 | [diff] [blame] | 31 | -Xep:PackageLocation:ERROR \ |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 32 | -Xep:ReferenceEquality:ERROR \ |
| 33 | -Xep:RemoveUnusedImports:ERROR \ |
| 34 | -Xep:ReturnValueIgnored:ERROR \ |
Julien Desprez | 592925f | 2017-03-14 12:13:37 +0000 | [diff] [blame] | 35 | -Xep:SelfEquals:ERROR \ |
jdesprez | bc580f9 | 2017-06-02 11:41:40 -0700 | [diff] [blame] | 36 | -Xep:SizeGreaterThanOrEqualsZero:ERROR \ |
| 37 | -Xep:TryFailThrowable:ERROR |
Julien Desprez | 71489f3 | 2017-03-03 12:46:34 +0000 | [diff] [blame] | 38 | |