-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[IMP] test/rst_style, Makefile: add optional review checkers #5274
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
StraubCreative
left a comment
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.
Approving after discussion and seeing a demo.
I think this is a really great add to our test kit.
Passing to @doc-review for a more thorough look.
Thanks in advance @AntoineVDV @Feyensv 🙏
acc14f8 to
db683dc
Compare
AntoineVDV
left a comment
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.
Hello, I pushed a review commit that you can squash if you're okay with it.
Some parts of the logic for "early breaks" are far-fetched, IMHO, so I didn't bother rewriting them and only reformatted+refactored what I could:
- added
100as the default value for the line length; - (re-)wrote some comments to explain better what
make reviewis about; - renamed a few variables and functions;
- simplified
is_valid_line; - fixed the
yieldsuggesting the wrong target line.
Otherwise, it seems to work overall, even though some false positives remain.
@robodoo delegate+
db683dc to
bd76c3f
Compare
|
Hi @AntoineVDV thank you for the improvements, I made two small corrections in 455e770:
I can squash and merge with your 👍 – thank you! 🙏 |
Oh yes, indeed. I updated the I will squash and r+ now so we can rebase #4870 today :) |
455e770 to
327b5c7
Compare
|
@robodoo r+ |
task-2801043 closes #5274 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>




This PR improves the functionality of the Makefile by adding the
reviewtarget as well as adding an optional rst_style check for detecting early line breaks.The
make reviewtarget enables all the optional checks to be ran, prompting the user for a path and maximum line length.task-2801043