@@ -2,7 +2,6 @@ package lintersdb
22
33import (
44 "fmt"
5- "os"
65 "sort"
76 "strings"
87 "sync"
@@ -187,23 +186,6 @@ func GetAllSupportedLinterConfigs() []linter.Config {
187186 WithURL ("https://github.com/alexkohler/prealloc" ),
188187 }
189188
190- if os .Getenv ("GOLANGCI_COM_RUN" ) == "1" {
191- disabled := map [string ]bool {
192- golinters.Gocyclo {}.Name (): true , // annoying
193- golinters.Dupl {}.Name (): true , // annoying
194- golinters.Maligned {}.Name (): true , // rarely usable
195- golinters.TypeCheck {}.Name (): true , // annoying because of different building envs
196- golinters.Misspell {}.Name (): true , // unsure about false-positives number
197- golinters.Lll {}.Name (): true , // annoying
198- golinters.Unparam {}.Name (): true , // need to check it first
199- golinters.Nakedret {}.Name (): true , // annoying
200- golinters.Prealloc {}.Name (): true , // annoying
201- }
202- return enableLinterConfigs (lcs , func (lc * linter.Config ) bool {
203- return ! disabled [lc .Linter .Name ()]
204- })
205- }
206-
207189 enabled := map [string ]bool {
208190 golinters.Govet {}.Name (): true ,
209191 golinters.Errcheck {}.Name (): true ,
0 commit comments