File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change 207207 </execution >
208208 </executions >
209209 </plugin >
210- <plugin >
211- <groupId >com.cosium.code</groupId >
212- <artifactId >git-code-format-maven-plugin</artifactId >
213- <version >${git-code-format-maven-plugin.version} </version >
214- <executions >
215- <!-- On commit, format the modified java files -->
216- <execution >
217- <id >install-formatter-hook</id >
218- <goals >
219- <goal >install-hooks</goal >
220- </goals >
221- </execution >
222- <!-- On Maven verify phase, fail if any file
223- (including unmodified) is badly formatted -->
224- <execution >
225- <id >validate-code-format</id >
226- <goals >
227- <goal >validate-code-format</goal >
228- </goals >
229- </execution >
230- </executions >
231- <dependencies >
232- <!-- Enable https://github.com/google/google-java-format -->
233- <dependency >
234- <groupId >com.cosium.code</groupId >
235- <artifactId >google-java-format</artifactId >
236- <version >${git-code-format-maven-plugin.version} </version >
237- </dependency >
238- </dependencies >
239- </plugin >
240210 <plugin >
241211 <groupId >io.github.phillipuniverse</groupId >
242212 <artifactId >githook-maven-plugin</artifactId >
251221 <pre-commit >
252222 echo "Validating..."
253223 exec mvn test
254- echo "Formatting code..."
255- exec mvn git-code-format:format-code
256- echo "Validating format..."
257- exec mvn git-code-format:validate-code-format
258224 </pre-commit >
259225 </hooks >
260226 </configuration >
You can’t perform that action at this time.
0 commit comments