Skip to content

Add separate functions for wis components #352

Add separate functions for wis components

Add separate functions for wis components #352

Triggered via pull request November 9, 2023 14:46
Status Failure
Total duration 12m 48s
Artifacts

lint.yaml

on: pull_request
lint-changed-files
12m 39s
lint-changed-files
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
lint-changed-files
Process completed with exit code 31.
lint-changed-files: R/metrics-quantile.R#L111
file=R/metrics-quantile.R,line=111,col=9,[indentation_linter] Indentation should be 6 spaces but is 9 spaces.
lint-changed-files: R/metrics-quantile.R#L119
file=R/metrics-quantile.R,line=119,col=7,[if_not_else_linter] In a simple if/else statement, prefer `if (A) x else y` to the less-readable `if (!A) y else x`.
lint-changed-files: R/metrics-quantile.R#L128
file=R/metrics-quantile.R,line=128,col=10,[unnecessary_concatenation_linter] Unneeded concatenation of a constant. Remove the "c" call.
lint-changed-files: R/metrics-quantile.R#L207
file=R/metrics-quantile.R,line=207,col=6,[indentation_linter] Hanging indent should be 12 spaces but is 6 spaces.
lint-changed-files: R/metrics-quantile.R#L214
file=R/metrics-quantile.R,line=214,col=29,[redundant_ifelse_linter] Just use the logical condition (or its negation) directly instead of calling ifelse(x, TRUE, FALSE)
lint-changed-files: R/metrics-quantile.R#L290
file=R/metrics-quantile.R,line=290,col=58,[commas_linter] Commas should always have a space after.
lint-changed-files: R/metrics-quantile.R#L315
file=R/metrics-quantile.R,line=315,col=5,[spaces_left_parentheses_linter] Place a space before left parenthesis, except in a function call.
lint-changed-files: R/metrics-quantile.R#L316
file=R/metrics-quantile.R,line=316,col=9,[if_not_else_linter] In a simple if/else statement, prefer `if (A) x else y` to the less-readable `if (!A) y else x`.
lint-changed-files: R/metrics-quantile.R#L477
file=R/metrics-quantile.R,line=477,col=9,[indentation_linter] Indentation should be 6 spaces but is 9 spaces.
lint-changed-files: R/metrics-quantile.R#L525
file=R/metrics-quantile.R,line=525,col=40,[unnecessary_lambda_linter] Pass matrix directly as a symbol to lapply() instead of wrapping it in an unnecessary anonymous function. For example, prefer lapply(DF, sum) to lapply(DF, function(x) sum(x)).