-
Notifications
You must be signed in to change notification settings - Fork 2
/
.lintr
36 lines (36 loc) · 1.23 KB
/
.lintr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
linters: linters_with_defaults(
fixed_regex_linter(),
function_argument_linter(),
implicit_integer_linter(allow_colon = TRUE),
infix_spaces_linter(exclude_operators = c("=", "*", "/")),
# TODO(michaelchirico): Enable once quotes used for parallelism are supported
# keyword_quote_linter(),
line_length_linter(120L),
string_boundary_linter(),
undesirable_function_linter(c(
sapply = NA
)),
# TODO(michaelchirico): Enable after #2245
# unnecessary_nested_if_linter(),
assignment_linter = NULL,
# TODO(michaelchirico): reactivate this and spaces_inside_linter()
# once they support 'empty' i argument DT[ , j]
commas_linter = NULL,
commented_code_linter = NULL,
cyclocomp_linter = NULL,
# TODO(michaelchirico): reactivate this. far too many
# false positives for now.
indentation_linter = NULL,
object_name_linter = NULL,
quotes_linter = NULL, # TODO(michaelchirico): switch to "'",
spaces_inside_linter = NULL
)
exclusions: list(
"inst/pkg",
"tests/testthat" = list(object_usage_linter = Inf),
"tests/testthat/test_packages",
"vignettes" = list(
implicit_integer_linter = Inf,
undesirable_function_linter = Inf
)
)