Skip to content

build(deps): bump go-simpler.org/sloglint from 0.9.0 to 0.10.0 #5688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2722,11 +2722,16 @@ linters:
# https://github.com/go-simpler/sloglint?tab=readme-ov-file#static-messages
# Default: false
static-msg: true
# Enforce message style.
# Values: lowercased, capitalized
# https://github.com/go-simpler/sloglint?tab=readme-ov-file#message-style
# Default: ""
msg-style: capitalized
# Enforce using constants instead of raw keys.
# https://github.com/go-simpler/sloglint?tab=readme-ov-file#no-raw-keys
# Default: false
no-raw-keys: true
# Enforce a single key naming convention.
# Enforce key naming convention.
# Values: snake, kebab, camel, pascal
# https://github.com/go-simpler/sloglint?tab=readme-ov-file#key-naming-convention
# Default: ""
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ require (
github.com/ykadowak/zerologlint v0.1.5
gitlab.com/bosi/decorder v0.4.2
go-simpler.org/musttag v0.13.0
go-simpler.org/sloglint v0.9.0
go-simpler.org/sloglint v0.10.0
go.uber.org/automaxprocs v1.6.0
golang.org/x/mod v0.24.0
golang.org/x/sys v0.31.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2962,6 +2962,11 @@
"type": "boolean",
"default": false
},
"msg-style": {
"description": "Enforce message style.",
"enum": ["", "lowercased", "capitalized"],
"default": false
},
"key-naming-case": {
"description": "Enforce a single key naming convention.",
"enum": ["snake", "kebab", "camel", "pascal"]
Expand Down
1 change: 1 addition & 0 deletions pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ type SlogLintSettings struct {
NoGlobal string `mapstructure:"no-global"`
Context string `mapstructure:"context"`
StaticMsg bool `mapstructure:"static-msg"`
MsgStyle string `mapstructure:"msg-style"`
NoRawKeys bool `mapstructure:"no-raw-keys"`
KeyNamingCase string `mapstructure:"key-naming-case"`
ForbiddenKeys []string `mapstructure:"forbidden-keys"`
Expand Down
1 change: 1 addition & 0 deletions pkg/golinters/sloglint/sloglint.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func New(settings *config.SlogLintSettings) *goanalysis.Linter {
NoGlobal: settings.NoGlobal,
ContextOnly: settings.Context,
StaticMsg: settings.StaticMsg,
MsgStyle: settings.MsgStyle,
NoRawKeys: settings.NoRawKeys,
KeyNamingCase: settings.KeyNamingCase,
ForbiddenKeys: settings.ForbiddenKeys,
Expand Down
Loading