From 8d0984ef5d2811eb33bef864a9d2944735e35954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 17 Mar 2020 13:22:10 +0100 Subject: [PATCH] ci/lint: add integration tag In the current PRs we have an issue with the linter failing on a dead code in integration tests. The linter isn't failing on main_test.go file because it somehow ignores the integration tag. However, it fails on other files which main_test.go depends on and which have the integration tag. This commit tells golangci-lint to always use the integration tag while doing the inspection. --- .golangci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 1958a0ac2..34f2dc815 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,6 +4,10 @@ linters-settings: - shadow # default value recommended by golangci - composites +run: + build-tags: + - integration + issues: # Maximum issues count per one linter. Set to 0 to disable. Default is 50. max-issues-per-linter: 0