mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
dev: simplify GetAllSupportedLinterConfigs method (#3901)
This commit is contained in:
parent
98b95a9989
commit
12e220b15d
2 changed files with 21 additions and 29 deletions
|
@ -50,6 +50,11 @@ type Config struct {
|
|||
Deprecation *Deprecation
|
||||
}
|
||||
|
||||
func (lc *Config) WithEnabledByDefault() *Config {
|
||||
lc.EnabledByDefault = true
|
||||
return lc
|
||||
}
|
||||
|
||||
func (lc *Config) ConsiderSlow() *Config {
|
||||
lc.IsSlow = true
|
||||
return lc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue