-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 879 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 879 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: gofmt
name: gofmt
entry: bash -c 'go fmt ./... && cd tools && go fmt ./...'
language: system
types: [ go ]
pass_filenames: false
- id: addlicense
name: Add License
entry: go tool -modfile=tools/go.mod addlicense -c 'variHQ OÜ' -l 'BSD-3-Clause' -s=only
language: system
types: [ file ]
exclude: '\.(hcl|yaml|yml)$'
- id: golangci-lint
name: golangci-lint
entry: go tool -modfile=tools/go.mod golangci-lint run
language: system
types: [ go ]
pass_filenames: false