From f46da5865cdb0b652567c70dea5fcb3529c461ad Mon Sep 17 00:00:00 2001 From: Brandon Payton Date: Wed, 3 May 2023 20:46:43 -0400 Subject: [PATCH 1/3] Add editorconfig to help OSS contributors When switching between many different open source code bases, it can be cumbersome to constantly change editor settings in order to respect a given project's basic style preferences. EditorConfig is a popular format for representing those preferences so editors can automatically respect them. Many editors support EditorConfig out of the box, and many others have EditorConfig plugins: https://editorconfig.org/#pre-installed This commit adds a simple EditorConfig for ModSecurity-nginx. --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d868fef --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*] +end_of_line = lf +indent_style = space +indent_size = 4 + From a4c90bd0e19bfeecf149f8c977000bc27e88f83c Mon Sep 17 00:00:00 2001 From: Brandon Payton Date: Fri, 5 May 2023 08:35:25 -0400 Subject: [PATCH 2/3] Mark as root config --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index d868fef..1a477af 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,6 @@ +# top-most EditorConfig file +root = true + [*] end_of_line = lf indent_style = space From 9508fe242a3ce1780ed032ce55a85fe0a58885d3 Mon Sep 17 00:00:00 2001 From: Brandon Payton Date: Fri, 5 May 2023 08:35:53 -0400 Subject: [PATCH 3/3] Add explanatory comment for wildcard --- .editorconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.editorconfig b/.editorconfig index 1a477af..31061c2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,7 @@ # top-most EditorConfig file root = true +# Unix-style newlines with a newline ending every file [*] end_of_line = lf indent_style = space