-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
66 lines (66 loc) · 1.92 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
##
# setup:
# > pre-commit install --color auto --hook-type pre-commit --hook-type commit-msg
# update:
# > pre-commit autoupdate
##
repos:
- repo: meta
hooks:
#- id: check-hooks-apply
- id: check-useless-excludes
name: Check for useless excludes (pre-commit)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
name: Check for merge conflicts (pre-commit)
#- id: check-toml
- id: check-xml
name: Check xml (pre-commit)
- id: end-of-file-fixer
name: Fix end of files (pre-commit)
- id: trailing-whitespace
name: Trim trailing whitespace (pre-commit)
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.15.0
hooks:
- id: markdownlint-cli2
name: Check markdown (markdownlint-cli2)
- repo: https://github.com/hadolint/hadolint
rev: v2.13.1-beta
hooks:
- id: hadolint
name: Check Dockerfiles (hadolint)
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
name: Check yaml (yamllint)
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
name: Check Shell scripts files (shellcheck)
# - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
# rev: v9.18.0
# hooks:
# - id: commitlint
# name: Check commit message (commitlint)
# stages: [commit-msg]
# additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
name: Detect hardcoded secrets (gitleaks)
- repo: local
hooks:
- id: woodpecker-lint
name: Check Woodpecker CI files (woodpecker-cli)
entry: woodpecker-cli
language: system
args: [lint]
types: [yaml]
files: ^.woodpecker/