Skip to content

New one_call_pipe_linter - #2294

Merged
MichaelChirico merged 15 commits into
mainfrom
one_call_pipe
Nov 19, 2023
Merged

MichaelChirico merged 15 commits into
mainfrom
one_call_pipe

Conversation

@MichaelChirico

Copy link
Copy Markdown
Collaborator

Part of #884

This one's slightly odd because we ended up disabling this linter for ourselves -- linting code like:

x |>
  filter(a > 1)

Was just found to be too disruptive to normal {dplyr} workflows & we didn't invest in figuring out how to strike a balance between cases like that where it's OK and probably more readable with |> and other cases like (1:10) |> sum() where the pipeless version is clearly superior.

Comment thread R/one_call_pipe_linter.R Resolved
Comment thread R/one_call_pipe_linter.R Resolved
@codecov-commenter

codecov-commenter commented Nov 17, 2023 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e969d64) 99.40% compared to head (c4d94cd) 99.40%.

❗ Current head c4d94cd differs from pull request most recent head 5276315. Consider uploading reports for the commit 5276315 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2294   +/-   ##
=======================================
  Coverage   99.40%   99.40%           
=======================================
  Files         117      118    +1     
  Lines        5334     5355   +21     
=======================================
+ Hits         5302     5323   +21     
  Misses         32       32           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AshesITR

Copy link
Copy Markdown
Collaborator

Metadata tests missing

Comment thread R/one_call_pipe_linter.R Resolved
Comment thread inst/lintr/linters.csv Resolved

@AshesITR AshesITR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Almost good to merge.

Comment thread R/one_call_pipe_linter.R Resolved
AshesITR
AshesITR previously approved these changes Nov 19, 2023
@MichaelChirico
MichaelChirico merged commit 7d20334 into main Nov 19, 2023
@MichaelChirico
MichaelChirico deleted the one_call_pipe branch November 19, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants