>
>
PVS-Studio 7.27: check C# code in VS Co…

Gleb Aslamov
Articles: 13

PVS-Studio 7.27: check C# code in VS Code, analyze Unreal Engine projects in Rider, and more

PVS-Studio 7.27 has been released. Now you can analyze .NET projects in the plugin for VS Code, check Unreal Engine projects directly in Rider — and there is more to come! See the details in this note.

You can download the latest PVS-Studio version here.

Support for .NET projects in the plugin for Visual Studio Code

Now the PVS-Studio plugin for Visual Studio Code supports the analysis of .NET projects. In the plugin, you can:

  • run the analysis and view the analysis report;
  • suppress warnings using suppress files;
  • work with .pvsconfig files;
  • and more.

Please see the documentation to learn more about the plugin features.

New features of the Rider plugin

The PVS-Studio plugin is now available for Rider 2023.2. Rider 2023.2 enables you to work with Unreal Engine projects directly in Rider, and with PVS-Studio you can analyze UE projects directly in Rider too! For more details, please see the documentation.

Complete revision of the Java analyzer documentation

Now each usage scenario has a separate section in the documentation:

New feature for pvsconfig

In the pvsconfig configuration file, you can now specify the paths in the analyzer report to be set relative to the solution directory.

The new option is supported both when launching the analysis and when viewing the analyzer results in IDE plugins. The feature will make it easier to handle the analysis report when spreading it between the machines with different directory structures.

You can find the documentation for pvsconfig here.

New diagnostic rules

C++

  • V1102. Unreal Engine. Violation of naming conventions may cause Unreal Header Tools to work incorrectly.
  • V2623. MISRA. Macro identifiers should be distinct.

C#

  • V3192. Type member is used in the 'GetHashCode' method but is missing from the 'Equals' method.
  • V4004. Unity Engine. New array object is returned from method and property. Using such member in performance-sensitive context can lead to decreased performance.

Articles

For C++ programmers:

For C# programmers:

Other:

Do you want to check a project with PVS-Studio? Then start from this page.

We have also launched an IT events newsletter for developers! Here you can subscribe to the PVS-Studio events and digest newsletter.