From a186a410d690f8b19cf62f49b57855427cbdfb91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B3r=20Mil=C3=A1n?= <71042542+bormilan@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:10:35 +0200 Subject: [PATCH 1/2] Update doc_rules/elvis_style/max_function_clause_length.md Co-authored-by: Paulo F. Oliveira --- doc_rules/elvis_style/max_function_clause_length.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_rules/elvis_style/max_function_clause_length.md b/doc_rules/elvis_style/max_function_clause_length.md index 7be725b..501d15d 100644 --- a/doc_rules/elvis_style/max_function_clause_length.md +++ b/doc_rules/elvis_style/max_function_clause_length.md @@ -8,8 +8,8 @@ the files are pre-processed) ## Options -- `max_length :: non_neg_integer()`. - - default: `30`. +- `max_length :: non_neg_integer()` + - default: `30` - `count_comments :: boolean()` - default: `false` - `count_whitespace :: boolean()` From 8a1d51ab4d1a4fa74ade3f28790ca88f1e74e3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B3r=20Mil=C3=A1n?= <71042542+bormilan@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:10:53 +0200 Subject: [PATCH 2/2] Update src/elvis_style.erl Co-authored-by: Paulo F. Oliveira --- src/elvis_style.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elvis_style.erl b/src/elvis_style.erl index 16bb730..2fafbdd 100644 --- a/src/elvis_style.erl +++ b/src/elvis_style.erl @@ -97,7 +97,7 @@ "The code for function ~p/~w has ~p lines which exceeds the " "maximum of ~p."). -define(MAX_FUNCTION_CLAUSE_LENGTH, - "The code for the ~ts clause of function ~p/~w has ~p lines which exceeds the " + "The code for the ~ts clause of function ~p/~w has ~p lines which exceeds the " "maximum of ~p."). -define(NO_CALL_MSG, "The call to ~p:~p/~p on line ~p is in the no_call list."). -define(NO_DEBUG_CALL_MSG, "Remove the debug call to ~p:~p/~p on line ~p.").