mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
chore(test): format test cases (#3071)
This commit is contained in:
parent
e400a87df9
commit
2c7760c687
26
scripts/code-format-tests.cfg
Normal file
26
scripts/code-format-tests.cfg
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
--style=kr
|
||||||
|
--indent=spaces=4
|
||||||
|
--indent-classes
|
||||||
|
--indent-switches
|
||||||
|
--indent-cases
|
||||||
|
--indent-preproc-block
|
||||||
|
--indent-preproc-define
|
||||||
|
--indent-col1-comments
|
||||||
|
--pad-oper
|
||||||
|
--unpad-paren
|
||||||
|
--align-pointer=middle
|
||||||
|
--align-reference=middle
|
||||||
|
--convert-tabs
|
||||||
|
--max-code-length=120
|
||||||
|
--break-after-logical
|
||||||
|
--break-closing-braces
|
||||||
|
--attach-closing-while
|
||||||
|
--min-conditional-indent=0
|
||||||
|
--max-continuation-indent=120
|
||||||
|
--mode=c
|
||||||
|
--lineend=linux
|
||||||
|
--recursive
|
||||||
|
--suffix=none
|
||||||
|
--preserve-date
|
||||||
|
--formatted
|
||||||
|
--exclude=../tests/src/test_cases/_test_template.c
|
@ -3,3 +3,4 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
os.system('astyle --options=code-format.cfg "../src/*.c,*.h"')
|
os.system('astyle --options=code-format.cfg "../src/*.c,*.h"')
|
||||||
|
os.system('astyle --options=code-format-tests.cfg "../tests/src/test_cases/*.c"')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user