File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77script :
88 - ./mvnw clean verify
9+ - ./mvnw checkstyle:check
910
1011cache :
1112 directories :
Original file line number Diff line number Diff line change 2020
2121 <property name =" fileExtensions" value =" java, properties, xml" />
2222 <module name =" RegexpHeader" >
23- <property name =" headerFile" value =" ${basedir}/ microsoft.header" />
23+ <property name =" headerFile" value =" microsoft.header" />
2424 </module >
2525 <!-- Checks for whitespace
2626 See http://checkstyle.sf.net/config_whitespace.html -->
289289 <module name =" SimplifyBooleanExpression" />
290290 <module name =" SimplifyBooleanReturn" />
291291 </module >
292- </module >
292+ </module >
Original file line number Diff line number Diff line change 1212 <base .name>Java Debug Server for Visual Studio Code</base .name>
1313 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1414 <tycho-version >1.2.0</tycho-version >
15+ <checkstyleDir >${basedir}</checkstyleDir >
1516 </properties >
1617
1718 <licenses >
113114 <groupId >org.apache.maven.plugins</groupId >
114115 <artifactId >maven-checkstyle-plugin</artifactId >
115116 <version >2.17</version >
116- <executions >
117- <execution >
118- <id >validate</id >
119- <phase >validate</phase >
120- <goals >
121- <goal >check</goal >
122- </goals >
123- </execution >
124- </executions >
125117 <dependencies >
126118 <dependency >
127119 <groupId >com.puppycrawl.tools</groupId >
135127 </dependency >
136128 </dependencies >
137129 <configuration >
138- <configLocation >${project.parent.basedir} /check_style.xml</configLocation >
139- <propertyExpansion >basedir=${project.parent.basedir} </propertyExpansion >
130+ <configLocation >${checkstyleDir} /check_style.xml</configLocation >
140131 <failOnViolation >true</failOnViolation >
141132 </configuration >
142133 </plugin >
148139 </plugins >
149140 </pluginManagement >
150141 </build >
142+ <profiles >
143+ <profile >
144+ <id >activate-in-module</id >
145+ <activation >
146+ <file >
147+ <exists >${basedir} /../check_style.xml</exists >
148+ </file >
149+ </activation >
150+ <properties >
151+ <checkstyleDir >${basedir}/..</checkstyleDir >
152+ </properties >
153+ </profile >
154+ </profiles >
151155 <repositories >
152156 <repository >
153157 <id >photon</id >
You can’t perform that action at this time.
0 commit comments