fix lints with flint #317
lint-changed-files.yaml
on: pull_request
lint-changed-files
/
lint-changed-files
2m 10s
Annotations
1 error and 11 warnings
lint-changed-files / lint-changed-files
Process completed with exit code 31.
|
lint-changed-files / lint-changed-files
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L86
file=R/cite_easystats.R,line=86,col=13,[nzchar_linter] Use nzchar(x) instead of x != "". Note that unlike nzchar(), NE coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L90
file=R/cite_easystats.R,line=90,col=13,[nzchar_linter] Use nzchar(x) instead of x != "". Note that unlike nzchar(), NE coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L98
file=R/cite_easystats.R,line=98,col=13,[nzchar_linter] Use nzchar(x) instead of x != "". Note that unlike nzchar(), NE coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L188
file=R/cite_easystats.R,line=188,col=18,[nzchar_linter] Use !nzchar(x) instead of x == "". Note that unlike nzchar(), EQ coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L348
file=R/cite_easystats.R,line=348,col=58,[nzchar_linter] Use !nzchar(x) instead of x == "". Note that unlike nzchar(), EQ coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L365
file=R/cite_easystats.R,line=365,col=48,[nzchar_linter] Use !nzchar(x) instead of x == "". Note that unlike nzchar(), EQ coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L396
file=R/cite_easystats.R,line=396,col=3,[if_switch_linter] Prefer switch() statements over repeated if/else equality tests, e.g., switch(x, a = 1, b = 2) over if (x == "a") 1 else if (x == "b") 2.
|
lint-changed-files / lint-changed-files:
R/cite_easystats.R#L439
file=R/cite_easystats.R,line=439,col=5,[nzchar_linter] Use nzchar(x) instead of x != "". Note that unlike nzchar(), NE coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-changed-files / lint-changed-files:
R/report_effectsize.R#L93
file=R/report_effectsize.R,line=93,col=5,[object_overwrite_linter] 'text' is an exported object from package 'graphics'. Avoid re-using such symbols.
|
lint-changed-files / lint-changed-files:
R/report_effectsize.R#L95
file=R/report_effectsize.R,line=95,col=5,[unnecessary_nesting_linter] Simplify this condition by using 'else if' instead of 'else { if.
|