[LTP] [PATCH v2 1/1] editorconfig: add consistent formatting rules for LTP
Andrea Cervesato
andrea.cervesato@suse.com
Fri Mar 27 11:53:09 CET 2026
Hi Jan,
> # C/Assembly source files, headers, and shell files use tabs
> [{*.{c,h,S,sh},ver_linux}]
> indent_style = tab
> indent_size = 4
LTP follows Linux kernel coding style, which uses 8-character-wide tabs.
This should be indent_size = 8.
> # Python and Perl: default to tabs (most test files use tabs, checkpatch.pl which we modify)
> [*.{py,pl}]
> indent_style = tab
> indent_size = 8
Not 100% sure about this.
The Python test files in the tree (e.g. pm_sched_domain.py, pm_ilb_test.py)
all use 4-space indentation, not tabs. The default for *.py should be
indent_style = space / indent_size = 4. Perl (checkpatch.pl) does use tabs,
so it should get its own section.
Also kirk uses 4 tabs indentation. So I guess we need to invert the two rules
at this point.
Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list