Source

Branch

1/ @gavanw

@SebAaltonen

There is a useful term for what you describe as “entanglement” that I learned recently - it is called “cyclomatic complexity” - https://en.m.wikipedia.org/wiki/Cyclomatic_complexity

2/ @HostOfMeta

@gavanw @SebAaltonen

I see a lot of linters with such a metric, but few developers actually understanding it. They see a warning about a function too complex, and turn it into a tree of nested function calls. The complexity isn’t gone (its worse) but now all functions tick green.