mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-02 19:04:14 +02:00
pre-commit: add pre-commit configuration (#666)
This commit is contained in:
parent
3f4a22a10d
commit
f5eaad54ee
2 changed files with 24 additions and 2 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -19,7 +19,7 @@ _test
|
|||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
[568vq].out
|
||||
|
||||
|
||||
*.cgo1.go
|
||||
*.cgo2.c
|
||||
_cgo_defun.c
|
||||
|
@ -81,4 +81,6 @@ docs/.vuepress/dist/
|
|||
.changes.md
|
||||
|
||||
# autocert
|
||||
.pomerium/
|
||||
.pomerium/
|
||||
|
||||
!.pre-commit-config.yaml
|
||||
|
|
20
.pre-commit-config.yaml
Normal file
20
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v2.4.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/syntaqx/git-hooks
|
||||
rev: v0.0.16
|
||||
hooks:
|
||||
- id: go-mod-tidy
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: lint
|
||||
name: lint
|
||||
language: system
|
||||
entry: make
|
||||
args: ["lint"]
|
||||
types: ["go"]
|
Loading…
Add table
Add a link
Reference in a new issue