Recognize more warning patterns.
* add more Java, Kotlin, and Rust warning patterns * recognize more clang-tidy cert-* and bugprone-* warnings; still keep the catch-all 'cert' and 'bugprone' groups. Test: warn.py build.log > warnings.html Change-Id: I909ec09822f42f60493ebe943c055bf0d4b69938
This commit is contained in:
@@ -485,16 +485,24 @@ warn_patterns = [
|
||||
java_medium('Static method should be qualified',
|
||||
[r'.*\.java:.*: warning: \[static\] static method should be qualified']),
|
||||
medium('AbstractInner'),
|
||||
medium('BothPackageInfoAndHtml'),
|
||||
medium('CallbackName'),
|
||||
medium('ExecutorRegistration'),
|
||||
medium('HiddenTypeParameter'),
|
||||
medium('JavaApiUsedByMainlineModule'),
|
||||
medium('ListenerLast'),
|
||||
medium('MinMaxConstant'),
|
||||
medium('MissingBuildMethod'),
|
||||
medium('NoByteOrShort'),
|
||||
medium('OverlappingConstants'),
|
||||
medium('SetterReturnsThis'),
|
||||
medium('StreamFiles'),
|
||||
medium('Typo'),
|
||||
medium('UseIcu'),
|
||||
medium('fallthrough'),
|
||||
medium('overrides'),
|
||||
medium('serial'),
|
||||
medium('try'),
|
||||
high('AndroidInjectionBeforeSuper',
|
||||
'AndroidInjection.inject() should always be invoked before calling super.lifecycleMethod()'),
|
||||
high('AndroidJdkLibsChecker',
|
||||
@@ -783,6 +791,8 @@ warn_patterns = [
|
||||
# Other javac tool warnings
|
||||
java_medium('addNdkApiCoverage failed to getPackage',
|
||||
[r".*: warning: addNdkApiCoverage failed to getPackage"]),
|
||||
java_medium('bad path element',
|
||||
[r".*: warning: \[path\] bad path element .*\.jar"]),
|
||||
java_medium('Supported version from annotation processor',
|
||||
[r".*: warning: Supported source version .+ from annotation processor"]),
|
||||
]
|
||||
|
Reference in New Issue
Block a user