Skip to content

Commit

Permalink
chore(ci): introduced pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Sep 13, 2024
1 parent 0f360b3 commit d54ebff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 4.6.0
hooks:
- id: check-yaml
- repo: https://github.com/ejba/pre-commit-maven
rev: v0.3.3
hooks:
- id: maven-spotless-apply
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit hooks
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: [ ]
submodules: false
18 changes: 0 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,24 +203,6 @@
</java>
</configuration>
</plugin>

<plugin>
<groupId>com.rudikershaw.gitbuildhook</groupId>
<artifactId>git-build-hook-maven-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<installHooks>
<pre-commit>.git-hooks/pre-commit</pre-commit>
</installHooks>
</configuration>
<executions>
<execution>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

<resources>
Expand Down

0 comments on commit d54ebff

Please sign in to comment.