2 new rules about aggregate initialization in C and C++

Hello dear C and C++ users

Your C and C++ codes will now be checked against two additional rules about aggregate initialization:

  • Rule S6871: All the elements of an aggregate should be provided with an initial value (for C, C++ and Objective-C)
  • Rule S6872: Aggregates should be initialized with braces in non-generic code (for C++ only)

These new features will be available with SonarQube 10.5 starting from Developer Edition. They are available right now on SonarCloud and in SonarLint.

As always, you can see what’s coming next and vote for C and C++ features you would like to see in SonarQube , SonarCloud , and SonarLint .