Skip to content

Commit 2f06776

Browse files
committed
[added] checkstyle configuration file
[changed] URL of checkstyle policy file to Github
1 parent e0a0f56 commit 2f06776

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.checkstyle

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
4+
<local-check-config name="trustAtHsHCheckstyle" location="https://raw.githubusercontent.com/trustathsh/ironcommon/master/src/main/documents/trustAtHsHCheckstylePolicy.xml" type="remote" description="">
5+
<property name="headerfile" value="${project_loc}/src/license/dummy/Dummy.java"/>
6+
<property name="checkstyle.cache.file" value="${project_loc}/target/cachefile"/>
7+
<additional-data name="cache-file" value="false"/>
8+
</local-check-config>
9+
<fileset name="all" enabled="true" check-config-name="trustAtHsHCheckstyle" local="true">
10+
<file-match-pattern match-pattern="." include-pattern="true"/>
11+
</fileset>
12+
</fileset-config>
13+

pom.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<inceptionYear>2010</inceptionYear>
66
<properties>
77
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8-
<checkstyle.config.location>src/main/checkstyle/trustFhhCodeconventions.xml</checkstyle.config.location>
98
</properties>
109

1110
<!-- general project information -->
@@ -122,6 +121,10 @@
122121
<groupId>org.apache.maven.plugins</groupId>
123122
<artifactId>maven-checkstyle-plugin</artifactId>
124123
<version>2.10</version>
124+
<configuration>
125+
<propertyExpansion>headerfile=${project.basedir}/src/license/dummy/Dummy.java</propertyExpansion>
126+
<configLocation>https://raw.githubusercontent.com/trustathsh/ironcommon/master/src/main/documents/trustAtHsHCheckstylePolicy.xml</configLocation>
127+
</configuration>
125128
</plugin>
126129
</plugins>
127130

0 commit comments

Comments
 (0)