-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 931 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
repos:
# add license notice
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: insert-license
# TODO: make pull request to identify to include .aj files as type
types: [ file ]
files: .+\/src\/.+\.(java|aj)$
args:
- --license-filepath
- resources/license-header.txt
- --comment-style
- /*| *| */
# general hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# formatting
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.2.0
hooks:
- id: pretty-format-java
args: [ --autofix ]
# maven build and test
- repo: https://github.com/ejba/pre-commit-maven
rev: v0.3.2
hooks:
- id: maven-compile
- id: maven-test