aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rwxr-xr-xcheckcolor.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index a7f26c6..6ed4305 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,7 @@ However, if you need to bypass the check, please update the `baseline.xml` by ru
command in package root folder(i.e. package/app/Settings/)
```
+export ANDROID_LINT_JARS=$(gettop)/prebuilts/checkcolor/checkcolor.jar
lint --check HardCodedColor --xml color-check-baseline.xml .
```
diff --git a/checkcolor.py b/checkcolor.py
index 048feb3..9e62d3d 100755
--- a/checkcolor.py
+++ b/checkcolor.py
@@ -64,8 +64,8 @@ def RunCheckOnProject(root):
try:
baseline = os.path.join(root, LINT_BASELINE_FILENAME)
- check = subprocess.Popen(['lint', '--check', 'HardCodedColor', '--baseline',
- baseline, '--exitcode', TMP_FOLDER],
+ check = subprocess.Popen(['lint', '--check', 'HardCodedColor', '--disable', 'LintError',
+ '--baseline', baseline, '--exitcode', TMP_FOLDER],
stdout=subprocess.PIPE, env=checkcolor_env)
stdout, _ = check.communicate()
exitcode = check.returncode