fix: include custom linters in enable-all ()

This commit is contained in:
Ludovic Fernandez 2023-06-16 10:00:09 +02:00 committed by GitHub
parent d147d8bf4f
commit 6c7aba67ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 26 deletions
pkg/commands

View file

@ -120,7 +120,7 @@ func NewExecutor(buildInfo BuildInfo) *Executor {
}
// recreate after getting config
e.DBManager = lintersdb.NewManager(e.cfg, e.log).WithCustomLinters()
e.DBManager = lintersdb.NewManager(e.cfg, e.log)
// Slice options must be explicitly set for proper merging of config and command-line options.
fixSlicesFlags(e.runCmd.Flags())