Open Kriskras99 opened 10 months ago
That's a cool suggestion, thank you for the issue! Marker is currently sadly lacking a representation for attributes (https://github.com/rust-marker/marker/issues/51), but I want to definitely support such lints.
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.