Skip to content

Commit 635248a

Browse files
ldezsivchari
authored andcommitted
review
1 parent 91072fa commit 635248a

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ require (
155155
github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 // indirect
156156
github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 // indirect
157157
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
158-
github.com/sivchari/nosnakecase v1.3.0
158+
github.com/sivchari/nosnakecase v1.5.0
159159
github.com/spf13/afero v1.8.2 // indirect
160160
github.com/spf13/cast v1.5.0 // indirect
161161
github.com/spf13/jwalterweatherman v1.1.0 // indirect

go.sum

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

test/run_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestTestsAreLintedByDefault(t *testing.T) {
9595
}
9696

9797
func TestCgoOk(t *testing.T) {
98-
testshared.NewLintRunner(t).Run("--no-config", "--enable-all", getTestDataDir("cgo")).ExpectNoIssues()
98+
testshared.NewLintRunner(t).Run("--no-config", "--enable-all", "-D", "nosnakecase", getTestDataDir("cgo")).ExpectNoIssues()
9999
}
100100

101101
func TestCgoWithIssues(t *testing.T) {

test/testdata/cgo/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"unsafe"
1515
)
1616

17-
//nolint:nosnakecase
1817
func Example() {
1918
cs := C.CString("Hello from stdio\n")
2019
C.myprint(cs)

test/testdata/noctx.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//args: -Enoctx
2-
package testdata
2+
package testdata_test
33

44
import (
55
"context"
@@ -131,4 +131,3 @@ func Noctx() {
131131
return req14, req15
132132
}()
133133
}
134-

0 commit comments

Comments
 (0)