summaryrefslogtreecommitdiff
path: root/tools/stringslint
AgeCommit message (Collapse)Author
2020-10-07Shift stringslint to using python3.Jeff Sharkey
Bug: 169704254 Test: manual Change-Id: I354ef4b12c75505a069fdf657ab98a9b122785c7
2018-11-23Add linter for strings attribute namesAnton Hansson
Only one bad example for now, which is a misspelling that's not entirely uncommon and can lead to real problems (see linked bug). Example output: Line 58: 'my_new': Misspelled <string> attribute. Actual: translateable Example: translatable Bug: 119884572 Test: with a misspelled attribute Change-Id: If61412fe318a34191920781c4834584363080e11
2018-06-06More string lint checks.Jeff Sharkey
Expand strings into samples that are representative of what'll be shown in UI, and warn if they're longer than defined CHAR LIMIT. Guide all-caps strings towards android:textAllCaps if actions. Warn when strings mention "phone" without defining product-specific variants. Bug: 76097999 Test: manual Change-Id: I08046ecf531b2d616cb357639e804b73d6a12bea
2018-03-27Detect paths without lunch.Jeff Sharkey
Test: manual Bug: 76097999 Change-Id: I47b97719f6aa957b0a216e6e1930ae2fe2f0108b
2018-03-26Add linter for strings.xml.Jeff Sharkey
Strings are tedious to get right, so write a lint script that catches common errors to warn developers before they're uploaded. Test: builds, boots Bug: 76097999 Change-Id: I9826ca796c17cd93a100951d56214653de63a379