Skip to content

Catch extraneous ... arguments to lint()/lint_dir() early - #2147

Merged
MichaelChirico merged 12 commits into
mainfrom
chkdots
Sep 13, 2023
Merged

MichaelChirico merged 12 commits into
mainfrom
chkdots

Conversation

@MichaelChirico

Copy link
Copy Markdown
Collaborator

Closes #2134 .

This convinced me more about vectorizing lint() for #2135 and handling more argument checking directly there -- that would avoid the need to duplicate calls check_dots() (in this PR, it's called once in lint_dir() and then many times, once for each input file).

NB: diffbased against #2146

Base automatically changed from mv-lint to main September 12, 2023 17:19
@codecov-commenter

codecov-commenter commented Sep 12, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #2147 (0f0e005) into main (6e52b41) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 0f0e005 differs from pull request most recent head 79bd642. Consider uploading reports for the commit 79bd642 to get more accurate results

@@           Coverage Diff           @@
##             main    #2147   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files         112      112           
  Lines        5110     5120   +10     
=======================================
+ Hits         5092     5102   +10     
  Misses         18       18           
Files Changed Coverage Δ
R/lint.R 98.89% <100.00%> (+<0.01%) ⬆️
R/utils.R 99.12% <100.00%> (+0.06%) ⬆️

@MichaelChirico
MichaelChirico merged commit 50967c8 into main Sep 13, 2023
@MichaelChirico
MichaelChirico deleted the chkdots branch September 13, 2023 20:48
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.

Improve error message for misspelled arguments?

3 participants