-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.lintr
More file actions
34 lines (34 loc) · 1.37 KB
/
.lintr
File metadata and controls
34 lines (34 loc) · 1.37 KB
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
linters: all_linters(
# TODO(michaelchirico): switch to '='.
# assignment_linter('='),
assignment_linter = NULL,
implicit_assignment_linter(allow_lazy = TRUE, allow_scoped = TRUE),
implicit_integer_linter(allow_colon = TRUE),
infix_spaces_linter(exclude_operators = c("=", "*", "/")),
line_length_linter(120L),
# 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): fix translate_package().
# TODO(michaelchirico): reactivate this. far too many
# false positives for now.
indentation_linter = NULL,
# TODO(michaelchirico): Enable once quotes used for parallelism are supported
keyword_quote_linter = NULL,
nonportable_path_linter = NULL,
object_name_linter = NULL,
quotes_linter = NULL, # TODO(michaelchirico): switch to "'"
spaces_inside_linter = NULL,
todo_comment_linter = NULL # TODO(michaelchirico): [hehe] activate this & assign TODOs bugs
)
exclusions: list(
"inst/pkg",
"tests/testthat.R" = list(undesirable_function_linter = Inf),
"tests/testthat" = list(object_usage_linter = Inf),
"tests/testthat/test_packages",
"vignettes" = list(
implicit_integer_linter = Inf,
undesirable_function_linter = Inf
)
)