You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/golinters/gounqvet/testdata/gounqvet.go
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@ import (
7
7
"strconv"
8
8
)
9
9
10
-
funcbadQueries() {
10
+
// badQueries
11
+
func_() {
11
12
query:="SELECT * FROM users"// want "avoid SELECT \\* - explicitly specify needed columns for better performance, maintainability and stability"
12
13
13
14
vardb*sql.DB
@@ -35,12 +36,14 @@ type SQLBuilder interface {
35
36
Query() string
36
37
}
37
38
38
-
funcbadSQLBuilder(builderSQLBuilder) {
39
+
// badSQLBuilder
40
+
func_(builderSQLBuilder) {
39
41
query:=builder.Select("*").From("products") // want "avoid SELECT \\* in SQL builder - explicitly specify columns to prevent unnecessary data transfer and schema change issues"
0 commit comments