File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
lib/src/lints/cyclomatic_complexity/models Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 99- Fixed unexpected avoid_unnecessary_type_assertions
1010- Added ` excludeNames ` param for ` function_lines_of_code ` lint
1111- Improved ` avoid_unrelated_type_assertions ` to support true and false results
12+ - Set default ` cyclomatic_complexity ` to 10 (https://github.com/solid-software/solid_lints/issues/146 )
13+ Credits: Arthur Miranda (https://github.com/arthurbcd )
1214
1315## 0.1.4
1416
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ class CyclomaticComplexityParameters {
33 /// Threshold cyclomatic complexity level, exceeding it triggers a warning.
44 final int maxComplexity;
55
6- static const _defaultMaxComplexity = 2 ;
6+ /// Reference: NIST 500-235 item 2.5
7+ static const _defaultMaxComplexity = 10 ;
78
89 /// Constructor for [CyclomaticComplexityParameters] model
910 const CyclomaticComplexityParameters ({
You can’t perform that action at this time.
0 commit comments