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
89a47046
Unverified
Commit
89a47046
authored
Jun 02, 2024
by
James Lamb
Committed by
GitHub
Jun 02, 2024
Browse files
[ci] [R-package] add new linters from {lintr} 3.1.1 (#6471)
parent
c07694ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
.ci/lint_r_code.R
.ci/lint_r_code.R
+3
-0
.ci/test.sh
.ci/test.sh
+1
-1
No files found.
.ci/lint_r_code.R
View file @
89a47046
...
...
@@ -52,6 +52,8 @@ LINTERS_TO_USE <- list(
,
"inner_combine"
=
lintr
::
inner_combine_linter
()
,
"is_numeric"
=
lintr
::
is_numeric_linter
()
,
"lengths"
=
lintr
::
lengths_linter
()
,
"length_levels"
=
lintr
::
length_levels_linter
()
,
"length_test"
=
lintr
::
length_test_linter
()
,
"line_length"
=
lintr
::
line_length_linter
(
length
=
120L
)
,
"literal_coercion"
=
lintr
::
literal_coercion_linter
()
,
"matrix"
=
lintr
::
matrix_apply_linter
()
...
...
@@ -66,6 +68,7 @@ LINTERS_TO_USE <- list(
,
"redundant_equals"
=
lintr
::
redundant_equals_linter
()
,
"regex_subset"
=
lintr
::
regex_subset_linter
()
,
"routine_registration"
=
lintr
::
routine_registration_linter
()
,
"scalar_in"
=
lintr
::
scalar_in_linter
()
,
"semicolon"
=
lintr
::
semicolon_linter
()
,
"seq"
=
lintr
::
seq_linter
()
,
"spaces_inside"
=
lintr
::
spaces_inside_linter
()
...
...
.ci/test.sh
View file @
89a47046
...
...
@@ -86,7 +86,7 @@ if [[ $TASK == "lint" ]]; then
'mypy>=1.8.0'
\
'pre-commit>=3.6.0'
\
'pyarrow>=6.0'
\
'r-lintr>=3.1'
'r-lintr>=3.1
.2
'
source
activate
$CONDA_ENV
echo
"Linting Python code"
bash
${
BUILD_DIRECTORY
}
/.ci/lint-python.sh
||
exit
1
...
...
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