@@ -2,7 +2,6 @@ package lintersdb
2
2
3
3
import (
4
4
"fmt"
5
- "os"
6
5
"sort"
7
6
"strings"
8
7
"sync"
@@ -187,23 +186,6 @@ func GetAllSupportedLinterConfigs() []linter.Config {
187
186
WithURL ("https://github.com/alexkohler/prealloc" ),
188
187
}
189
188
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
-
207
189
enabled := map [string ]bool {
208
190
golinters.Govet {}.Name (): true ,
209
191
golinters.Errcheck {}.Name (): true ,
0 commit comments