Skip to content

Commit 81a38fc

Browse files
Set maximum source LoC per method to 200
1 parent 574f1bc commit 81a38fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/analysis_options.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ dart_code_metrics:
2222
cyclomatic-complexity: 10
2323
number-of-arguments: 4
2424
number-of-parameters: 4
25-
# source-lines-of-code: 50
25+
# Reference: Code Complete: Chapter 7 High-Quality Routines -> 7.4 How Long Can a Routine Be?
26+
# https://dl.acm.org/doi/book/10.5555/1096143
27+
source-lines-of-code: 200
2628
# lines-of-code: 50
2729
rules:
2830
- avoid-late-keyword
@@ -203,4 +205,4 @@ linter:
203205
- use_string_buffers
204206
- use_test_throws_matchers
205207
- valid_regexps
206-
- void_checks
208+
- void_checks

0 commit comments

Comments
 (0)