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 uses: actions/setup-python@v5
with: with:
python-version: 3.7 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 - name: Run kconfig_verify.py
run: python3 -m pip install kconfiglib && python kconfig_verify.py ../Kconfig run: python3 -m pip install kconfiglib && python kconfig_verify.py ../Kconfig
working-directory: scripts working-directory: scripts

26
Kconfig
View File

@@ -163,14 +163,14 @@ menu "LVGL configuration"
default "stdint.h" default "stdint.h"
depends on LV_OS_CUSTOM depends on LV_OS_CUSTOM
config LV_USE_FREERTOS_TASK_NOTIFY config LV_USE_FREERTOS_TASK_NOTIFY
bool "Use RTOS task with a direct notification for synchronization" bool "Use RTOS task with a direct notification for synchronization"
default y default y
depends on LV_OS_FREERTOS depends on LV_OS_FREERTOS
help help
Unblocking an RTOS task with a direct notification is 45% faster and uses less RAM Unblocking an RTOS task with a direct notification is 45% faster and uses less RAM
than unblocking a task using an intermediary object such as a binary semaphore. than unblocking a task using an intermediary object such as a binary semaphore.
RTOS task notifications can only be used when there is only one task that can be the recipient of the event. RTOS task notifications can only be used when there is only one task that can be the recipient of the event.
endmenu endmenu
menu "Rendering Configuration" menu "Rendering Configuration"
@@ -977,9 +977,9 @@ menu "LVGL configuration"
help help
Minimum number of characters in a long word to put on a line after a break Minimum number of characters in a long word to put on a line after a break
config LV_TXT_COLOR_CMD config LV_TXT_COLOR_CMD
string "The control character to use for signalling text recoloring" string "The control character to use for signalling text recoloring"
default "#" default "#"
config LV_USE_BIDI config LV_USE_BIDI
bool "Support bidirectional texts" bool "Support bidirectional texts"
@@ -1939,9 +1939,9 @@ menu "LVGL configuration"
default n default n
select LV_FONT_MONTSERRAT_14 select LV_FONT_MONTSERRAT_14
select LV_FONT_MONTSERRAT_20 select LV_FONT_MONTSERRAT_20
select LV_FONT_MONTSERRAT_24 select LV_FONT_MONTSERRAT_24
select LV_FONT_MONTSERRAT_26 select LV_FONT_MONTSERRAT_26
select LV_USE_DEMO_WIDGETS select LV_USE_DEMO_WIDGETS
config LV_USE_DEMO_RENDER config LV_USE_DEMO_RENDER
bool "Render test for each primitives. Requires at least 480x272 display" bool "Render test for each primitives. Requires at least 480x272 display"
default n default n