기타내용

[소나큐브] Cognitive Complexity of methods should not be too high

k9e4h 2020. 12. 29. 18:23

Cognitive Complexity of methods should not be too high

 

코드 복잡성

 

If, Switch 등의 조건문의 depth와 개수를 정리

 

www.sonarsource.com/docs/CognitiveComplexity.pdf

docs.codeclimate.com/docs/cognitive-complexity

 

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read a

docs.codeclimate.com

 

반응형

'기타내용' 카테고리의 다른 글

전자정부프레임워크  (0) 2021.02.02
method annotated with @bean is called directly. use dependency injection instead  (0) 2021.01.26
HikariCP  (0) 2020.03.17
DNS 8.8.8.8  (0) 2020.02.26
OAuth 2.0  (0) 2020.02.18