-
Notifications
You must be signed in to change notification settings - Fork 19
/
.pre-commit-config.yaml
45 lines (43 loc) · 1.39 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
#- id: check-json #Note: now we are using check-json5
- id: check-added-large-files
args: [--maxkb=50]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: double-quote-string-fixer
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.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 KNX.Release.sln -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 KNX.Debug.sln --verbosity d --no-restore
# entry: dotnet format KNX.Debug.sln -v diag --include ./ --no-restore
# #entry: dotnet format --include
# types_or: ["c#"]