4 Commits

Author SHA1 Message Date
Emil Velikov
ed44595747 ci: add more SPDX copyright/license identifiers
This concludes the files, I'm planning to reuse in usbutils so I'll stop
before it gets too annoying :-D

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/151
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-09-27 23:08:09 -05:00
Emil Velikov
b1bd040e6c .editorconfig: max_line_length=90 like clang-format
Ideally the config (and editors) will have hard and soft limit for the
line length. Until then, update the config so that clang-format does not
excessively reformat.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/118
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-09-08 23:39:29 -05:00
Emil Velikov
c6a0a0228a .editorconfig: add sh(ell) section
The existing in-tree (two) shell scripts are of fairly mixed style.
With indent_size being 0, 4, 8 and indent_style both space and tab.

The more common instance seems to be 4 spaces, so add that to the
config. Updating existing scripts is deferred for another time.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-09-02 20:13:16 -05:00
Emil Velikov
4b1848cba3 .editorconfig: add initial config file
Most editors support the config format out of the box and with some
upcoming new yml files, I think it's great to have something in-tree to
avoid miss-matched style.

Copy-pasted from Mesa, with minor changes - tab for indent (C), remove
irrelevant sections. Keep the meson section - meson patches will be
comings shortly.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/76
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
2024-08-16 17:05:43 -05:00