New linter for complex conditional expressions #6751
Annotations
1 error and 9 warnings
Lint
Process completed with exit code 31.
|
Run r-lib/actions/setup-r-dependencies@v2
Input 'save-always' has been deprecated with message: save-always does not work as intended and will be removed in a future release.
A separate `actions/cache/restore` step should be used instead.
See https://github.com/actions/cache/tree/main/save#always-save-cache for more details.
|
Lint:
R/get_source_expressions.R#L89
file=R/get_source_expressions.R,line=89,col=7,[complex_conditional_linter] Complex conditional with more than 2 logical operator(s). Consider extracting into a boolean function or variable for readability and reusability.
|
Lint:
R/lint.R#L367
file=R/lint.R,line=367,col=10,[complex_conditional_linter] Complex conditional with more than 2 logical operator(s). Consider extracting into a boolean function or variable for readability and reusability.
|
Lint:
R/utils.R#L2
file=R/utils.R,line=2,col=7,[complex_conditional_linter] Complex conditional with more than 2 logical operator(s). Consider extracting into a boolean function or variable for readability and reusability.
|
Lint:
tests/testthat/test-complex-conditional-linter.R#L176
file=tests/testthat/test-complex-conditional-linter.R,line=176,col=39,[implicit_integer_linter] Use 2L or 2.0 to avoid implicit integers.
|
Lint:
tests/testthat/test-complex-conditional-linter.R#L176
file=tests/testthat/test-complex-conditional-linter.R,line=176,col=42,[implicit_integer_linter] Use 3L or 3.0 to avoid implicit integers.
|
Lint:
tests/testthat/test-complex-conditional-linter.R#L177
file=tests/testthat/test-complex-conditional-linter.R,line=177,col=45,[implicit_integer_linter] Use 0L or 0.0 to avoid implicit integers.
|
Lint:
tests/testthat/test-complex-conditional-linter.R#L178
file=tests/testthat/test-complex-conditional-linter.R,line=178,col=37,[implicit_integer_linter] Use 0L or 0.0 to avoid implicit integers.
|
Lint:
tests/testthat/test-complex-conditional-linter.R#L179
file=tests/testthat/test-complex-conditional-linter.R,line=179,col=38,[implicit_integer_linter] Use -1L or -1.0 to avoid implicit integers.
|
Loading