-
Notifications
You must be signed in to change notification settings - Fork 36
refactor(rules): migrate all Rule
impls to define_rule!
macro
#1558
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
base: main
Are you sure you want to change the base?
Conversation
@benfdking it seems much simpler, and in the future it will be easier if we want to remove the |
Benchmark for 904116dClick to view benchmark
|
Hey 👋 This to me feels somewhat simpler and more complex in the same breath: Cleaner as the rule code itself looker simpler, less approachable because of that macro. I honestly don't know which is better, so happy to go with your recommendation. As I see it at the moment, there's a neat win in having rule descriptions also apply in Rust docs. Curious to understand though why you think we can drop the trait/why we would want that. |
By removing the |
However, this will probably also require modifying the configurator, as suggested in an issue, to consolidate everything into a single large |
Happy to give it a go for the above. |
06cb0b1
to
053db3d
Compare
Benchmark for cabd0baClick to view benchmark
|
No description provided.