Skip to content

Commit a9acb8d

Browse files
build(deps): bump github.com/ryancurrah/gomodguard from 1.2.4 to 1.3.0 (golangci#3518)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent b126822 commit a9acb8d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require (
3131
github.com/firefart/nonamedreturns v1.0.4
3232
github.com/fzipp/gocyclo v0.6.0
3333
github.com/go-critic/go-critic v0.6.5
34-
github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b
34+
github.com/go-xmlfmt/xmlfmt v1.1.2
3535
github.com/gofrs/flock v0.8.1
3636
github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2
3737
github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a
@@ -78,7 +78,7 @@ require (
7878
github.com/pkg/errors v0.9.1
7979
github.com/polyfloyd/go-errorlint v1.0.6
8080
github.com/quasilyte/go-ruleguard/dsl v0.3.22
81-
github.com/ryancurrah/gomodguard v1.2.4
81+
github.com/ryancurrah/gomodguard v1.3.0
8282
github.com/ryanrolds/sqlclosecheck v0.3.0
8383
github.com/sanposhiho/wastedassign/v2 v2.0.6
8484
github.com/sashamelentyev/interfacebloat v1.1.0
@@ -154,7 +154,6 @@ require (
154154
github.com/olekukonko/tablewriter v0.0.5 // indirect
155155
github.com/pelletier/go-toml v1.9.5 // indirect
156156
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
157-
github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d // indirect
158157
github.com/pmezard/go-difflib v1.0.0 // indirect
159158
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
160159
github.com/prometheus/client_golang v1.12.1 // indirect
@@ -171,6 +170,7 @@ require (
171170
github.com/spf13/jwalterweatherman v1.1.0 // indirect
172171
github.com/stretchr/objx v0.5.0 // indirect
173172
github.com/subosito/gotenv v1.4.1 // indirect
173+
github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect
174174
github.com/tklauser/go-sysconf v0.3.11 // indirect
175175
github.com/tklauser/numcpus v0.6.0 // indirect
176176
github.com/valyala/bytebufferpool v1.0.0 // indirect

go.sum

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/printers/checkstyle_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//nolint:dupl
21
package printers
32

43
import (
54
"bytes"
65
"context"
76
"go/token"
7+
"strings"
88
"testing"
99

1010
"github.com/stretchr/testify/assert"
@@ -51,7 +51,7 @@ func TestCheckstyle_Print(t *testing.T) {
5151
require.NoError(t, err)
5252

5353
//nolint:lll
54-
expected := "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\r\n<checkstyle version=\"5.0\">\r\n <file name=\"path/to/filea.go\">\r\n <error column=\"4\" line=\"10\" message=\"some issue\" severity=\"warning\" source=\"linter-a\">\r\n </error>\r\n </file>\r\n <file name=\"path/to/fileb.go\">\r\n <error column=\"9\" line=\"300\" message=\"another issue\" severity=\"error\" source=\"linter-b\">\r\n </error>\r\n </file>\r\n</checkstyle>\n"
54+
expected := "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<checkstyle version=\"5.0\">\n <file name=\"path/to/filea.go\">\n <error column=\"4\" line=\"10\" message=\"some issue\" severity=\"warning\" source=\"linter-a\"></error>\n </file>\n <file name=\"path/to/fileb.go\">\n <error column=\"9\" line=\"300\" message=\"another issue\" severity=\"error\" source=\"linter-b\"></error>\n </file>\n</checkstyle>\n"
5555

56-
assert.Equal(t, expected, buf.String())
56+
assert.Equal(t, expected, strings.ReplaceAll(buf.String(), "\r", ""))
5757
}

0 commit comments

Comments
 (0)