SQ says to remove LCOV_EXCL_START tags

Then tell us:

  • What language is this for? C++
  • Which rule? cpp.S125
  • Why do you believe it’s a false-positive/false-negative?
  • Are you using: SQ Cloud v2026.1

I have this C++ code:

// NOLINTEND(cppcoreguidelines-pro-type-vararg)
// LCOV_EXCL_START

And SQ says “Remove the commented out code”.

This is a false positive because those 2 lines aren’t code, but instead markers that are read by clang-tidy and LCOV.

Hey @sergio1, welcome to the Community!

// NOLINTEND(cppcoreguidelines-pro-type-vararg) should be fixed in the latest version: SonarQube Server 2026.5 LTA.

I couldn’t find any reference to any fix for // LCOV_EXCL_START, so I will flag this for the devs to have a look. Thanks!