Skip to content

Commit 6942fa8

Browse files
author
Vincent Potucek
committed
maven-checkstyle-plugin
1 parent 0642ebc commit 6942fa8

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_style = space
5+
insert_final_newline = false
6+
max_line_length = 128
7+
[*.java]
8+
ij_java_names_count_to_use_import_on_demand = 999
9+
ij_java_class_count_to_use_import_on_demand = 999

checkstyle.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE module PUBLIC
2+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
3+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
4+
<module name="Checker">
5+
<module name="TreeWalker">
6+
<module name="AvoidStarImport"/>
7+
<!-- <module name="ImportOrder"/>-->
8+
</module>
9+
<!-- <module name="LineLength">-->
10+
<!-- <property name="fileExtensions" value="java"/>-->
11+
<!-- <property name="max" value="128"/>-->
12+
<!-- </module>-->
13+
<!-- <module name="LineLength">-->
14+
<!-- <property name="max" value="120"/>-->
15+
<!-- </module>-->
16+
</module>

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,29 @@
177177
<nodeAnalyzerEnabled>false</nodeAnalyzerEnabled>
178178
</configuration>
179179
</plugin>
180+
<plugin>
181+
<groupId>org.apache.maven.plugins</groupId>
182+
<artifactId>maven-checkstyle-plugin</artifactId>
183+
<version>3.6.0</version>
184+
<configuration>
185+
<configLocation>checkstyle.xml</configLocation>
186+
</configuration>
187+
<executions>
188+
<execution>
189+
<goals>
190+
<goal>check</goal>
191+
</goals>
192+
</execution>
193+
</executions>
194+
</plugin>
180195
</plugins>
181196
</pluginManagement>
197+
<plugins>
198+
<plugin>
199+
<groupId>org.apache.maven.plugins</groupId>
200+
<artifactId>maven-checkstyle-plugin</artifactId>
201+
</plugin>
202+
</plugins>
182203
<extensions>
183204
<extension>
184205
<groupId>io.quarkus.bot</groupId>

0 commit comments

Comments
 (0)