Skip to content

New pipe_call_linter enforcing calls (not symbols) in magrittr pipes - #801

Merged
AshesITR merged 6 commits into
masterfrom
pipe-call
May 20, 2021
Merged

AshesITR merged 6 commits into
masterfrom
pipe-call

Conversation

@MichaelChirico

Copy link
Copy Markdown
Collaborator

@AshesITR

Copy link
Copy Markdown
Collaborator

Looks good so far. Can we also add a negative test for

x %>% { foo }

just to be sure symbols are allowed in curly braces?

@MichaelChirico

MichaelChirico commented May 19, 2021 via email

Copy link
Copy Markdown
Collaborator Author

@AshesITR

Copy link
Copy Markdown
Collaborator

This minimal code returns foo from the chain.
However, if this is correctly not linted, more complex code blocks should also be covered - e.g.

x %>% {
  tmp <- .
  bla <- foo %>% unrelated_stuff(tmp)
  my_combination_fun(tmp, bla)
}

@MichaelChirico

MichaelChirico commented May 20, 2021 via email

Copy link
Copy Markdown
Collaborator Author

@MichaelChirico

Copy link
Copy Markdown
Collaborator Author

Updated now. Thanks!

@AshesITR
AshesITR merged commit 9c26edf into master May 20, 2021
@AshesITR
AshesITR deleted the pipe-call branch May 20, 2021 20:35
@MichaelChirico MichaelChirico mentioned this pull request Mar 20, 2022
38 tasks done
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.

2 participants