-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yml
More file actions
36 lines (33 loc) · 1021 Bytes
/
.pre-commit-config.yml
File metadata and controls
36 lines (33 loc) · 1021 Bytes
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
# Pre-commit hooks for code quality
repos:
- repo: local
hooks:
- id: powershell-script-analyzer
name: PSScriptAnalyzer
entry: pwsh
args: [-c, "./scripts/Invoke-CodeQuality.ps1 -FailOnError"]
language: system
files: \.(ps1|psm1|psd1)$
stages: [commit]
- id: powershell-formatting
name: PowerShell Formatting Check
entry: pwsh
args: [-c, "./scripts/Invoke-CodeQuality.ps1 -CheckFormatting"]
language: system
files: \.(ps1|psm1|psd1)$
stages: [commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
args: ['--maxkb=1000']
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint
args: ['--config', '.markdownlint.json']