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

@@ -112,8 +112,16 @@ warn_patterns = [
kotlin('never used parameter or variable',
[r".*\.kt:.*: warning: (parameter|variable) '.*' is never used$",
r".*\.kt:.*: warning: (parameter|variable) '.*' is never used, could be renamed to _$"]),
kotlin('initializer is redundant',
[r".*\.kt:.*: warning: .* initializer is redundant$"]),
kotlin('elvis operator always returns ...',
[r".*\.kt:.*: warning: elvis operator \(\?:\) always returns .+"]),
kotlin('shadowed name',
[r".*\.kt:.*: warning: name shadowed: .+"]),
kotlin('unchecked cast',
[r".*\.kt:.*: warning: unchecked cast: .* to .*$"]),
kotlin('unnecessary safe call on a non-null receiver',
[r".*\.kt:.*: warning: unnecessary safe call on a non-null receiver"]),
kotlin('Deprecated in Java',
[r".*\.kt:.*: warning: '.*' is deprecated. Deprecated in Java"]),
kotlin('library has Kotlin runtime',