fix: add linter exceptions for current code style
This commit is contained in:
parent
9aaa97d2a1
commit
be915c8d38
3 changed files with 4 additions and 1 deletions
|
@ -52,9 +52,11 @@ func NewRootCommand(c *config.Config) *cobra.Command {
|
|||
}
|
||||
|
||||
if c.JSONFormat {
|
||||
//nolint:reassign // overwriting the default logger with the desired logger layout
|
||||
log.Logger = logger.JSONLoggerLayout(os.Stderr)
|
||||
c.Logger = logger.JSONLoggerLayout(os.Stdout)
|
||||
} else {
|
||||
//nolint:reassign // overwriting the default logger with the desired logger layout
|
||||
log.Logger = logger.CliLoggerLayout(os.Stderr)
|
||||
c.Logger = logger.CliLoggerLayout(os.Stdout)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue