-
Notifications
You must be signed in to change notification settings - Fork 1
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
serde
macro lint
#48
Labels
A-user-story
Area: A user story or a related issue
Comments
That's a cool suggestion, thank you for the issue! Marker is currently sadly lacking a representation for attributes (rust-marker/marker#51), but I want to definitely support such lints. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lint explanation
It would be nice to lint Serde macros for unnecessary duplication.
For example:
default
on anOption
(Option
is automaticallydefault
)rename = "SomeThing"
that matches therename_all = "PascalCase"
on the structrename_all = "x"
if that would result in lessrename = "y"
linesExample code
Notes
The output/expansion of the macro is not relevent for these lints.
The text was updated successfully, but these errors were encountered: