diff --git a/pkg/lint/lintersdb/lintersdb.go b/pkg/lint/lintersdb/lintersdb.go index 5288d5dd..7d2d7ef2 100644 --- a/pkg/lint/lintersdb/lintersdb.go +++ b/pkg/lint/lintersdb/lintersdb.go @@ -2,7 +2,6 @@ package lintersdb import ( "fmt" - "os" "sort" "strings" "sync" @@ -187,23 +186,6 @@ func GetAllSupportedLinterConfigs() []linter.Config { WithURL("https://github.com/alexkohler/prealloc"), } - if os.Getenv("GOLANGCI_COM_RUN") == "1" { - disabled := map[string]bool{ - golinters.Gocyclo{}.Name(): true, // annoying - golinters.Dupl{}.Name(): true, // annoying - golinters.Maligned{}.Name(): true, // rarely usable - golinters.TypeCheck{}.Name(): true, // annoying because of different building envs - golinters.Misspell{}.Name(): true, // unsure about false-positives number - golinters.Lll{}.Name(): true, // annoying - golinters.Unparam{}.Name(): true, // need to check it first - golinters.Nakedret{}.Name(): true, // annoying - golinters.Prealloc{}.Name(): true, // annoying - } - return enableLinterConfigs(lcs, func(lc *linter.Config) bool { - return !disabled[lc.Linter.Name()] - }) - } - enabled := map[string]bool{ golinters.Govet{}.Name(): true, golinters.Errcheck{}.Name(): true,