Skip to content

Comments

Replace all expect_lint(..., NULL, ...) by expect_no_lint(..., ...)#3009

Merged
MichaelChirico merged 7 commits intor-lib:mainfrom
etiennebacher:use-expect-no-lint-2
Jan 20, 2026
Merged

Replace all expect_lint(..., NULL, ...) by expect_no_lint(..., ...)#3009
MichaelChirico merged 7 commits intor-lib:mainfrom
etiennebacher:use-expect-no-lint-2

Conversation

@etiennebacher
Copy link
Contributor

@etiennebacher etiennebacher commented Jan 20, 2026

Closes #2737.

Follow-up of #2951.

@MichaelChirico I just found it easier to make a new PR rather than fixing all conflicts. I followed the same steps as detailed in #2951, including running styler at the end.

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.23%. Comparing base (f478a00) to head (bbdeb4e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3009   +/-   ##
=======================================
  Coverage   99.23%   99.23%           
=======================================
  Files         128      128           
  Lines        7287     7287           
=======================================
  Hits         7231     7231           
  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.

@etiennebacher etiennebacher marked this pull request as ready for review January 20, 2026 19:06

expect_lint(
"list(
expect_no_lint("list(
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's use trim_some here too

NULL,
linter_list
)
expect_no_lint("(function(x, y) x + y)(x = 1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

@@ -1,5 +1,5 @@
test_that("default styles are linted correctly", {
linters <- list(
linters <- list(
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice 😎

linter <- pipe_continuation_linter()
.cases <- tibble::tribble(
~code_string, ~.test_name,
~code_string, ~.test_name,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't see this well but my memory is this whitespace was for clarity, I would revert. wdyt?

Copy link
Collaborator

@MichaelChirico MichaelChirico left a comment

Choose a reason for hiding this comment

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

Went through everything, just those two more nits about whitespace style.

Thanks!

@etiennebacher
Copy link
Contributor Author

Thanks, should be good to go now (hopefully I didn't forget a trailing whitespace ^^)

@MichaelChirico MichaelChirico merged commit 2e1b041 into r-lib:main Jan 20, 2026
21 checks passed
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.

Clean-up: use expect_no_lint() where appropriate

2 participants