-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy path.lintr
More file actions
13 lines (12 loc) · 812 Bytes
/
.lintr
File metadata and controls
13 lines (12 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
linters: linters_with_defaults(
# lintr defaults: https://lintr.r-lib.org/reference/default_linters.html
# the following setup changes/removes certain linters
assignment_linter = NULL, # do not force using <- for assignments
object_name_linter = object_name_linter(c("snake_case", "CamelCase", "SNAKE_CASE")), # only allow snake case and camel case object names
cyclocomp_linter = NULL, # do not check function complexity
commented_code_linter = NULL, # allow code in comments
line_length_linter = line_length_linter(120L), # same as .editorconfig
# use indent=2 as in .editorconfig; also use block-aligned continuation with 2 space,
# not “align under first argument” style.
indentation_linter = indentation_linter(indent = 2L, hanging_indent_style = "never")
)