We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c6528 commit b62fb8cCopy full SHA for b62fb8c
pkg/config/loader.go
@@ -60,6 +60,14 @@ func (l *Loader) Load(opts LoadOptions) error {
60
l.cfg.Linters.Exclusions.Generated = GeneratedModeStrict
61
}
62
63
+ if !l.cfg.InternalCmdTest {
64
+ for _, n := range slices.Concat(l.cfg.Linters.Enable, l.cfg.Linters.Disable) {
65
+ if n == "typecheck" {
66
+ return fmt.Errorf("%s is not a linter, it cannot be enabled or disabled", n)
67
+ }
68
69
70
+
71
l.handleFormatters()
72
73
if opts.CheckDeprecation {
0 commit comments