Add new Asm/C++/Java/Make warning patterns

* Change some incorrectly-classified logtags warnings to C++.
* Fix gpylint warnings of long lines in html_writer.py.

Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html
Test: warn.py --gencsv build.log > warnings.csv
Change-Id: I98c01dadfd72b202d81ef7c94e93c42182f6065c
This commit is contained in:
Chih-Hung Hsieh
2021-06-01 16:03:22 -07:00
committed by Chih-hung Hsieh
parent 54b437286b
commit 5d9ee04f56
5 changed files with 54 additions and 29 deletions

View File

@@ -35,6 +35,9 @@ warn_patterns = [
{'category': 'make', 'severity': Severity.HIGH,
'description': 'System module linking to a vendor module',
'patterns': [r".*: warning: .+ \(.+\) should not link to .+ \(partition:.+\)"]},
{'category': 'make', 'severity': Severity.HIGH,
'description': 'make: lstat file does not exist',
'patterns': [r".*: warning: lstat .+: file does not exist"]},
{'category': 'make', 'severity': Severity.MEDIUM,
'description': 'Invalid SDK/NDK linking',
'patterns': [r".*: warning: .+ \(.+\) should not link to .+ \(.+\)"]},
@@ -56,6 +59,9 @@ warn_patterns = [
{'category': 'make', 'severity': Severity.MEDIUM,
'description': 'make: deprecated macros',
'patterns': [r".*\.mk:.* warning:.* [A-Z_]+ (is|has been) deprecated."]},
{'category': 'make', 'severity': Severity.MEDIUM,
'description': 'make: other Android.mk warnings',
'patterns': [r".*/Android.mk:.*: warning: .+"]},
]