-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: add sloglint
linter
#4133
Conversation
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements.
Pull Request Description
Linter
The Linter Tests Inside Golangci-lint
|
hello, slog is a part of go1.21 but the current minimum requirement for golangci-lint is go1.20. Another point, this linter is really close to loggercheck. |
Yeah, I can see that there is a problem with 1.20 in CI 🥲 We don't actually need
Hmm, I thought that UPD: Now I think that |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hello,
I'd like to add the
sloglint
linter.It ensures consistent code style when using
log/slog
.Currently, the following checks are available:
I've tested it on several big projects that use
log/slog
, and it works just fine 😎