Skip to content

Commit 89124ef

Browse files
committed
fix(go): use --fast golangci-lint option
All tests can't be run agaist single files. golangci-lint have a dedicated list of linter adapted to single file usage. golangci/golangci-lint#1574 Signed-off-by: Guilhem Lettron <[email protected]>
1 parent 7c7c4e9 commit 89124ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/linter.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ LINTER_COMMANDS_ARRAY['ENV']="dotenv-linter"
900900
LINTER_COMMANDS_ARRAY['GITHUB_ACTIONS']="actionlint -config-file ${GITHUB_ACTIONS_LINTER_RULES}"
901901
LINTER_COMMANDS_ARRAY['GITLEAKS']="gitleaks detect --no-git -c ${GITLEAKS_LINTER_RULES} -v -s"
902902
LINTER_COMMANDS_ARRAY['GHERKIN']="gherkin-lint -c ${GHERKIN_LINTER_RULES}"
903-
LINTER_COMMANDS_ARRAY['GO']="golangci-lint run -c ${GO_LINTER_RULES}"
903+
LINTER_COMMANDS_ARRAY['GO']="golangci-lint run --fast -c ${GO_LINTER_RULES}"
904904
LINTER_COMMANDS_ARRAY['GOOGLE_JAVA_FORMAT']="java -jar /usr/bin/google-java-format"
905905
LINTER_COMMANDS_ARRAY['GROOVY']="npm-groovy-lint -c ${GROOVY_LINTER_RULES} --failon warning --no-insight"
906906
LINTER_COMMANDS_ARRAY['HTML']="htmlhint --config ${HTML_LINTER_RULES}"

0 commit comments

Comments
 (0)