You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2022/11/17 10:00:12 UTC
[myfaces-tobago] branch main updated: style(editorconfig): fix indent for java files
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/main by this push:
new f1c2860f8f style(editorconfig): fix indent for java files
f1c2860f8f is described below
commit f1c2860f8f19e3abc6e646408614b0259ded57c0
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Thu Nov 17 10:53:01 2022 +0100
style(editorconfig): fix indent for java files
The indent size for java files is mostly 2 spaces. But in some cases (linebreak in method header) it is 4 spaces.
Therefore, a fixed indent size must not be applied to Java files.
---
.editorconfig | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.editorconfig b/.editorconfig
index 951bba9ed2..6d778e907c 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -25,3 +25,7 @@ indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
+
+# Ignore indent_size for java files
+[*.java]
+indent_size = unset