golangci-lint run --out-format checkstyle $GO_CI_LINT_ARGS > reports/golangci-lint-report.xml
fi
}
function install_go_mod_outdated() {
cd "$(mktemp -d)"
go mod init go-mod-outdated
@@ -371,14 +369,18 @@ go-ci-lint:
stage:build
image:$GO_CI_LINT_IMAGE
script:
-golangci-lint run $GO_CI_LINT_ARGS
-sonar_lint_report
-mkdir -p reports
# produce all reports at once
-golangci-lint run --out-format "colored-line-number:stdout,code-climate:reports/go-ci-lint.codeclimate.json,checkstyle:reports/golangci-lint-report.xml" $GO_CI_LINT_ARGS