From e72fe0540ddfc831aad91cab5cb388b6a955d9fe Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Mon, 3 Dec 2018 14:03:04 -0800 Subject: [PATCH] Add .pre-commit-hooks.yaml This file will allow using golangci-lint with https://pre-commit.com. --- .pre-commit-hooks.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 00000000..78a0bf27 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,7 @@ +- id: golangci-lint + name: golangci-lint + description: Fast linters runner for Go. + entry: golangci-lint run + types: [go] + language: golang + pass_filenames: false