gocritic: support of enable-all and disable-all options (#4335)

Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
This commit is contained in:
Anton Telyshev 2024-02-19 16:50:25 +03:00 committed by GitHub
parent b07bd18cfd
commit c65868c105
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 824 additions and 429 deletions

View file

@ -460,7 +460,9 @@ type GoConstSettings struct {
type GoCriticSettings struct {
Go string `mapstructure:"-"`
DisableAll bool `mapstructure:"disable-all"`
EnabledChecks []string `mapstructure:"enabled-checks"`
EnableAll bool `mapstructure:"enable-all"`
DisabledChecks []string `mapstructure:"disabled-checks"`
EnabledTags []string `mapstructure:"enabled-tags"`
DisabledTags []string `mapstructure:"disabled-tags"`