Parcourir la source

Add pre-commit config

master
Chris Smith il y a 5 ans
Parent
révision
2e81266a1c
1 fichiers modifiés avec 17 ajouts et 0 suppressions
  1. 17
    0
      .pre-commit-config.yaml

+ 17
- 0
.pre-commit-config.yaml Voir le fichier

@@ -0,0 +1,17 @@
1
+repos:
2
+  - repo: https://github.com/pre-commit/pre-commit-hooks
3
+    rev: v2.1.0
4
+    hooks:
5
+      - id: check-merge-conflict
6
+      - id: end-of-file-fixer
7
+      - id: trailing-whitespace
8
+  - repo: https://github.com/Lucas-C/pre-commit-hooks
9
+    rev: v1.1.6
10
+    hooks:
11
+      - id: remove-crlf
12
+      - id: forbid-tabs
13
+  - repo: https://github.com/dnephin/pre-commit-golang
14
+    rev: v0.3.2
15
+    hooks:
16
+      - id: go-fmt
17
+      - id: go-vet

Chargement…
Annuler
Enregistrer