aboutsummaryrefslogtreecommitdiff
path: root/tools/warn/java_warn_patterns.py
Commit message (Collapse)AuthorAgeFilesLines
* Add one more Java warning patternChih-Hung Hsieh2021-06-101-0/+2
| | | | | | Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: Ibc0ef7d1df29485ab4389f5c595fac77f69e19e7
* Add new Asm/C++/Java/Make warning patternsChih-Hung Hsieh2021-06-021-0/+6
| | | | | | | | | * 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
* Fix/suppress most pylint and gpylint warningsChih-Hung Hsieh2021-04-281-2/+5
| | | | | | | | | | | | | | * Add missing function doc strings. Suppress this warning on trivial functions in *_warn_patterns.py. * Remove unused g-importing-memeber, g-complex-comprehension. * Suppress pylint warning on unrecognized g-* options. * Suppress too-few-public-methods warnings on simple classes. * Suppress too-many-arguments and missing-function-docstring in html_writer.py, which will be refactored later. * Fix bad naming, long lines and line breaks, and bad quotes. Test: compare output for build.log Change-Id: Icdb34f014a10ec1e642c2cfe8003fc3ae245b507
* Add new Java/C++/Yacc warning patternsChih-Hung Hsieh2020-09-181-0/+3
| | | | | | Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I49eafa322902f0587738b583b6262117595318ee
* Separate html/csv output functions into html_writer.pyChih-Hung Hsieh2020-02-271-1/+1
| | | | | | | | * also suppress some pylint warnings Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I497dbb7496ca21470ba33db03eedb27f5e8f1e96
* Recognize more warning patterns.Chih-Hung Hsieh2020-02-261-0/+10
| | | | | | | | | * 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
* More Java/Kotlin warning patternsChih-Hung Hsieh2020-02-041-690/+715
| | | | | | | | * Simplify java warning pattern functions. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I837fa9290acded3b936182877d9e0c00de4cdf4f
* Add new Java/Kotlin/Make warning patternsChih-Hung Hsieh2020-01-311-0/+3
| | | | | | Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I3195999d60f268f105ead022c193319de4af4e64
* Add new C++ and Java warning patternsChih-Hung Hsieh2020-01-291-0/+11
| | | | | | Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I11457fdab7abd475e835367582c0b9aab11cfe6f
* Call a writer to dump html; new warning patterns.Chih-Hung Hsieh2020-01-141-0/+2
| | | | | | | | | | * HTML emit functions now take a writer parameter. This makes warn_common.py one step closer to the ChromeOS version. * Add new found warning patterns from java and yacc. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I5c446ca767746598f07603591fdf98f7d82cae17
* Use new Severity class and update *_warn_patternsChih-Hung Hsieh2020-01-101-3/+8
| | | | | | | | | | * This new class definition and patterns are shared between Android and ChromeOS compiler tools. * Suppress hard to fix and false positive linter warnings. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: Icb47809100ad30796cb1da82610e989d450194fa
* Add new compiler warning patternsChih-Hung Hsieh2020-01-061-3/+23
| | | | | | | | * Mostly new Java and Kotlin warnings found in nightly builds. * More clean up of Java and C++ warning patterns will follow. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Change-Id: I8776401d15c3a59535722d52a5eec03f954d3b15
* Split warn.py into multiple filesChih-Hung Hsieh2019-12-171-0/+724
* Split warning patterns into *_warn_patterns.py * Split project list into android_project_list.py * Split out the Severity class, to be changed later * Split core of warn.py into warn_common.py and leave only platform dependent code in warn.py. This allows the core logic be used with different parallel processing libraries. * Old warn.py just calls -m warn.warn. Test: path_to_build/tools/warn.py build.log Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Change-Id: I6734e4472a21018cd5ce06d549f6dbca24f4de54