Skip to content

Commit

Permalink
Test to check that all linters are covered by tags (#2660)
Browse files Browse the repository at this point in the history
* Test to check that all linters are covered by tags

* simplify test as suggested in review

* rename test
  • Loading branch information
IndrajeetPatil committed Sep 7, 2024
1 parent 927157a commit 6fe75dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-linter_tags.R
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,7 @@ test_that("available_linters gives precedence to included tags", {
available_linters(tags = "deprecated", exclude_tags = NULL)
)
})

test_that("all linters have at least one tag", {
expect_true(all(lengths(available_linters()$tags) > 0L))
})

0 comments on commit 6fe75dc

Please sign in to comment.