Skip to content

Commit 6fe75dc

Browse files
Test to check that all linters are covered by tags (#2660)
* Test to check that all linters are covered by tags * simplify test as suggested in review * rename test
1 parent 927157a commit 6fe75dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/testthat/test-linter_tags.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,7 @@ test_that("available_linters gives precedence to included tags", {
234234
available_linters(tags = "deprecated", exclude_tags = NULL)
235235
)
236236
})
237+
238+
test_that("all linters have at least one tag", {
239+
expect_true(all(lengths(available_linters()$tags) > 0L))
240+
})

0 commit comments

Comments
 (0)