We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaf3aae commit 975c916Copy full SHA for 975c916
R/cyclocomp_linter.R
@@ -45,8 +45,9 @@ cyclocomp_linter <- function(complexity_limit = 15L) {
45
column_number = source_expression[["column"]][1L],
46
type = "style",
47
message = sprintf(
48
- "Reduce the cyclomatic complexity of this expression from %d to at most %d.",
49
- complexity, complexity_limit
+ "Reduce the cyclomatic complexity of this expression from %d to at most %d. %s",
+ complexity, complexity_limit,
50
+ "Consider replacing high-complexity sections like loops and branches with helper functions."
51
),
52
ranges = list(rep(col1, 2L)),
53
line = source_expression$lines[1L]
0 commit comments