As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 0c6afa23 authored by Stan Hu's avatar Stan Hu
Browse files

Add golangci-lint to CI job

This job is added per the documentation:
https://docs.gitlab.com/ee/development/go_guide/#automatic-linting

Add libkrb5-dev to golangci-lint job

This is needed to process internal/sshd/gssapi.go.
parent 37076c46
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -208,3 +208,18 @@ modules:tidy:
script:
- go mod tidy
- git diff --exit-code go.mod go.sum
lint:
image: golangci/golangci-lint
stage: test
script:
- apt update && apt install -y libkrb5-dev
# Write the code coverage report to gl-code-quality-report.json
# and print linting issues to stdout in the format: path/to/file:line description
# remove `--issues-exit-code 0` or set to non-zero to fail the job if linting issues are detected
- golangci-lint run --issues-exit-code 0 --print-issued-lines=false --out-format code-climate:gl-code-quality-report.json,line-number
artifacts:
reports:
codequality: gl-code-quality-report.json
paths:
- gl-code-quality-report.json
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment