Unverified Commit 89a47046 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] [R-package] add new linters from {lintr} 3.1.1 (#6471)

parent c07694ba
...@@ -52,6 +52,8 @@ LINTERS_TO_USE <- list( ...@@ -52,6 +52,8 @@ LINTERS_TO_USE <- list(
, "inner_combine" = lintr::inner_combine_linter() , "inner_combine" = lintr::inner_combine_linter()
, "is_numeric" = lintr::is_numeric_linter() , "is_numeric" = lintr::is_numeric_linter()
, "lengths" = lintr::lengths_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) , "line_length" = lintr::line_length_linter(length = 120L)
, "literal_coercion" = lintr::literal_coercion_linter() , "literal_coercion" = lintr::literal_coercion_linter()
, "matrix" = lintr::matrix_apply_linter() , "matrix" = lintr::matrix_apply_linter()
...@@ -66,6 +68,7 @@ LINTERS_TO_USE <- list( ...@@ -66,6 +68,7 @@ LINTERS_TO_USE <- list(
, "redundant_equals" = lintr::redundant_equals_linter() , "redundant_equals" = lintr::redundant_equals_linter()
, "regex_subset" = lintr::regex_subset_linter() , "regex_subset" = lintr::regex_subset_linter()
, "routine_registration" = lintr::routine_registration_linter() , "routine_registration" = lintr::routine_registration_linter()
, "scalar_in" = lintr::scalar_in_linter()
, "semicolon" = lintr::semicolon_linter() , "semicolon" = lintr::semicolon_linter()
, "seq" = lintr::seq_linter() , "seq" = lintr::seq_linter()
, "spaces_inside" = lintr::spaces_inside_linter() , "spaces_inside" = lintr::spaces_inside_linter()
......
...@@ -86,7 +86,7 @@ if [[ $TASK == "lint" ]]; then ...@@ -86,7 +86,7 @@ if [[ $TASK == "lint" ]]; then
'mypy>=1.8.0' \ 'mypy>=1.8.0' \
'pre-commit>=3.6.0' \ 'pre-commit>=3.6.0' \
'pyarrow>=6.0' \ 'pyarrow>=6.0' \
'r-lintr>=3.1' 'r-lintr>=3.1.2'
source activate $CONDA_ENV source activate $CONDA_ENV
echo "Linting Python code" echo "Linting Python code"
bash ${BUILD_DIRECTORY}/.ci/lint-python.sh || exit 1 bash ${BUILD_DIRECTORY}/.ci/lint-python.sh || exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment