On 6/19/23 17:37, Robin Jarry wrote: > EditorConfig is a file format and collection of text editor plugins for > maintaining consistent coding styles between different editors and IDEs. > > Initialize the file following the coding rules in > Documentation/internals/contributing/coding-style.rst and add exceptions > declared in build-aux/initial-tab-allowed-files. Only enforce rules for > *.c and *.h files. Other files should use the default indenting rules > from text editors. > > In order for this file to be taken into account (unless they use an > editor with built-in EditorConfig support), developers will have to > install a plugin. > > Notes: > > * All matching rules are considered. The last matching rule's properties > will override the previous ones. > * The max_line_length property is only supported by a limited number of > EditorConfig plugins. It will be ignored if unsupported. > > Link: https://editorconfig.org/ > Link: https://github.com/editorconfig/editorconfig-emacs > Link: https://github.com/editorconfig/editorconfig-vim > Link: > https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#max_line_length > Signed-off-by: Robin Jarry <[email protected]> > Cc: Mike Pattrick <[email protected]> > Cc: Eelco Chaudron <[email protected]> > Cc: Ilya Maximets <[email protected]> > --- > > Notes: > v4: > > * Listed files that use tabs more restrictively. > * I assumed that every header under include/linux uses tabs since this > is the coding style of the kernel. > * Also, any header named include/sparse/rte_*.h most likely comes from > DPDK which also uses tabs for indentation. > > .editorconfig | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ > Makefile.am | 1 + > 2 files changed, 49 insertions(+) > create mode 100644 .editorconfig
Applied. Thanks! Best regards, Ilya Maximets. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
