-
Notifications
You must be signed in to change notification settings - Fork 187
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
Test to check that all linters are covered by tags #2660
Conversation
tests/testthat/test-linter_tags.R
Outdated
|
||
test_that("all non-deprecated linters are covered across tags", { | ||
tags <- setdiff(available_tags(), "deprecated") | ||
tagged_linters <- lapply(tags, function(tag) names(linters_with_tags(tag))) # nolint: undesirable_function_linter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output length is going to be different across tags, so not sure how to use vapply()
instead of lapply()
.
This test could work by just looking at the |
That's much cleaner! Thanks. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2660 +/- ##
==========================================
- Coverage 97.96% 97.95% -0.02%
==========================================
Files 126 126
Lines 5760 5766 +6
==========================================
+ Hits 5643 5648 +5
- Misses 117 118 +1 ☔ View full report in Codecov by Sentry. |
No description provided.