From b7551c57f2178d5f7adf2834637eff6a5c147bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Thu, 10 Oct 2019 13:42:31 +0200 Subject: [PATCH] ci: add golangci-lint configuration file (#1188) --- .golangci.yml | 14 ++++++++++++++ Makefile | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 00000000000..02f9cacb3bd --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,14 @@ +# This file contains all available configuration options +# with their default values. + +# options for analysis running +run: + tests: false + +linters: + enable-all: true + disable: + - wsl + - lll + - funlen + - godox diff --git a/Makefile b/Makefile index 95a4395736d..161bb036a85 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ lint: # TODO: fix funlen issues # TODO: fix godox issues # TODO: fix wsl issues - ./bin/golangci-lint run --tests=false --enable-all --disable wsl --disable lll --disable funlen --disable godox ./... + ./bin/golangci-lint run ./... ./bin/misspell -error **/* .PHONY: lint