<div dir="ltr">Hello everybody,<div><br></div><div><div>I have some years of experience in Software Engineering, and during my career I always felt like &quot;if the code quality is poor, the software you get is equally poor&quot;. But apparently, this feeling was not always mainstream. In literature, you can find several studies trying to correlate code quality indicators to defects in production. TL;DR there is no wide consensus, even most recent studies reveal low correlation between code coverage and software defects. And, all the kinds of code quality indicators are somewhat proportional to NLOC (number of lines of code).</div><div><br></div><div>Yet, I had this persistent feeling, and I wanted to demonstrate what I meant at least at my scale. So, I have produced a set of scripts that</div><div>1. connect to the software defects repository and extracts the defects characteristics</div><div>2. extract the defects fro the commits</div><div>3. aggregate the code coverage, hal volume, cyclomatic complexity, and software defects data in a single CSV</div><div>4. perform some simple statistics on this CSV</div><div><br></div><div>I have applied this set of scripts to my own environment, to translate my feeling to facts, and I am pretty satisfied with the result. You can find it in the repository <a href="https://github.com/nilleb/static-quality-study">https://github.com/nilleb/static-quality-study</a></div><div><br></div><div>But, this looks too beautiful. I would like to receive feedback about what I have done (a critic about the procedure? about the code?). And, if somebody is haunted by the same question, could you please give a try to this script in your environment (so to compare what I got with something else).</div><div><br></div><div>And, last, if there are any other static code analysis indicators that you usually rely on, I would love to know them.</div><div><br></div><div>Thanks for your time,</div><div>Ivo</div><div>-- <br></div><div dir="ltr" data-smartmail="gmail_signature">@nilleb | <a href="https://www.nilleb.com" target="_blank">https://www.nilleb.com</a></div></div><div dir="ltr" data-smartmail="gmail_signature"><br></div></div>