Skip to content

Commit bd777ed

Browse files
committed
Update gounqvet to v1.2.0 - remove nolint support
1 parent b9d2d8c commit bd777ed

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ require (
147147
codeberg.org/chavacava/garif v0.2.0 // indirect
148148
dev.gaijin.team/go/golib v0.6.0 // indirect
149149
github.com/Masterminds/semver/v3 v3.3.1 // indirect
150-
github.com/MirrexOne/gounqvet v1.1.0
150+
github.com/MirrexOne/gounqvet v1.2.0
151151
github.com/alfatraining/structtag v1.0.0 // indirect
152152
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
153153
github.com/beorn7/perks v1.0.1 // indirect

go.sum

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

pkg/golinters/gounqvet/testdata/gounqvet.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ func badQueries() {
1717
count := "SELECT COUNT(*) FROM users"
1818
_ = count
1919

20-
// This should not trigger because of nolint comment
21-
debug := "SELECT * FROM debug_table" //nolint:gounqvet
22-
_ = debug
23-
2420
// Good queries (should not trigger)
2521
goodQuery := "SELECT id, name, email FROM users"
2622
_ = goodQuery

0 commit comments

Comments
 (0)