-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (41 loc) · 1.33 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
46
47
default_stages: [pre-commit]
repos:
- repo: local
hooks:
- id: dotnet-build
name: Build
entry: msbuild /p:AppxBundlePlatforms="x64" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload /m /nr:false AdSecGH.sln
language: system
pass_filenames: false
stages: [pre-push]
always_run: true
- id: dotnet-format
name: Format
entry: dotnet format --exclude-diagnostics --verify-no-changes --verbosity diagnostic AdSecGH.sln
language: system
pass_filenames: false
always_run: true
- id: dotnet-test-coverage
name: Run dotnet tests with coverage
entry: powershell.exe -NoProfile -ExecutionPolicy Bypass -File coverage.ps1
stages: [pre-push]
language: system
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.13.0
hooks:
- id: commitizen
stages: [commit-msg]
# this should go last since it will fix line endings broken by other tools
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-yaml
- id: check-ast
- id: check-merge-conflict
- id: double-quote-string-fixer
- id: trailing-whitespace
exclude: .github
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer