@@ -86,9 +86,6 @@ var defaultLintersSettings = LintersSettings{
8686 EscapeHatches : []string {},
8787 WatchForScripts : []string {"Han" },
8888 },
89- Unqueryvet : UnqueryvetSettings {
90- CheckSQLBuilders : true ,
91- },
9289 Inamedparam : INamedParamSettings {
9390 SkipSingleParam : false ,
9491 },
@@ -165,6 +162,9 @@ var defaultLintersSettings = LintersSettings{
165162 SkipRegexp : `(export|internal)_test\.go` ,
166163 AllowPackages : []string {"main" },
167164 },
165+ Unqueryvet : UnqueryvetSettings {
166+ CheckSQLBuilders : true ,
167+ },
168168 Unused : UnusedSettings {
169169 FieldWritesAreUses : true ,
170170 PostStatementsAreReads : false ,
@@ -253,7 +253,7 @@ type LintersSettings struct {
253253 Gomodguard GoModGuardSettings `mapstructure:"gomodguard"`
254254 Gosec GoSecSettings `mapstructure:"gosec"`
255255 Gosmopolitan GosmopolitanSettings `mapstructure:"gosmopolitan"`
256- Unqueryvet UnqueryvetSettings `mapstructure:"unqueryvet"`
256+ Unqueryvet UnqueryvetSettings `mapstructure:"unqueryvet"`
257257 Govet GovetSettings `mapstructure:"govet"`
258258 Grouper GrouperSettings `mapstructure:"grouper"`
259259 Iface IfaceSettings `mapstructure:"iface"`
@@ -614,11 +614,6 @@ type GosmopolitanSettings struct {
614614 WatchForScripts []string `mapstructure:"watch-for-scripts"`
615615}
616616
617- type UnqueryvetSettings struct {
618- CheckSQLBuilders bool `mapstructure:"check-sql-builders"`
619- AllowedPatterns []string `mapstructure:"allowed-patterns"`
620- }
621-
622617type GovetSettings struct {
623618 Go string `mapstructure:"-"`
624619
@@ -1013,6 +1008,11 @@ type UnparamSettings struct {
10131008 CheckExported bool `mapstructure:"check-exported"`
10141009}
10151010
1011+ type UnqueryvetSettings struct {
1012+ CheckSQLBuilders bool `mapstructure:"check-sql-builders"`
1013+ AllowedPatterns []string `mapstructure:"allowed-patterns"`
1014+ }
1015+
10161016type UnusedSettings struct {
10171017 FieldWritesAreUses bool `mapstructure:"field-writes-are-uses"`
10181018 PostStatementsAreReads bool `mapstructure:"post-statements-are-reads"`
0 commit comments