Skip to content

Lint paste(deparse(x), collapse) in favor of deparse1()#3041

Open
emmanuel-ferdman wants to merge 3 commits intomainfrom
deparse1-linter
Open

Lint paste(deparse(x), collapse) in favor of deparse1()#3041
emmanuel-ferdman wants to merge 3 commits intomainfrom
deparse1-linter

Conversation

@emmanuel-ferdman
Copy link
Copy Markdown
Collaborator

PR Summary

This PR adds deparse1_linter(), which flags paste(deparse(x), collapse = ...) and recommends deparse1(x) instead.

Fixes #2615
Ref #3037

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.23%. Comparing base (8cea9a1) to head (f583f4b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3041   +/-   ##
=======================================
  Coverage   99.23%   99.23%           
=======================================
  Files         128      128           
  Lines        7317     7317           
=======================================
  Hits         7261     7261           
  Misses         56       56           

☔ 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.

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.

Lint deparse(substitute(x)) for deparse1(substitute(x))

1 participant