-
Notifications
You must be signed in to change notification settings - Fork 5
Add new spacing rules pending from DML style guide #108
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
Add new spacing rules pending from DML style guide #108
Conversation
e2b4518 to
4cc5936
Compare
2af6f35 to
76b5474
Compare
|
There seems to be a problem with the #[serde(default)] attribute we use for LintCfg and its fields. We should make this clear to avoid this type of silent issues. |
f90a029 to
8b336dd
Compare
This is now handled by #130 and should be merged soon to resolve this problem |
8b18048 to
06c848a
Compare
|
@JonatanWaern I think it functionality here is complete. Please do a review round for feedback. |
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.
Nice work! needs a few changes (see also clippy part of build) and a changelog entry
I think all suggestions are addressed now. |
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.
Needs a rebase on main, which seems to have conflicts (likely due to my in-line lint annotation change, which also touches the tests on lint/mod.rs level.)
|
@alecalvop Are you looking to merge this soon? I was planning to make a release this week so we can likely squeeze it in before |
Use robust check for spacing tests
* Add pointer declaration spacing rules * Remove NspPtrDecl disable
* Add sp_binop.rs to spacing rule tests module for BinaryExpressionContent * Add sp_ternary rule for ? : conditionals for TertiaryExpressionContent
* Add SP Reserved spacing rule * Add support for `while` `for` and `else` * Add rule documentation * Add rule to example_lint_cfg.json --------- Co-authored-by: Vasquez Alfaro, Juan J <juan.j.vasquez.alfaro@intel.com>
a9d1b48 to
1db4874
Compare
@JonatanWaern Yes, I have addressed the comments |
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.
Looks good, nice work!
Address pending rules tracked in issue #71