28 lines
743 B
YAML
28 lines
743 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- repo: local
|
|
hooks:
|
|
- id: gofumpt
|
|
name: gofumpt
|
|
entry: gofumpt
|
|
args: [-l, -w, -extra]
|
|
language: golang
|
|
types: [go]
|
|
additional_dependencies: ['mvdan.cc/gofumpt@latest']
|
|
- id: structslop
|
|
name: structslop
|
|
entry: structslop
|
|
args: [-apply]
|
|
language: golang
|
|
types: [go]
|
|
additional_dependencies: ['github.com/orijtech/structslop/cmd/structslop@latest']
|
|
- repo: https://github.com/golangci/golangci-lint
|
|
rev: v1.50.0
|
|
hooks:
|
|
- id: golangci-lint
|