From: jackqdyulei Date: Thu, 14 Sep 2017 23:11:02 +0000 (-0700) Subject: Hook up lint color check to settings X-Git-Tag: android-x86-9.0-r1~198^2~4 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5024a3896547fc33b882ba78b5845d186375d9e0;p=android-x86%2Fpackages-apps-Settings.git 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 --- diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index bbc1f689c7..62a2e43479 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -1,4 +1,5 @@ [Hook Scripts] checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} -fw src/com/android/settings/print/ +checkcolor_hook = ${REPO_ROOT}/prebuilts/checkcolor/checkcolor.py -p . diff --git a/color-check-baseline.xml b/color-check-baseline.xml new file mode 100644 index 0000000000..cbcdf48dde --- /dev/null +++ b/color-check-baseline.xml @@ -0,0 +1,2484 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +