Skip to content

Commit 0c4c381

Browse files
committed
chore: update .lintr with undesirable function linter
1 parent 1e767f7 commit 0c4c381

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.lintr

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,11 @@ linters: linters_with_defaults(
66
cyclocomp_linter = NULL, # do not check function complexity
77
commented_code_linter = NULL, # allow code in comments
88
line_length_linter = line_length_linter(120L),
9-
object_length_linter = object_length_linter(40L)
10-
)
9+
object_length_linter = object_length_linter(40L),
10+
undesirable_function_linter = undesirable_function_linter(fun = c(
11+
# base messaging
12+
"stop" = "use stopf()",
13+
"warning" = "use warningf()",
14+
"message" = "use messagef()"
15+
))
16+
)

0 commit comments

Comments
 (0)