-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
47 lines (40 loc) · 1011 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
35
36
37
38
39
40
41
42
43
44
45
46
47
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: [--maxkb=520]
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
exclude: templates\/.*
- id: check-json
- id: debug-statements
- id: end-of-file-fixer
exclude: vendor\/.*
- id: trailing-whitespace
exclude: vendor\/.*
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v0.8.3
hooks:
# Go Build
- id: go-build-mod
# Go Test
- id: go-test-mod
# Go Vet
- id: go-vet-mod
# GoSec
- id: go-sec-mod
# Formatters
- id: go-returns # replaces go-imports & go-fmt
# Style Checkers
- id: go-lint
exclude: (vendor\/)|(internal\/mock\/)
# GolangCI-Lint
# - Fast Multi-Linter
# - Can be configured to replace MOST other hooks
# - Supports repo config file for configuration
# - https://github.com/golangci/golangci-lint
#
- id: golangci-lint-mod