Add new Java/Kotlin/Make warning patterns

Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html
Test: warn.py --gencsv build.log > warnings.csv
Change-Id: I3195999d60f268f105ead022c193319de4af4e64
This commit is contained in:
Chih-Hung Hsieh
2020-01-31 16:14:04 -08:00
parent 0a6022e781
commit a7f5f3fcbb
3 changed files with 14 additions and 0 deletions

View File

@@ -461,12 +461,15 @@ warn_patterns = [
[r".*: warning: \[WaitNotInLoop\] .+"]),
java_medium('A wakelock acquired with a timeout may be released by the system before calling `release`, even after checking `isHeld()`. If so, it will throw a RuntimeException. Please wrap in a try/catch block.',
[r".*: warning: \[WakelockReleasedDangerously\] .+"]),
java_medium_type('AbstractInner'),
java_medium_type('CallbackName'),
java_medium_type('ExecutorRegistration'),
java_medium_type('ListenerLast'),
java_medium_type('MissingBuildMethod'),
java_medium_type('NoByteOrShort'),
java_medium_type('OverlappingConstants'),
java_medium_type('SetterReturnsThis'),
java_medium_type('Typo'),
java_medium_type('UseIcu'),
java_high('AndroidInjection.inject() should always be invoked before calling super.lifecycleMethod()',
[r".*: warning: \[AndroidInjectionBeforeSuper\] .+"]),