Skip to content

add lint for missing packages in object_usage_linter #2877

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

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

Conversation

AshesITR
Copy link
Collaborator

Fixes #2872

@AshesITR AshesITR requested a review from MichaelChirico July 13, 2025 11:43
Copy link

codecov bot commented Jul 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.26%. Comparing base (afb363c) to head (ad0b675).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2877   +/-   ##
=======================================
  Coverage   99.26%   99.26%           
=======================================
  Files         127      127           
  Lines        7092     7108   +16     
=======================================
+ Hits         7040     7056   +16     
  Misses         52       52           

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

lint_node <- xml2::xml_parent(import_exprs[[i]])
# nolint start: undesirable_function_name. .libPaths() is neccessary here.
lint_msg <- paste0("Could not find exported symbols for package \"", pkg, "\" in library ",
toString(shQuote(.libPaths())), ". This may lead to false positives.")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The usual message will be "there is no package called ‘blah’".
Showing .libPaths() to help show where the package should be.

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.

object_usage_linter should warn about missing packages
1 participant