The first static analysis report: the key problems and how to address them

What is static analysis?

bool operator==(const BDVState &Other) const {
return OriginalValue == OriginalValue && BaseValue == Other.BaseValue &&
Status == Other.Status;
}

Problems in the first report

How to address the first report’s problems

  • the warning’s category;
  • warnings for tests;
  • the number of warnings issued per line in a specified file;
  • how often a specific diagnostic is triggered.

The warning’s category

Warnings for tests

The number of warnings issued per line

How often a specific diagnostic is triggered

How it all looks in PVS-Studio

Conclusion

--

--

--

The developer, the debugger, the unicorn. I know all about static analysis and how to find bugs and errors in C, C++, C#, and Java source code.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Firestore Backups the easy way with Cloud Workflows

Firestore Backups the easy way with Cloud Workflows

Quickbooks Monitor Service Crashing on Windows Server 2016 [Solved]

“Fundamentals, fundamentals, fundamentals…

from F# to Scala : apply & unapply

Connecting your Cellphone to Microsoft Azure IoT Central

Day 130 — Setting up a 3rd Person 3D Project

PVS-Studio 7.17: Unreal Engine, ASP.NET Core, Texas Instruments

How I found an IDOR in my college website 😉

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Unicorn Developer

Unicorn Developer

The developer, the debugger, the unicorn. I know all about static analysis and how to find bugs and errors in C, C++, C#, and Java source code.

More from Medium

I will do html landing page psd, xd, sketch, figma to html convert

Even small projects have bugs, or how PVS-Studio checked Blend2D

What happens when you run a C++ program?

So What is an API, Exactly?