Skip to content

Commit 7ba30ba

Browse files
committed
Add the quality profile
1 parent 7078d18 commit 7ba30ba

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

affinity/pom.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,82 @@
134134
</plugins>
135135
</build>
136136
</profile>
137+
138+
<profile>
139+
<id>quality</id>
140+
<!--
141+
<activation>
142+
<jdk>[11,)</jdk>
143+
</activation>
144+
-->
145+
<build>
146+
<plugins>
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-checkstyle-plugin</artifactId>
150+
<version>3.6.0</version>
151+
<executions>
152+
<execution>
153+
<id>validate</id>
154+
<phase>validate</phase>
155+
<goals>
156+
<goal>check</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
<configuration>
161+
<configLocation>net/openhft/quality/checkstyle26/chronicle-baseline-checkstyle.xml</configLocation>
162+
<failOnViolation>true</failOnViolation>
163+
<logViolationsToConsole>true</logViolationsToConsole>
164+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
165+
<violationSeverity>warning</violationSeverity>
166+
</configuration>
167+
<dependencies>
168+
<dependency>
169+
<groupId>com.puppycrawl.tools</groupId>
170+
<artifactId>checkstyle</artifactId>
171+
<version>10.26.1</version>
172+
</dependency>
173+
<dependency>
174+
<groupId>net.openhft</groupId>
175+
<artifactId>quality</artifactId>
176+
<version>2026.0-SNAPSHOT</version>
177+
</dependency>
178+
</dependencies>
179+
</plugin>
180+
<plugin>
181+
<groupId>com.github.spotbugs</groupId>
182+
<artifactId>spotbugs-maven-plugin</artifactId>
183+
<version>4.9.8.1</version>
184+
<configuration>
185+
<effort>Max</effort>
186+
<threshold>Low</threshold>
187+
<includeTests>true</includeTests>
188+
<failOnError>true</failOnError>
189+
<includeFilterFile>net/openhft/quality/spotbugs26/chronicle-spotbugs-include.xml</includeFilterFile>
190+
<excludeFilterFile>net/openhft/quality/spotbugs26/chronicle-spotbugs-exclude.xml</excludeFilterFile>
191+
</configuration>
192+
<dependencies>
193+
<dependency>
194+
<groupId>net.openhft</groupId>
195+
<artifactId>quality</artifactId>
196+
<version>2026.0-SNAPSHOT</version>
197+
</dependency>
198+
</dependencies>
199+
<executions>
200+
<execution>
201+
<id>spotbugs-main</id>
202+
<!-- Bind after test classes are compiled so includeTests=true analyses src/test/java as well. -->
203+
<phase>process-test-classes</phase>
204+
<goals>
205+
<goal>check</goal>
206+
</goals>
207+
</execution>
208+
</executions>
209+
</plugin>
210+
</plugins>
211+
</build>
212+
</profile>
137213
</profiles>
138214

139215
<build>

0 commit comments

Comments
 (0)