-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (52 loc) · 1.53 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (52 loc) · 1.53 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
# See https://pre-commit.com for more information
# See https://pre-commit.ci for more information
# Note: Using pre-commit.ci lite with GitHub Actions for custom tooling support
repos:
# Built-in hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: '(static/static/dist/style\.css|\.json|\.js)$'
- id: check-yaml
- id: check-json
exclude: '\.vscode/.*\.json' # fix this
- id: check-merge-conflict
- id: check-added-large-files
# Gitleaks - Secret detection
- repo: https://github.com/gitleaks/gitleaks
rev: v8.27.2
hooks:
- id: gitleaks
# .NET hooks
- repo: https://github.com/dotnet/format
rev: v8.0.453106
hooks:
- id: dotnet-format
name: dotnet format
entry: dotnet format
language: system
files: \.(cs|vb)$
pass_filenames: false
# Custom .NET hooks using local system
- repo: local
hooks:
- id: dotnet-build
name: dotnet build
entry: dotnet build
language: system
files: \.(cs|csproj|sln)$
pass_filenames: false
- id: dotnet-test
name: dotnet test
entry: dotnet test --no-build
language: system
files: \.(cs|csproj)$
pass_filenames: false
- id: dotnet-restore
name: dotnet restore
entry: dotnet restore
language: system
files: \.(csproj|sln|packages\.config)$
pass_filenames: false