Skip to content

Commit

Permalink
[ci] [R-package] Add any_is_na_linter (#5306)
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCorrelation authored Jun 20, 2022
1 parent 560c884 commit 64f4a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ci/lint_r_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ interactive_text <- paste0(

LINTERS_TO_USE <- list(
"absolute_path" = lintr::absolute_path_linter()
, "any_is_na_linter" = lintr::any_is_na_linter()
, "assignment" = lintr::assignment_linter()
, "braces" = lintr::brace_linter()
, "commas" = lintr::commas_linter()
Expand Down
2 changes: 1 addition & 1 deletion R-package/tests/testthat/test_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ test_that(".METRICS_HIGHER_BETTER() should be well formed", {
# no metrics should be repeated
expect_true(length(unique(metric_names)) == length(metrics))
# should not be any NAs
expect_false(any(is.na(metrics)))
expect_false(anyNA(metrics))
})

0 comments on commit 64f4a9f

Please sign in to comment.