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

Merged
merged 17 commits into from
May 8, 2025
Merged

Enforce the native pipe by default #2796

merged 17 commits into from
May 8, 2025

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.64%. Comparing base (d468c76) to head (c37ed32).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2796   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files         127      127           
  Lines        6988     6989    +1     
=======================================
+ Hits         6963     6964    +1     
  Misses         25       25           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

MichaelChirico and others added 4 commits February 27, 2025 08:47
Co-authored-by: AshesITR <alexander.rosenstock@web.de>
Co-authored-by: AshesITR <alexander.rosenstock@web.de>
MichaelChirico and others added 4 commits March 3, 2025 11:09
Co-authored-by: AshesITR <alexander.rosenstock@web.de>
Co-authored-by: AshesITR <alexander.rosenstock@web.de>
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
@MichaelChirico

This comment was marked as outdated.

@MichaelChirico
Copy link
Collaborator Author

Again, this was reviewed, staled only by merge conflicts. Merging.

@MichaelChirico MichaelChirico merged commit 0a47a3f into main May 8, 2025
20 checks passed
@MichaelChirico MichaelChirico deleted the default-pipe branch May 8, 2025 05:54
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