Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodingStandard] Add CognitiviteComplexitySniff #37

Open
larsroettig opened this issue May 23, 2018 · 2 comments
Open

[CodingStandard] Add CognitiviteComplexitySniff #37

larsroettig opened this issue May 23, 2018 · 2 comments
Labels
accepted This rule is accepted by extdn

Comments

@larsroettig
Copy link
Contributor

larsroettig commented May 23, 2018

See:
https://www.tomasvotruba.cz/blog/2018/05/21/is-your-code-readable-by-humans-cognitive-complexity-tells-you/#3-steps-to-check-cognitive-complexity-of-your-code
https://blog.sonarsource.com/cognitive-complexity-because-testability-understandability
https://sonarsource.com/docs/CognitiveComplexity.pdf

Already implemented we can migrate to our repository:
deprecated-packages/symplify#823

@schmengler schmengler added the accepted This rule is accepted by extdn label May 28, 2018
@schmengler
Copy link
Collaborator

Nice metric. We'll need to figure out a sensitive treshold. @larsroettig Did you use it anywhere yet?

@larsroettig
Copy link
Contributor Author

Hi first read only the whitepaper von Sonarsource over cognitive complexity but this topic is new, and I have not practical use cases. But for me, I think it can be helpful to have a basic test in our rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This rule is accepted by extdn
Projects
None yet
Development

No branches or pull requests

2 participants