gitlab.com/gitlab-org/labkit@v1.21.0/lint.sh (about) 1 #!/usr/bin/env sh 2 3 set -eux 4 # Write the code coverage report to gl-code-quality-report.json 5 # and print linting issues to stdout in the format: path/to/file:line description 6 # https://docs.gitlab.com/ee/development/go_guide/#automatic-linting 7 golangci-lint run --timeout 5m --out-format code-climate | 8 tee gl-code-quality-report.json | 9 jq -r '.[] | "\(.location.path):\(.location.lines.begin) \(.description)"'