Skip to content

Commit 987f135

Browse files
committed
update linter version
1 parent c0d7d69 commit 987f135

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
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.0.0
158+
github.com/sivchari/nosnakecase v1.0.1
159159
github.com/spf13/afero v1.8.2 // indirect
160160
github.com/spf13/cast v1.4.1 // indirect
161161
github.com/spf13/jwalterweatherman v1.1.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/nosnakecase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func b(a_a int) { // ERROR "a_a is used under score. You should use mixedCap or
99

1010
func c() (c_c int) { // ERROR "c_c is used under score. You should use mixedCap or MixedCap."
1111
c_c = 1 // ERROR "c_c is used under score. You should use mixedCap or MixedCap."
12-
return c_c // ERROR "c_c is used under score. You should use mixedCap or MixedCap."
12+
return c_c // It's never detected, because `c_c` is already detected.
1313
}
1414

1515
func d() {

0 commit comments

Comments
 (0)