File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11repos :
2- - repo : git ://github.com/pre-commit/pre-commit-hooks
3- rev : v2.4 .0
2+ - repo : https ://github.com/pre-commit/pre-commit-hooks
3+ rev : v4.3 .0
44 hooks :
55 - id : check-yaml
66 - id : end-of-file-fixer
77 - id : trailing-whitespace
88 - id : check-case-conflict
99 - id : check-merge-conflict
1010 - id : check-executables-have-shebangs
11- - repo : git ://github.com/Lucas-C/pre-commit-hooks
12- rev : v1.1.7
11+ - repo : https ://github.com/Lucas-C/pre-commit-hooks
12+ rev : v1.2.0
1313 hooks :
1414 - id : forbid-tabs
15- - repo : git ://github.com/adrienverge/yamllint
16- rev : v1.20.0
15+ - repo : https ://github.com/adrienverge/yamllint
16+ rev : v1.26.3
1717 hooks :
1818 - id : yamllint
1919 - repo : https://github.com/pryorda/dockerfilelint-precommit-hooks
Original file line number Diff line number Diff line change 1- FROM openjdk:13 -alpine
1+ FROM openjdk:17 -alpine
22
33RUN apk add --update --no-cache wget unzip curl bash jq
44RUN mkdir -p /opt
Original file line number Diff line number Diff line change 1- [ ![ pre-commit] ( https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white )] ( https://github.com/gherynos/pre-commit- java)
1+ # pre-commit- java
22
3- pre-commit-java
4- ===============
3+ [ ![ pre-commit] ( https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white )] ( https://github.com/gherynos/pre-commit-java )
54
65A collection of git hooks for Java to be used with the [ pre-commit framework] ( http://pre-commit.com ) .
76
87## Requirements
98
109pre-commit-java requires the following to run:
1110
12- * [ pre-commit] ( http://pre-commit.com )
13- * [ Docker] ( https://www.docker.com )
11+ * [ pre-commit] ( http://pre-commit.com )
12+ * [ Docker] ( https://www.docker.com )
1413
1514## Install
1615
@@ -22,7 +21,7 @@ example `.pre-commit-config.yaml`:
2221
2322``` yaml
2423- repo : https://github.com/gherynos/pre-commit-java
25- rev : v0.1 .0 # Use the ref you want to point at
24+ rev : v0.2 .0 # Use the ref you want to point at
2625 hooks :
2726 - id : pmd
2827 exclude : /test/
Original file line number Diff line number Diff line change 1717
1818# populate list of files to analise
1919files=" ${*: idx} "
20- echo " ${files// / ,} " >> /tmp/list
20+ eol=$' \n '
21+ echo " ${files// / $eol } " > /tmp/list
2122
22- /opt/pmd/bin/run.sh pmd -f textcolor -language java $pc_args -filelist /tmp/list
23+ # --dir /dev/null as a workaround due to https://github.com/pmd/pmd/issues/3999
24+ /opt/pmd/bin/run.sh pmd -f textcolor -language java --file-list /tmp/list --dir /dev/null $pc_args
You can’t perform that action at this time.
0 commit comments