-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: add validjson linter #3530
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
Conversation
Implements golangci#3477.
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
|
return nil | ||
} | ||
|
||
type ValidJsonTest struct { |
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.
Maybe we should change the name?
type ValidJsonTest struct { | |
type ValidJSONTest struct { |
Looks like part of https://github.com/breml/errchkjson 🤔 |
@Antonboom I only had a quick look, but yes, I think this is already covered by errchkjson. |
The
validjson
linter ensures that structs withjson
tags have valid types, suitable for JSON serialization.https://github.com/matthewloring/validjson
Fixes #3477