fix: add linter exceptions for current code style
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2025-04-18 15:06:11 +02:00
parent 9aaa97d2a1
commit be915c8d38
Signed by: tom
GPG key ID: F17EFE4272D89FF6
3 changed files with 4 additions and 1 deletions

View file

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