4 ms·
Cyclomatic Complexity and Why we don't use it (2014)
- networkimprov 8y agoA test for this is part of the popular Go Report Card [1] and presumably other meta-linters. It encourages break-up of otherwise coherent functions, giving an illusion of reduced complexity, but more likely a reduction in code quality. [1]https://goreportcard.com/ https://goreportcard.com/
- spenrose 8y agoSummary: "cyclomatic complexity is a heuristic with degenerate cases, and some tools don't implement it correctly."