Skip to content

Commit

Permalink
fix(go): use --fast golangci-lint option
Browse files Browse the repository at this point in the history
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 <guilhem@barpilot.io>
  • Loading branch information
guilhem committed Jun 15, 2022
1 parent 7c7c4e9 commit 89124ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linter.sh
Expand Up @@ -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}"
Expand Down

0 comments on commit 89124ef

Please sign in to comment.