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:03 UTC

[myfaces-tobago] branch tobago-5.x 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 tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-5.x by this push:
     new 9d6089bce4 style(editorconfig): fix indent for java files
9d6089bce4 is described below

commit 9d6089bce4917e7a208142e9b8f322c9caa9a9a2
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