Skip to content

Commit 17771cd

Browse files
author
Vincent Potucek
committed
editorconfig-maven-plugin
1 parent faef16d commit 17771cd

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.editorconfig

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
insert_final_newline = true
8+
9+
[*.java]
10+
ij_continuation_indent_size = 4
11+
ij_java_binary_operation_sign_on_next_line = true
12+
ij_java_block_brace_style = end_of_line
13+
ij_java_catch_on_new_line = true
14+
ij_java_class_brace_style = end_of_line
15+
ij_java_class_count_to_use_import_on_demand = 999
16+
ij_java_do_while_brace_force = always
17+
ij_java_else_on_new_line = true
18+
ij_java_finally_on_new_line = true
19+
ij_java_for_brace_force = always
20+
ij_java_if_brace_force = always
21+
ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, *
22+
ij_java_keep_blank_lines_before_right_brace = 1
23+
ij_java_keep_blank_lines_between_package_declaration_and_header = 1
24+
ij_java_keep_blank_lines_in_code = 1
25+
ij_java_keep_blank_lines_in_declarations = 1
26+
ij_java_lambda_brace_style = end_of_line
27+
ij_java_method_brace_style = end_of_line
28+
ij_java_names_count_to_use_import_on_demand = 999
29+
ij_java_space_before_array_initializer_left_brace = true
30+
ij_java_space_within_empty_array_initializer_braces = false
31+
ij_java_spaces_within_array_initializer_braces = false
32+
ij_java_while_brace_force = always
33+
ij_java_wrap_comments = true
34+
indent_size = 4
35+
max_line_length = 120
36+
37+
[*.xml]
38+
max_line_length = 160

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,29 @@ under the License.</licenseText>
799799
</plugins>
800800
</pluginManagement>
801801
<plugins>
802+
<plugin>
803+
<groupId>org.ec4j.maven</groupId>
804+
<artifactId>editorconfig-maven-plugin</artifactId>
805+
<version>0.1.3</version>
806+
<executions>
807+
<execution>
808+
<id>editorconfig-check</id>
809+
<phase>verify</phase>
810+
<goals>
811+
<goal>check</goal>
812+
</goals>
813+
</execution>
814+
</executions>
815+
<configuration>
816+
<excludes>
817+
<exclude>**/*.javadoc</exclude>
818+
<exclude>**/*.jpeg</exclude>
819+
<exclude>.ci-temp/**</exclude>
820+
<exclude>.ci/**</exclude>
821+
<exclude>.github/**</exclude>
822+
</excludes>
823+
</configuration>
824+
</plugin>
802825
<plugin>
803826
<groupId>io.github.olamy.maven.plugins</groupId>
804827
<artifactId>jacoco-aggregator-maven-plugin</artifactId>

0 commit comments

Comments
 (0)