Skip to content

Commit

Permalink
Make the linter happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPietzschmann committed Nov 21, 2024
1 parent 95ce913 commit 31fb0ae
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/testthat/test-coverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,17 @@ test_that("We can find all assertions", {
assert_that(1+1 == 2)
")

for (p in list(list("testthat", 4), list("unitizer", 1), list("rlang", 2), list("xpectr", 2), list("testit", 1), list("runit", 2), list("r", 2), list("assertthat", 1))) {
pkgs_and_number_of_assertions <- list(

Check warning on line 281 in tests/testthat/test-coverage.R

View workflow job for this annotation

GitHub Actions / Lint package

file=tests/testthat/test-coverage.R,line=281,col=3,[object_length_linter] Variable and function names should not be longer than 25 characters.
list("testthat", 4),
list("unitizer", 1),
list("rlang", 2),
list("xpectr", 2),
list("testit", 1),
list("runit", 2),
list("r", 2),
list("assertthat", 1)
)
for (p in pkgs_and_number_of_assertions) {
pkg <- p[[1]]
expected_assertions <- p[[2]]

Expand Down

0 comments on commit 31fb0ae

Please sign in to comment.