Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and sivchari committed Jun 28, 2022
1 parent 91072fa commit 635248a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -155,7 +155,7 @@ require (
github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 // indirect
github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 // indirect
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
github.com/sivchari/nosnakecase v1.3.0
github.com/sivchari/nosnakecase v1.5.0
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/run_test.go
Expand Up @@ -95,7 +95,7 @@ func TestTestsAreLintedByDefault(t *testing.T) {
}

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

func TestCgoWithIssues(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion test/testdata/cgo/main.go
Expand Up @@ -14,7 +14,6 @@ import (
"unsafe"
)

//nolint:nosnakecase
func Example() {
cs := C.CString("Hello from stdio\n")
C.myprint(cs)
Expand Down
3 changes: 1 addition & 2 deletions test/testdata/noctx.go
@@ -1,5 +1,5 @@
//args: -Enoctx
package testdata
package testdata_test

import (
"context"
Expand Down Expand Up @@ -131,4 +131,3 @@ func Noctx() {
return req14, req15
}()
}

0 comments on commit 635248a

Please sign in to comment.