lintr
lintr copied to clipboard
Lint if (FALSE) / while (FALSE) snippets through commented_code_linter?
Such code is effectively commented code, right?
Seems like a better fit for unreachable_code_linter() to me. But yes, should be linted.
Yeah, I agree that this will be more suitable for inclusion in unreachable_code_linter().
if (FALSE) or while (FALSE) is a valid use in Roxygen comments for examples that shouldn't be run during CRAN checks. But this shouldn't be an issue since (IINM) we don't lint Roxygen comments anyway.
if (FALSE) or while (FALSE) is a valid use in Roxygen comments
Disagree btw -- that's what \dontrun{} is for :)