2 ms·
There were attempts to predict bugs by looking at complexity metrics. As I recall, the research found that when you adjusted for code size, none of the metrics
by pfdietz 5y ago
There were attempts to predict bugs by looking at complexity metrics. As I recall, the research found that when you adjusted for code size, none of the metrics mattered. In other words, just use LOCs as your metric.
- kqr 5y agoThis is correct. https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=code+complexity+lines&btnG=#d=gs_qabs&u=%23p%3DYrhiA1YB9RgJ https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=code...
- marcosdumay 5y agoAFAIK the one unambiguously relevant metric for how many bugs you will find in a codebase is how many its "clients" define as acceptable. Any kind of internal code quality affects the productivity of the debugging procedure, not the final number of bugs.