Skip to content

Commit 854b6e7

Browse files
committed
Add xml reporting
1 parent 6718e1e commit 854b6e7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.golangci.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ run:
1010
issues:
1111
max-issues-per-linter: 10000
1212
linters:
13-
# Default set of linters.
14-
# The value can be: `standard`, `all`, `none`, or `fast`.
15-
# Default: standard
16-
# Compile protos beforehand
17-
# TODO CGO_CFLAGS=-I<FULL PATH TO REPO>nbs/contrib/libs/zstd/include ~/go/bin/golangci-lint run cloud/...
1813
default: all
1914
enable:
2015
- asasalint
@@ -141,12 +136,13 @@ linters:
141136
rules:
142137
- name: "exported"
143138
disabled: true
139+
- name: "cognitive-complexity"
140+
disabled: true
144141
custom:
145142
nbs-go-lint:
146143
type: "module"
147144
description: "NBS CI lint module"
148145
original-url: "github.com/jkuradobery/nbs-go-lint"
149-
version: "v0.1.2.fix"
150146
formatters:
151147
enable:
152148
- gci
@@ -158,4 +154,5 @@ output:
158154
formats:
159155
html:
160156
path: "golangci-lint-report.html"
161-
157+
checkstyle:
158+
path: "golangci-lint-report.xml"

run_golangcilint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ run_lint bash -c 'chown "$(id -u):$(id -g)" ${LOCAL_WORK_DIR}/golangci-lint-repo
8181
exit_code=$?
8282
SOURCE_UPPER_DIR="$(upper_dir "${SOURCE_VOLUME}")"
8383
cp "${SOURCE_UPPER_DIR}/golangci-lint-report.html" .
84-
cp "${SOURCE_UPPER_DIR}/golangci-lint-report.txt" .
84+
cp "${SOURCE_UPPER_DIR}/golangci-lint-report.xml" .
8585
if [ $exit_code -ne 0 ]; then
8686
echo "Linter failed"
8787
exit 1

0 commit comments

Comments
 (0)