-
Notifications
You must be signed in to change notification settings - Fork 186
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
Enhance and fix indentation_linter
#1758
Conversation
The R 4.2.2 release scheduled for today seems to interfere with GHA. |
The condition for the double indent is very strict for now (it requires exactly the format specified in the style guide, i.e. no trailing arguments after # all good
function(a = 1,
b = 2) {
# body
}
function(
a = 1,
b = 2
) {
# body
}
function(
a = 1,
b = 2) {
# body
} |
Filed r-lib/actions#655 for the setup-r problem. |
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.
I would nolint the cyclocomp issue and file a follow up to keep the logic change here easier to follow
Took me a few days to get back to it, but factoring out the indentation style XPath logic into small functions made the code easier to digest (for me, at least 🤣) and fixed the cyclocomp lint. |
Codecov Report
@@ Coverage Diff @@
## main #1758 +/- ##
=======================================
Coverage 98.87% 98.88%
=======================================
Files 109 109
Lines 4623 4653 +30
=======================================
+ Hits 4571 4601 +30
Misses 52 52
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Great stuff! |
The issue in the reprex was
xp_block_ends
landed on line 1 because the comment was sitting there. It should have ended on line 2.