phpinspectionsea
phpinspectionsea copied to clipboard
[Feature Request] Cognitive Complexity
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/.
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!
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.
Re-opening