-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (44 loc) · 1.19 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (44 loc) · 1.19 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
48
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: "check-added-large-files"
- id: "fix-byte-order-marker"
- id: "check-case-conflict"
- id: "check-json"
exclude: ".vscode/"
- id: "end-of-file-fixer"
- id: "trailing-whitespace"
- id: "mixed-line-ending"
- id: "check-merge-conflict"
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint-docker
args:
- --disable=MD013
- repo: local
hooks:
- id: psscriptanalyzer-check
name: check PowerShell code using PSScriptAnalyzer
language: script
entry: pre-commit-run.sh -Check
args:
- -ExcludeRule
- PSUseBOMForUnicodeEncodedFile
- -Fix
types:
- file
files: \.ps[dm]?1$
- id: psscriptanalyzer-format
name: format PowerShell code using PSScriptAnalyzer
language: script
entry: pre-commit-run.sh -Format
types:
- file
files: \.ps[dm]?1$