-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (65 loc) · 2.03 KB
/
.pre-commit-config.yaml
File metadata and controls
67 lines (65 loc) · 2.03 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
exclude: |
(?x)^(
.editorconfig|
.devcontainer/devcontainer.json|
src/CasCap.SmartHaus/Resources/.*|
charts/.*|
Directory.Packages.props
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
#- id: check-json #Note: now we are using check-json5
#- id: pretty-format-json
# args: ["--indent", "2", "--autofix", "--no-sort-keys"]
- id: check-added-large-files
args: [--maxkb=50]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: double-quote-string-fixer
# - id: terraform-fmt
# name: terraform fmt
# description: runs terraform fmt
# entry: terraform fmt -recursive
# language: system
# pass_filenames: false
# - id: terraform-docs
# name: terraform-docs
# description: runs terraform-docs
# entry: terraform-docs -c "./.terraform-docs.yml" "./"
# language: system
# pass_filenames: false
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.1
hooks:
- id: check-json5
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint
args: ["--disable", "MD013", "--disable", "MD034", "--"]
#Not working or SLOW:
# - repo: https://github.com/dotnet/format
# rev: v8.0.453106
# hooks:
# - id: dotnet-format
# entry: dotnet format SmartHaus.Release.slnx -v diagnostic --no-restore
# #entry: dotnet format whitespace . --folder -v diagnostic
# #args: [".", "--folder", "-v", "diagnostic"]
# #args: [--folder, --include]
#https://pre-commit.com/#repository-local-hooks
# - repo: local
# hooks:
# #Use dotnet format already installed on your machine
# #https://github.com/dotnet/format
# - id: dotnet-format
# name: dotnet format
# language: system
# entry: dotnet format SmartHaus.Debug.slnx --verbosity d --no-restore
# entry: dotnet format SmartHaus.Debug.slnx -v diag --include ./ --no-restore
# #entry: dotnet format --include
# types_or: ["c#"]