Check that no semicolons terminate expressions.
semicolon_linter(allow_compound = FALSE, allow_trailing = FALSE) semicolon_terminator_linter(semicolon = c("compound", "trailing"))
TRUE, "compound" semicolons (e.g. as in
x; y, i.e., on the same line of code) are allowed.
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.
linters for a complete list of linters available in lintr.