dev: simplify GetAllSupportedLinterConfigs method (#3901)

This commit is contained in:
Ludovic Fernandez 2023-06-13 23:44:28 +02:00 committed by GitHub
parent 98b95a9989
commit 12e220b15d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 29 deletions

View file

@ -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