-
Notifications
You must be signed in to change notification settings - Fork 303
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (45 loc) · 1.26 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (45 loc) · 1.26 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 'v3.6.0'
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/pylint-dev/pylint
rev: v3.3.1
hooks:
- id: pylint
# Java code quality checks using Maven Checkstyle
- repo: local
hooks:
- id: checkstyle
name: checkstyle (Java)
entry: mvn
args:
- checkstyle:check
- '-Dcheckstyle.config.location=scripts/lint/checkstyle.xml'
- '-Dcheckstyle.failOnViolation=false'
- '--no-transfer-progress'
- '-q'
language: system
files: \.java$
pass_filenames: false
stages: [pre-push]
exclude: |
(?x)^(
libraries/datahandler/src/main/java/org/eclipse/sw360/datahandler/thrift/.*|
.*/target/.*
)$