Trying to use PhpStorm inspect to tell a story of our code quality and track improvements. It's working well and I have a script that daily pulls from git, runs the inspection and graphs everything. Yay.
Here's the key line that runs the inspection:
command = "phpstorm.bat inspect " + reponame + " " + reponame + "\.idea\workspace.xml results\ -v2 -d " + pathtosrc
However, I've noticed that the numbers given aren't always consistent.
E.g. today, I ran it three times in a row on the same code repo, without any pulls, code changes or anything, and got different results.
Type Run 1, Run 2, Run 3
ERROR 531, 531, 530
WARNING 12895, 12893, 12878
WEAK WARNING 18425, 18425, 18424
INFORMATION 152, 152, 152
TYPO 82, 82, 82
I can't fathom a reason for this, but if there is one and I can fix it, I'd like to know. I would have thought running the same tool on the same code would always produce the same result, no?