-
Notifications
You must be signed in to change notification settings - Fork 53
/
.pre-commit-config.yaml
39 lines (36 loc) · 1.07 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
# ==============================================================================
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# ref:
# - https://pre-commit.com/#pre-commit-configyaml---hooks
# usage repo:
# - hook list: https://pre-commit.com/hooks.html
# - golang:
# - https://github.com/TekWizely/pre-commit-golang
# - https://github.com/dnephin/pre-commit-golang
# - https://github.com/lietu/go-pre-commit
#
# ==============================================================================
repos:
#
# 插件库列表:
#
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: check-yaml
#
# for golang:
#
- repo: git://github.com/dnephin/pre-commit-golang
rev: master
hooks:
- id: go-fmt
- id: go-imports
- id: validate-toml
- id: no-go-testing
# - id: golangci-lint
# - id: go-unit-tests # 单元测试, 有效
# - id: go-build