diff options
author | Michael G. Schwern <schwern@pobox.com> | 2020-12-28 20:27:41 -0800 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-01-17 09:21:38 -0700 |
commit | 6867dc01ea301a9a9931ee096a579f76633de23f (patch) | |
tree | c1ea51a871bf2309cbe7af7d7c4bec1aa9190552 | |
parent | b12f49e146363ad6d1b9f1ae5fd68c9112ae5506 (diff) | |
download | perl-6867dc01ea301a9a9931ee096a579f76633de23f.tar.gz |
style: Add an EditorConfig file for the C code.
EditorConfig lets editors automatically configure themselves to the
project standard. Like embedded VIM and emacs mode lines, but
universal. Many editors support it out of the box. Most everything
else has a plugin. https://editorconfig.org/
It makes contributing with proper style easier. Pretty basic stuff.
* 4 spaces for indentation
* UTF-8
* Unix newlines
* Strip trailing whitespace
* Add a final newline on the file
-rw-r--r-- | .editorconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..a7417d0bbe --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[**/*.[ch]] +charset = utf-8 +indent_style = space +indent_size = 4 +tab_width = 8 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true |