From 34cfb299621b7cfe5c2385d6439c79633ccbdb68 Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Thu, 16 Jun 2022 22:11:28 +0200 Subject: [PATCH] fix(go): use `--fast` golangci-lint option (#3043) All tests can't be run agaist single files. golangci-lint have a dedicated list of linter adapted to single file usage. https://github.com/golangci/golangci-lint/issues/1574 Signed-off-by: Guilhem Lettron --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index fa3a158a..1a2247f3 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -900,7 +900,7 @@ LINTER_COMMANDS_ARRAY['ENV']="dotenv-linter" LINTER_COMMANDS_ARRAY['GITHUB_ACTIONS']="actionlint -config-file ${GITHUB_ACTIONS_LINTER_RULES}" LINTER_COMMANDS_ARRAY['GITLEAKS']="gitleaks detect --no-git -c ${GITLEAKS_LINTER_RULES} -v -s" LINTER_COMMANDS_ARRAY['GHERKIN']="gherkin-lint -c ${GHERKIN_LINTER_RULES}" -LINTER_COMMANDS_ARRAY['GO']="golangci-lint run -c ${GO_LINTER_RULES}" +LINTER_COMMANDS_ARRAY['GO']="golangci-lint run --fast -c ${GO_LINTER_RULES}" LINTER_COMMANDS_ARRAY['GOOGLE_JAVA_FORMAT']="java -jar /usr/bin/google-java-format" LINTER_COMMANDS_ARRAY['GROOVY']="npm-groovy-lint -c ${GROOVY_LINTER_RULES} --failon warning --no-insight" LINTER_COMMANDS_ARRAY['HTML']="htmlhint --config ${HTML_LINTER_RULES}"