[LTP] [PATCH v2 1/1] editorconfig: add consistent formatting rules for LTP

Petr Vorel pvorel@suse.cz
Fri Mar 27 16:29:52 CET 2026


...
> > # 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.

Would it work if kirk has it's own .editorconfig? I mean, it should have anyway,
but if it will be applied on it as a submodule.

Kind regards,
Petr


More information about the ltp mailing list