Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
golangci-lint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pipelines
images
test
golangci-lint
Commits
6a61cbb7
Commit
6a61cbb7
authored
8 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Add generic CI script to include
parent
e10c8860
No related branches found
No related tags found
No related merge requests found
Pipeline
#76166
passed
8 months ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci.yml
+16
-0
16 additions, 0 deletions
ci.yml
with
16 additions
and
0 deletions
ci.yml
0 → 100644
+
16
−
0
View file @
6a61cbb7
lint
:
stage
:
test
image
:
registry.git.autistici.org/pipelines/images/test/golangci-lint:main
script
:
# 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
-
golangci-lint run --out-format code-climate | tee gl-code-quality-report.json | jq -r '.[] | "\(.location.path):\(.location.lines.begin) \(.description)"'
artifacts
:
reports
:
codequality
:
gl-code-quality-report.json
paths
:
-
gl-code-quality-report.json
allow_failure
:
true
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment