forked from hashicorp/copywrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (33 loc) · 1001 Bytes
/
.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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
---
repos:
- repo: https://github.com/hashicorp/copywrite
rev: v0.15.0 # Use any release tag
hooks:
- id: copywrite-headers
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
exclude: ^addLicense/testdata/
- id: trailing-whitespace
exclude: ^addLicense/testdata/
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
hooks:
- id: go-fmt
- id: go-vet
exclude: ^addLicense/testdata/
- id: go-imports
- id: go-cyclo
args: [-over=20]
- id: validate-toml
- id: no-go-testing
- id: golangci-lint
# Disabling until gocritic fixes the "Unexpected package creation during export data loading"
# error that shows up when using packages containing generics
# - id: go-critic
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy