blob: aa0cd808e0455657344c081b45676b0d0ae4ee61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#! /bin/bash
if [[ $PWD != *"/frameworks/base/packages/SystemUI" ]]; then
echo "Please run this in frameworks/base/packages/SystemUI" >&2
exit 1
fi
# Empty the baseline file so the baseline-generation run below do not ignore any existing errors.
echo '' > tools/lint/baseline.xml
lint . -Werror --exitcode --config tools/lint/lint.xml --html /tmp/lint_output.html \
--baseline tools/lint/baseline.xml --remove-fixed &
# b/37579990 - The file needs to be removed *while* lint is running
sleep 0.5
rm tools/lint/baseline.xml
wait
|