java-quality-checks icon indicating copy to clipboard operation
java-quality-checks copied to clipboard

Adding a new static analyzer (PVS-Studio)

Open BuzzMS opened this issue 5 years ago • 0 comments
trafficstars

Hello ! =)

I would like to add another static code analyzer to your project - PVS-Studio.

If possible, it would be great =)

I added one file with two errors to demonstrate the analyzer (RandomShapeFactory.java). The file may make no sense, but I tried to somehow make semantical connection with what is already there. If anything, I’ll be ready to change something =)

The new analyzer checks only one file (RandomShapeFactory.java) so as not to make changes to other files. The changes are that comments are inserted in the header of the file for a free license.

p.s. I did not change the pictures in the 'results' for pmdMain, checkStyleMain. Since in the pictures the file path would change from Users/kulbhushans/workspace/... to, for example, D:/workspace/..., I don’t know if this is critical =(

Thanks in advance for any of your decisions =)

BuzzMS avatar Apr 29 '20 12:04 BuzzMS