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
版权声明:本文标题:Cognitive Complexity of methods should not be too highRefactor this method to reduce its Cognitive 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1727469333a1116034.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论