Skip to content

Commit

Permalink
fix(all): lint errors, pt2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jochumdev committed Nov 10, 2024
1 parent 402d317 commit e9a32a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module dagger/go-orb

go 1.23.0
go 1.23

require (
github.com/99designs/gqlgen v0.17.56
Expand Down
6 changes: 4 additions & 2 deletions event/natsjs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,21 @@ var (
)

func init() {
//nolint:errcheck
_ = cli.Flags.Add(cli.NewFlag(
event.ComponentType+"_addresses",
DefaultAddresses,
cli.ConfigPathSlice([]string{event.ComponentType, "addresses"}),
cli.Usage("Events addresses."),
)) //nolint:errcheck
))

//nolint:errcheck
_ = cli.Flags.Add(cli.NewFlag(
event.ComponentType+"_codec",
DefaultCodec,
cli.ConfigPathSlice([]string{event.ComponentType, "codec"}),
cli.Usage("Events internal codec."),
)) //nolint:errcheck
))

event.Register(Name, Provide)
}
Expand Down
6 changes: 4 additions & 2 deletions log/slog/slog.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,23 @@ const (
func init() {
log.Register(Name, Factory)

//nolint:errcheck
_ = cli.Flags.Add(cli.NewFlag(
"log_level",
log.DefaultLevel,
cli.ConfigPathSlice([]string{log.DefaultConfigSection, "level"}),
cli.Usage("Log level (FATAL, ERROR, NOTICE, WARN, INFO, DEBUG, TRACE)"),
cli.EnvVars("LOG_LEVEL"),
)) //nolint:errcheck
))

//nolint:errcheck
_ = cli.Flags.Add(cli.NewFlag(
"log_format",
DefaultFormat,
cli.ConfigPathSlice([]string{log.DefaultConfigSection, "format"}),
cli.Usage("Log format (json, text)"),
cli.EnvVars("LOG_FORMAT"),
)) //nolint:errcheck
))
}

// Config is the config struct for slog.
Expand Down

0 comments on commit e9a32a9

Please sign in to comment.