Skip to content
Snippets Groups Projects
Commit ef86b398 authored by Malte Bauch's avatar Malte Bauch
Browse files

fix code-quality rules

parent 1a89f4c1
No related branches found
No related tags found
3 merge requests!90Develop,!54Resolve "Restructure Project Directory Structure",!53V.0.1.0 Codename Threadbare
Pipeline #52770 failed
......@@ -2,8 +2,8 @@ code-quality-master:
image: golangci/golangci-lint:latest-alpine
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
- if: $CI_DEFAULT_BRANCH
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
- if: '$CI_DEFAULT_BRANCH'
script:
# writes golangci-lint output to gl-code-quality-report.json
- golangci-lint run --config build/ci/.golangci-config/.golangci-master.yml --out-format code-climate | tee gl-code-quality-report.json
......@@ -19,7 +19,7 @@ code-quality:
stage: test
allow_failure: true
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH'
script:
# writes golangci-lint output to gl-code-quality-report.json
- golangci-lint run --config build/ci/.golangci-config/.golangci.yml --out-format code-climate | tee gl-code-quality-report.json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment