T_and_F_symbol_linter {lintr}R Documentation

linters

Description

Available linters

Usage

T_and_F_symbol_linter(source_file)

assignment_linter(source_file)

closed_curly_linter(allow_single_line = FALSE)

commas_linter(source_file)

commented_code_linter(source_file)

todo_comment_linter(todo = c("todo", "fixme"))

cyclocomp_linter(complexity_limit = 25)

object_name_linter(styles = "snake_case")

object_length_linter(length = 30L)

camel_case_linter(source_file)

equals_na_linter(source_file)

extraction_operator_linter(source_file)

function_left_parentheses_linter(source_file)

implicit_integer_linter(source_file)

infix_spaces_linter(source_file)

line_length_linter(length)

no_tab_linter(source_file)

object_usage_linter(source_file)

open_curly_linter(allow_single_line = FALSE)

paren_brace_linter(source_file)

absolute_path_linter(lax = TRUE)

nonportable_path_linter(lax = TRUE)

pipe_continuation_linter(source_file)

semicolon_terminator_linter(semicolon = c("compound", "trailing"))

seq_linter(source_file)

single_quotes_linter(source_file)

spaces_inside_linter(source_file)

spaces_left_parentheses_linter(source_file)

trailing_blank_lines_linter(source_file)

trailing_whitespace_linter(source_file)

undesirable_function_linter(fun = default_undesirable_functions)

undesirable_operator_linter(op = default_undesirable_operators)

unneeded_concatenation_linter(source_file)

Arguments

source_file

returned by get_source_expressions

allow_single_line

if true allow a open and closed curly pair on the same line.

todo

Vector of strings that identify TODO comments.

complexity_limit

expressions with a cyclomatic complexity higher than this are linted, defaults to 25. See cyclocomp.

styles

A subset of ‘CamelCase’, ‘camelCase’, ‘snake_case’, ‘dotted.case’, ‘lowercase’, ‘UPPERCASE’. A name should match at least one of these styles.

length

the length cutoff to use for the given linter.

lax

Less stringent linting, leading to fewer false positives.

semicolon

A character vector defining which semicolons to report:

compound

Semicolons that separate two statements on the same line.

trailing

Semicolons following the last statement on the line.

fun

Named character vector, where the names are the names of the undesirable functions, and the values are the text for the alternative function to use (or NA).

op

Named character vector, where the names are the names of the undesirable operators, and the values are the text for the alternative operator to use (or NA).

Functions


[Package lintr version 2.0.1 Index]