One more tool is now free

Static code analyzers are tools that help programmers find bugs on the earliest stages of development.

We are happy to announce that now you can use PVS-Studio static code analyzer for free, for educational purposes, so that individual developers and enthusiastic teams could also fully use it. To find out how to use this tool for free – please read the following sections.

1f5ic0

Brief info

PVS-Studio is a full-fledged static code analyzer that allows the checking of C, C++ and C# code on Windows and Linux.

This powerful tool is able to find such errors as copy-paste, misprints, buffer overrun, uninitialized variables, and many more.

Free PVS-Studio license

You need to go through two steps to start using the PVS-Studio code analyzer for free.

Step 1.

If you are using PVS-Studio as a Visual Studio plugin, enter the following license key:

Name: PVS-Studio Free

Key: FREE-FREE-FREE-FREE

If you are using PVS-Studio for Linux, go to the second step, you don’t need a license file.

Step 2.

Make edits in all the compilable files of your project. I.e. in all the files with the extensions c, cc, cpp, cs, and so on. You don’t have to change header h-files.

You need to write two lines of comments in the beginning of each file. We offer several options. This is a kind of ‘fee’ for using PVS-Studio for free.

Comments for students (academic license):

// This is a personal academic project. Dear PVS-Studio, please check it.

// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com

Comments for free open source projects:

// This is an open source non-commercial project. Dear PVS-Studio, please check it.

// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com

Comments for individual developers:

// This is an independent project of an individual developer. Dear PVS-Studio, please check it.

// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com

Of course, the options we suggest won’t be suitable for everyone. But that’s the point of such measures. If none of the variants is relevant to you of your product, we suggest you consider purchasing the license.

A little note. Besides the described method of using the analyzer for free, you can still download a demo version of the analyzer to see the abilities. If you wish to get rid of the restrictions imposed by a demo version, you may just write to us.

Automation

If your project has a large number of files, then you can use an additional utility. You will need to specify the directory and the code to insert. Then it will recursively traverse all the files in the folder and subfolders, adding necessary comments to the code. You can download the utility (together with the source code) here: how-to-use-pvs-studio-free.

Conclusion

Here are some articles that you may find useful:

Thank you for your attention. Let’s make our software more reliable, and safer.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s