Files
frameworks_base/tools/stringslint/stringslint_sha.sh
Jeff Sharkey abe058c0f0 Add linter for strings.xml.
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
2018-03-26 11:04:48 -06:00

5 lines
228 B
Bash
Executable File

#!/bin/bash
git show --name-only --pretty=format: $1 | grep values/strings.xml | while read file; do
python $ANDROID_BUILD_TOP/frameworks/base/tools/stringslint/stringslint.py <(git show $1:$file) <(git show $1^:$file)
done