-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
77 lines (69 loc) · 2.08 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
67
68
69
70
71
72
73
74
75
76
77
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# Git style
- id: check-added-large-files
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: forbid-new-submodules
- id: no-commit-to-branch
# Common errors
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-merge-conflict
# Cross platform
- id: check-case-conflict
- id: mixed-line-ending
args: [--fix=lf]
# Security
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shfmt
args: ["-l", "-i", "2", "-ci", "-sr", "-w"]
- id: shellcheck
# - repo: https://github.com/melmorabity/pre-commit-psscriptanalyzer
# rev: v1.0.0
# hooks:
# # Check PowerShell code
# - id: psscriptanalyzer-check-docker
# # Format PowerShell code
# - id: psscriptanalyzer-format-docker
# Dockerfile linter
- repo: https://github.com/hadolint/hadolint
rev: v2.10.0
hooks:
- id: hadolint
args: [
"--ignore",
"DL3027", # Do not use apt
"--ignore",
"DL3007", # Using latest
"--ignore",
"DL4006", # Not related to alpine
"--ignore",
"SC1091", # Useless check
"--ignore",
"SC2015", # Useless check
"--ignore",
"SC3037", # Not related to alpine
"--ignore",
"DL3013", # Pin versions in pip
"--ignore",
"SC2086" # Quotes
]
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v24.2.1 # put latest release tag from https://github.com/ansible-community/ansible-lint/releases/
hooks:
- id: ansible-lint
files: \.(yaml|yml)$