ci(Kconfig): error on leading spaces (should be tabs)

This commit is contained in:
Gabor Kiss-Vamosi
2024-10-17 12:52:27 +02:00
committed by VIFEX
parent 255352b566
commit 92d424ec74
2 changed files with 20 additions and 13 deletions

View File

@@ -17,6 +17,13 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Check for leading spaces in Kconfig
working-directory: .
run: |
if grep -qP '^ +' Kconfig; then
echo "Error: Kconfig contains leading spaces instead of tabs"
exit 1
fi
- name: Run kconfig_verify.py
run: python3 -m pip install kconfiglib && python kconfig_verify.py ../Kconfig
working-directory: scripts