Repository navigation
Expand file tree
/
Copy path.lintr
More file actions
38 lines (38 loc) · 1.44 KB
/
Copy path.lintr
File metadata and controls
38 lines (38 loc) · 1.44 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
35
36
37
38
linters: linters_with_tags(
tags = NULL, # include all linters
implicit_integer_linter = NULL,
undesirable_function_linter = NULL,
function_argument_linter = NULL,
object_name_linter = NULL,
line_length_linter(120),
cyclocomp_linter(20L),
return_linter = NULL,
object_overwrite_linter = NULL,
# Exclusions for project-specific patterns
expect_identical_linter = NULL, # project uses expect_equal() for flexibility
commented_code_linter = NULL, # test comments serve as documentation
implicit_assignment_linter = NULL, # false positives with data.table :=
strings_as_factors_linter = NULL, # R 4.0+ defaults to stringsAsFactors = FALSE
one_call_pipe_linter = NULL, # stylistic preference
unnecessary_concatenation_linter = NULL, # intentional patterns
library_call_linter = NULL, # intentional patterns in scripts
pipe_consistency_linter = NULL # one_call_pipe_linter exclusion triggers false positives
)
exclude: "# nolint"
exclusions: list(
"inst/create-example-data.R" = list(
missing_package_linter = Inf,
namespace_linter = Inf,
object_usage_linter = Inf,
nonportable_path_linter = Inf,
nested_ifelse_linter = Inf,
missing_argument_linter = Inf,
any_is_na_linter = Inf,
object_length_linter = Inf
),
"inst/manuscript" = list(
missing_package_linter = Inf,
namespace_linter = Inf,
object_usage_linter = Inf
)
)