Repository navigation
improve spaces_left_parentheses_linter for some edge cases - #533
Conversation
This reverts changes that are really this issue: r-lib/lintr#508 and will be fixed in this PR: r-lib/lintr#533 (confirmed locally). See mrc-1866 to remove eventually
|
I suspect checking with(
source_file$parsed_content,
sum(parent == parent[source_file$parsed_content[id, "parent"] == id]) == 2L
)To find unary operators might also work. Can you try that (instead of |
|
Is there a goal to migrate logic to be using the XPath tree where possible (or at least, where the |
|
Yeah, using XPath for this would be great! |
|
R/spaces_left_parentheses_linter.R:41:23: style: Use <-, not =, for assignment. not_exception = not_exception &&
^ |
…/lintr into space-operator-exceptions
|
OK, have filed #628 as a follow-up to this; let's just merge this for now not to confuse the issues. |
|
Strange that |
|
Seems no... @jimhester is there anything to tweak in the repo settings? or are we hitting some cache issue |
|
I just deleted the travis webhook, so they should no longer show up. |
Closes #508
Actually sort of two related issues with
spaces_left_parentheses_linter^) is not excluded from operators allowing a preceding^The former is easy to fix (h/t @AshesITR), the latter was a bit more involved (there may be an easier way to check whether the
+/-is unary)