New 🌊 wave for @helm

Commit 6ed7ccb7

6ed7ccb73812Merged

Svyatoslav Dumchenko <[email protected]> · 4 years ago · 5 files · ~5 modified

Description

Merge pull request #238 from helmwave/cyclop

Reduce cyclomatic and cognitive complexity

Details

Commit
6ed7ccb73812
Parent
3b11d57ec00f
Merge parent
958fbdced618

.golangci.ymlmodifiedView file

@@ -30,7 +30,7 @@
3030
3131 cyclop:
3232 # the maximal code complexity to report
33- max-complexity: 20
33+ max-complexity: 13
3434 # the maximal average package complexity. If it's higher than 0.0 (float) the check is enabled (default 0.0)
3535 package-average: 0.0
3636 # should ignore tests (default false)
@@ -97,7 +97,7 @@
9797
9898 gocognit:
9999 # minimal code complexity to report, 30 by default (but we recommend 10-20)
100- min-complexity: 20
100+ min-complexity: 15
101101
102102 nestif:
103103 # minimal complexity of if statements to report, 5 by default