You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by zh...@apache.org on 2020/02/13 01:59:39 UTC
[submarine] branch master updated: SUBMARINE-384. Add EditorConfig
metafile to reduce growth of the indentation mess
This is an automated email from the ASF dual-hosted git repository.
zhouquan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push:
new e3b5c5c SUBMARINE-384. Add EditorConfig metafile to reduce growth of the indentation mess
e3b5c5c is described below
commit e3b5c5cda9c8cc59ddc8a2406fac4211c68b17cf
Author: Wanqiang Ji <wa...@gmail.com>
AuthorDate: Mon Feb 10 23:52:20 2020 +0800
SUBMARINE-384. Add EditorConfig metafile to reduce growth of the indentation mess
### What is this PR for?
To reduce growth of the indentation mess
### What type of PR is it?
[Improvement]
### Todos
### What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-384
### How should this be tested?
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Author: Wanqiang Ji <wa...@gmail.com>
Closes #181 from jiwq/SUBMARINE-384 and squashes the following commits:
d381931 [Wanqiang Ji] SUBMARINE-384. Add EditorConfig metafile to reduce growth of the indentation mess
---
.editorconfig | 27 +++++++++++++++++++++++++++
pom.xml | 1 +
2 files changed, 28 insertions(+)
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..59e9dc4
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,27 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+# tab indentation (no size specified)
+[{Makefile,go.mod,go.sum,*.go}]
+indent_style = tab
+
+# 2 space indentation
+[*.{java,sh,json,xml}]
+indent_style = space
+indent_size = 2
+
+# 4 space indentation
+[*.{py,R,js}]
+indent_style = space
+indent_size = 4
+
+[*.java]
+max_line_length = 100
diff --git a/pom.xml b/pom.xml
index cca02cd..56754c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -465,6 +465,7 @@
<exclude>.github/*</exclude>
<exclude>.gitignore</exclude>
<exclude>.gitmodules</exclude>
+ <exclude>.editorconfig</exclude>
<exclude>LICENSE</exclude>
<exclude>license_header</exclude>
<exclude>**/*.iml</exclude>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org