Check that no semicolons terminate expressions.
semicolon_linter(allow_compound = FALSE, allow_trailing = FALSE)semicolon_terminator_linter(semicolon = c("compound", "trailing"))
Logical, default FALSE
. If TRUE
, "compound"
semicolons (e.g. as in x; y
, i.e., on the same line of code) are allowed.
Logical, default FALSE
. If TRUE
, "trailing"
semicolons (i.e., those that terminate lines of code) are allowed.
A character vector defining which semicolons to report:
Semicolons that separate two statements on the same line.
Semicolons following the last statement on the line.
configurable, default, readability, style
linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#semicolons