SonarLint扫描提示:Cognitive complexity of methods should not be too high.
Cognitive complexity is a mersure of how hard the control flow of a method is to understand.methods with high cognitive complexity will be difficulity to maintain.
方法的认知复杂性不应过高。认知复杂性反映了一种方法的控制流程有多难理解。认知复杂性高的方法将很难维持。