Skip to content

Conversation

@AshesITR
Copy link
Collaborator

@AshesITR AshesITR commented May 26, 2022

fixes #1266

also improved location info and added tests for that.
renamed the file to function_left_parentheses_linter.R for consistency.

lintr::lint(text = "blah (1)", linters = function_left_parentheses_linter())

# on main
<text>:1:7: style: Remove spaces before the left parenthesis in a function call.
blah  (1)
      ^

# on pr
<text>:1:5: style: Remove spaces before the left parenthesis in a function call.
blah  (1)
    ^~

Will add a NEWS to #834 when this is merged.

AshesITR added 3 commits May 26, 2022 12:32
fixes #1266

also improved location info (I think?) and added tests for that.
renamed the file to function_left_parentheses_linter.R for consistency.
@@ -0,0 +1,32 @@
#' Function left parentheses linter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess it didn't pick up the rename... a shame for the got history...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could do an interactive rebase to split the rename from the modifications?

@AshesITR AshesITR merged commit 02b25b1 into main May 26, 2022
@AshesITR AshesITR deleted the xpath/function_left_parentheses branch May 26, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

function_left_parentheses_linter() to XPath

3 participants