Skip to content

Commit edf6c98

Browse files
author
KaranMishra3610
committed
Refactor: Apply Iterator pattern to SudokuBoard
1 parent 2d32eae commit edf6c98

File tree

1 file changed

+39
-28
lines changed

1 file changed

+39
-28
lines changed

pom.xml

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
6767
</configuration>
6868
</plugin>
69+
6970
<plugin>
7071
<groupId>org.apache.maven.plugins</groupId>
7172
<artifactId>maven-compiler-plugin</artifactId>
@@ -80,6 +81,7 @@
8081
</compilerArgs>
8182
</configuration>
8283
</plugin>
84+
8385
<plugin>
8486
<groupId>org.jacoco</groupId>
8587
<artifactId>jacoco-maven-plugin</artifactId>
@@ -99,35 +101,43 @@
99101
</execution>
100102
</executions>
101103
</plugin>
104+
105+
<!-- ✅ Fixed Checkstyle -->
102106
<plugin>
103-
<groupId>org.apache.maven.plugins</groupId>
104-
<artifactId>maven-checkstyle-plugin</artifactId>
105-
<version>3.6.0</version>
106-
<executions>
107-
<execution>
108-
<id>checkstyle</id>
109-
<phase>verify</phase>
110-
<goals>
111-
<goal>check</goal>
112-
</goals>
113-
<configuration>
114-
<configLocation>checkstyle.xml</configLocation>
115-
<consoleOutput>true</consoleOutput>
116-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
117-
<violationSeverity>warning</violationSeverity>
118-
<!-- 👇 This line makes sure violations don’t fail your build -->
119-
<failOnViolation>false</failOnViolation>
120-
</configuration>
121-
</execution>
122-
</executions>
123-
<dependencies>
124-
<dependency>
125-
<groupId>com.puppycrawl.tools</groupId>
126-
<artifactId>checkstyle</artifactId>
127-
<version>11.0.0</version>
128-
</dependency>
129-
</dependencies>
130-
</plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-checkstyle-plugin</artifactId>
109+
<version>3.6.0</version>
110+
<executions>
111+
<execution>
112+
<id>checkstyle</id>
113+
<phase>verify</phase>
114+
<goals>
115+
<goal>check</goal>
116+
</goals>
117+
<configuration>
118+
<configLocation>checkstyle.xml</configLocation>
119+
<consoleOutput>true</consoleOutput>
120+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
121+
<violationSeverity>warning</violationSeverity>
122+
<failOnViolation>false</failOnViolation>
123+
<includes>
124+
<include>src/main/java/**/*.java</include>
125+
<include>src/test/java/**/*.java</include>
126+
</includes>
127+
<excludes>
128+
<exclude>target/**</exclude>
129+
</excludes>
130+
</configuration>
131+
</execution>
132+
</executions>
133+
<dependencies>
134+
<dependency>
135+
<groupId>com.puppycrawl.tools</groupId>
136+
<artifactId>checkstyle</artifactId>
137+
<version>11.0.0</version>
138+
</dependency>
139+
</dependencies>
140+
</plugin>
131141

132142
<plugin>
133143
<groupId>com.github.spotbugs</groupId>
@@ -150,6 +160,7 @@
150160
</plugins>
151161
</configuration>
152162
</plugin>
163+
153164
<plugin>
154165
<groupId>org.apache.maven.plugins</groupId>
155166
<artifactId>maven-pmd-plugin</artifactId>

0 commit comments

Comments
 (0)