admin管理员组

文章数量:1561848

1.问题
Cognitive Complexity of methods should not be too high

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

2.解决方法

(1)降低方法内if else, Switch等条件判断复杂度

3.参考:
(1) 记录我在程序中遇到的“坏味道”
http://blog.leanote/post/yuanquan.ni@qq/记录我在程序中遇到的坏味道

(2)圈复杂度
https://blog.csdn/lg707415323/article/details/7790660

本文标签: MethodsComplexityCognitiveHighReduce