Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
64f4a9fd
Unverified
Commit
64f4a9fd
authored
Jun 20, 2022
by
CuriousCorrelation
Committed by
GitHub
Jun 19, 2022
Browse files
[ci] [R-package] Add any_is_na_linter (#5306)
parent
560c884d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.ci/lint_r_code.R
.ci/lint_r_code.R
+1
-0
R-package/tests/testthat/test_metrics.R
R-package/tests/testthat/test_metrics.R
+1
-1
No files found.
.ci/lint_r_code.R
View file @
64f4a9fd
...
...
@@ -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
()
...
...
R-package/tests/testthat/test_metrics.R
View file @
64f4a9fd
...
...
@@ -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
(
any
NA
(
metrics
))
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment