Skip to content

New linter for complex conditional expressions #6751

New linter for complex conditional expressions

New linter for complex conditional expressions #6751

Triggered via pull request November 1, 2024 07:53
Status Failure
Total duration 3m 16s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 9 warnings
lint
Process completed with exit code 31.
lint
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.