Skip to content
Snippets Groups Projects
Commit 4b1379a8 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/3195-golangci-lint-2.0' into 'master'

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

See merge request perxis/perxis-go!452
parents 74dc9a7f 22f02a91
Branches feature/3149-LocaleCodeAsID-Feature
No related tags found
No related merge requests found
......@@ -18,12 +18,12 @@ run_tests:
junit: report.xml
lint:
image: golangci/golangci-lint:v1.62.2-alpine
image: golangci/golangci-lint:v2.0.2-alpine
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
stage: test
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:
reports:
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