Skip to content

Commit

Permalink
[ci] [R-package] add new linters from {lintr} 3.1.1 (microsoft#6471)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jun 3, 2024
1 parent c07694b commit 89a4704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .ci/lint_r_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion .ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89a4704

Please sign in to comment.