Skip to content

Allow to opt out of linting filter() in conjunct_test_linter - #2110

Merged
MichaelChirico merged 6 commits into
r-lib:mainfrom
salim-b:allow-filter
Sep 6, 2023
Merged

MichaelChirico merged 6 commits into
r-lib:mainfrom
salim-b:allow-filter

Conversation

@salim-b

@salim-b salim-b commented Sep 5, 2023

Copy link
Copy Markdown
Contributor

Fixes #2108.

@codecov-commenter

codecov-commenter commented Sep 5, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #2110 (ab3b910) into main (02732a2) will increase coverage by 0.00%.
The diff coverage is 100.00%.

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

@@           Coverage Diff           @@
##             main    #2110   +/-   ##
=======================================
  Coverage   99.65%   99.65%           
=======================================
  Files         118      118           
  Lines        5208     5210    +2     
=======================================
+ Hits         5190     5192    +2     
  Misses         18       18           
Files Changed Coverage Δ
R/conjunct_test_linter.R 100.00% <100.00%> (ø)

Comment thread R/conjunct_test_linter.R Resolved
Comment thread R/conjunct_test_linter.R Resolved
@MichaelChirico

MichaelChirico commented Sep 6, 2023 •

Copy link
Copy Markdown
Collaborator

Thanks!

Please also

  1. add regression tests
  2. extend the NEWS item to mention this option & cite yourself

Comment thread NEWS.md Resolved
Comment thread R/conjunct_test_linter.R Outdated
#' )
#'
#' lint(
#' text = "dplyr::filter(

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.

sorry for the toil -- would you mind putting this into an inline expression? it'll be more consistent with examples from other linters. Typically when examples run to >1 line we write the examples little differently (search for writeLines()), but I don't think it's necessary in this case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Like this? 88734f3

@MichaelChirico
MichaelChirico merged commit 35f3344 into r-lib:main Sep 6, 2023
@salim-b
salim-b deleted the allow-filter branch September 6, 2023 22:06
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.

conjunct_test_linter: Allow to opt out of linting dplyr::filter()

3 participants