scripts: compliance: Fix DT Bindings check name

Check names must not contain spaces, since they are passed via `-m` in
the command-line.

Also update .gitignore and compliance.yml.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2022-11-21 11:09:49 +01:00 committed by Anas Nashif
parent 8275457709
commit 95053c8358
3 changed files with 5 additions and 4 deletions

View file

@ -69,8 +69,8 @@ jobs:
# debug
ls -la
git log --pretty=oneline | head -n 10
./scripts/ci/check_compliance.py --annotate -m Devicetree -m Gitlint \
-m Identity -m Nits -m pylint -m checkpatch -m Kconfig \
./scripts/ci/check_compliance.py --annotate -m DevicetreeBindings
-m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig \
-c origin/${BASE_REF}..
- name: upload-results
@ -86,7 +86,7 @@ jobs:
exit 1;
fi
for file in Nits.txt checkpatch.txt Identity.txt Gitlint.txt pylint.txt Devicetree.txt Kconfig.txt; do
for file in Nits.txt checkpatch.txt Identity.txt Gitlint.txt pylint.txt Devicetree.txt Kconfig.txt DevicetreeBindings.txt; do
if [[ -s $file ]]; then
errors=$(cat $file)
errors="${errors//'%'/'%25'}"

1
.gitignore vendored
View file

@ -73,3 +73,4 @@ Codeowners.txt
Nits.txt
pylint.txt
Identity.txt
DevicetreeBindings.txt

View file

@ -224,7 +224,7 @@ class DevicetreeBindingsCheck(ComplianceTest):
"""
Checks if we are introducing any unwanted properties in Devicetree Bindings.
"""
name = "Devicetree Bindings"
name = "DevicetreeBindings"
doc = "See https://docs.zephyrproject.org/latest/build/dts/bindings.html for more details."
path_hint = ZEPHYR_BASE