Skip to content

Enforce the native pipe by default #2796

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Enforce the native pipe by default #2796

wants to merge 15 commits into from

Conversation

MichaelChirico
Copy link
Collaborator

@MichaelChirico MichaelChirico commented Feb 26, 2025

Closes #2707. Progress on #2737.

About cautions for switching from %>% to |>, my first instinct is we should leave that to the style guide, any thoughts?

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.59%. Comparing base (0939d20) to head (cb8636a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2796   +/-   ##
=======================================
  Coverage   99.59%   99.59%           
=======================================
  Files         125      125           
  Lines        6863     6864    +1     
=======================================
+ Hits         6835     6836    +1     
  Misses         28       28           

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

AshesITR
AshesITR previously approved these changes Mar 3, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the NEWS.md documentation to reflect the enforced use of R’s native pipe (|>) by default, aligning with the updated Tidyverse Style Guide. Key changes include:

  • Updated description for pipe_consistency_linter() to indicate the new default.
  • Addition of a new section for changes to default linters.
Files not reviewed (8)
  • R/pipe_consistency_linter.R: Language not supported
  • R/zzz.R: Language not supported
  • inst/lintr/linters.csv: Language not supported
  • man/default_linters.Rd: Language not supported
  • man/linters.Rd: Language not supported
  • man/pipe_consistency_linter.Rd: Language not supported
  • tests/testthat/default_linter_testcode.R: Language not supported
  • tests/testthat/test-pipe_consistency_linter.R: Language not supported

@IndrajeetPatil
Copy link
Collaborator

.R: Language not supported

LOL

@MichaelChirico
Copy link
Collaborator Author

bad bot copilot 😂

@IndrajeetPatil IndrajeetPatil requested a review from AshesITR April 23, 2025 14:16
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.

Update the pipe_consistency_linter() default to be '|>'?
3 participants