Skip to content

Commit a9acb8d

Browse files
build(deps): bump github.com/ryancurrah/gomodguard from 1.2.4 to 1.3.0 (#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)