Skip to content
Snippets Groups Projects
Commit 22f02a91 authored by Alex Petraky's avatar Alex Petraky :basketball_player_tone1: Committed by Pavel Antonov
Browse files

chore: Сделана миграция конфигурации линтера до второй версии, обновлен .gitlab-ci.yml

Issue: #3195
parent 07c2f8bb
No related branches found
No related tags found
No related merge requests found
...@@ -18,12 +18,12 @@ run_tests: ...@@ -18,12 +18,12 @@ run_tests:
junit: report.xml junit: report.xml
lint: lint:
image: golangci/golangci-lint:v1.62.2-alpine image: golangci/golangci-lint:v2.0.2-alpine
rules: 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)'
stage: test stage: test
script: script:
- golangci-lint run --config .golangci.yml --issues-exit-code 1 --print-issued-lines=false --new-from-rev $CI_MERGE_REQUEST_DIFF_BASE_SHA --out-format code-climate:gl-code-quality-report.json,line-number - golangci-lint run --timeout 15m --config .golangci.yml --issues-exit-code 1 --new-from-rev $CI_MERGE_REQUEST_DIFF_BASE_SHA --output.code-climate.path gl-code-quality-report.json --output.text.path stdout
artifacts: artifacts:
reports: reports:
codequality: gl-code-quality-report.json codequality: gl-code-quality-report.json
......
This diff is collapsed.
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