Hook up lint color check to settings

After this cl, settings will run hardcoded color check
(go/color-check-guideline) for all the cls in pre-upload.

This check will prompt error message if cl contains hardcoded color.

Bug: 32750778
Test: repo upload .
Change-Id: Id35ded5199094a14fcc4eeebc470164d052e278e
This commit is contained in:
jackqdyulei
2017-09-14 16:11:02 -07:00
parent 4169ac2fed
commit 5024a38965
2 changed files with 2485 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
[Hook Scripts] [Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
-fw src/com/android/settings/print/ -fw src/com/android/settings/print/
checkcolor_hook = ${REPO_ROOT}/prebuilts/checkcolor/checkcolor.py -p .

2484
color-check-baseline.xml Normal file

File diff suppressed because it is too large Load Diff