mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Close #187: disable typecheck for golangci.com by default
This commit is contained in:
parent
d3eb3ed74d
commit
9ec959f08e
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@ package lintersdb
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
@ -197,7 +198,9 @@ func GetAllSupportedLinterConfigs() []linter.Config {
|
|||
golinters.Varcheck{}.Name(): true,
|
||||
golinters.Ineffassign{}.Name(): true,
|
||||
golinters.Deadcode{}.Name(): true,
|
||||
golinters.TypeCheck{}.Name(): true,
|
||||
|
||||
// don't typecheck for golangci.com: too many troubles
|
||||
golinters.TypeCheck{}.Name(): os.Getenv("GOLANGCI_COM_RUN") == "",
|
||||
}
|
||||
return enableLinterConfigs(lcs, func(lc *linter.Config) bool {
|
||||
return enabled[lc.Linter.Name()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue