Add a way to turn errors into warnings for undefined keys

This commit is contained in:
Pierre-Hugues Husson 2023-04-14 05:32:12 -04:00
parent bbf42cf52f
commit 6a0b550fb8

View file

@ -65,7 +65,7 @@ find . -name AndroidManifest.xml |while read -r manifest;do
ag '"'"$key"'"' /build/AOSP-8.1/frameworks/base/core/res/res)> /dev/null ;then
echo "$key" >> tests/knownKeys
else
fail "$xml" "defines a non-existing attribute $key"
fail "$xml" "defines a non-existing attribute $key" "I swear it makes sense to set $key, and I can completely explain why."
fi
done
done