phpinspectionsea icon indicating copy to clipboard operation
phpinspectionsea copied to clipboard

[Feature Request] Cognitive Complexity

Open azdanov opened this issue 6 years ago • 3 comments

I've looked in already implemented inspections, but couldn't find anything similar.

[...] the cognitive complexity is how difficult is to understand a function and all its possible paths.

Instead of trying to explain the inspection, here is a good article: https://www.tomasvotruba.cz/blog/2018/05/21/is-your-code-readable-by-humans-cognitive-complexity-tells-you/.

azdanov avatar Sep 22 '18 15:09 azdanov

Let me evaluate in our projects, to get a feeling how does it fit daily development and existing toolchain (phpmd, infection and Php Inspections (EA Extended) of course). Examples look good so far, thank you for sharing!

kalessil avatar Sep 23 '18 05:09 kalessil

Bebo beep, the StaleBot is here. For one year nothing have happened here. It would be great if someone looked into details here within next 21 days when I'll close it.

stale[bot] avatar Sep 24 '19 11:09 stale[bot]

Re-opening

kalessil avatar Nov 25 '19 10:11 kalessil