summaryrefslogtreecommitdiff
path: root/tools/stringslint/stringslint.py
AgeCommit message (Collapse)Author
2022-08-03Migrate stringslint.py to AyeAye. Jeff Sharkey
This script has been deprecated and replaced by AyeAye checks directly in Gerrit. Bug: 164530987 Test: none Change-Id: I6a36c0a7ac10cbec0667780c30ba4a20124edee4
2021-01-22Shift stringslint to using python3. Hai Shalom
Bug: 169704254 Test: manual Change-Id: I175bdf75e7424bef6d4ac9f51797510766de2b14 (cherry picked from commit 85ccd0418097d774d8db8af77da2d6b5ed75d743) Merged-In: I354ef4b12c75505a069fdf657ab98a9b122785c7
2018-11-23Add linter for strings attribute names Anton 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-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