-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (33 loc) · 996 Bytes
/
.pre-commit-config.yaml
File metadata and controls
34 lines (33 loc) · 996 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
30
31
32
33
34
# Copyright IBM Corp. 2023, 2025
# SPDX-License-Identifier: MPL-2.0
---
repos:
- repo: https://github.com/hashicorp/copywrite
rev: v0.15.0 # Use any release tag
hooks:
- id: add-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