Skip to content
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

Capture parser warnings as lints #2792

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Capture parser warnings as lints #2792

wants to merge 8 commits into from

Conversation

MichaelChirico
Copy link
Collaborator

Closes #2065

Copy link

codecov bot commented Feb 25, 2025

Codecov Report

Attention: Patch coverage is 98.64865% with 1 line in your changes missing coverage. Please review.

Project coverage is 99.57%. Comparing base (3a1e48b) to head (4460ef2).

Files with missing lines Patch % Lines
R/lint.R 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2792      +/-   ##
==========================================
- Coverage   99.59%   99.57%   -0.02%     
==========================================
  Files         125      125              
  Lines        6835     6872      +37     
==========================================
+ Hits         6807     6843      +36     
- Misses         28       29       +1     

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

srcfile = source_expression,
keep.source = TRUE
env <- parent.frame() # nolint: object_usage_linter. Used below.
parsed_content <- withCallingHandlers(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason to nest the handlers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's no other way? withCallingHandlers() doesn't work with error conditions AFAIK...

https://github.com/search?q=lang%3AR+%2FwithCallingHandlers%5C%28%2F+%2Ferror%5Cs*%3D%2F+-%22tryCatch%22&type=code

(maybe I'm misreading)

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.

Convert parser warnings to lints?
2 participants