Browse Source

Add pre-commit config

master
Chris Smith 5 years ago
parent
commit
2e81266a1c
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      .pre-commit-config.yaml

+ 17
- 0
.pre-commit-config.yaml View File

@@ -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

Loading…
Cancel
Save