1.5.42. Migration to 7.6.1

1.5.42.1. Code Annotations

Behavior has changed to treat omitted optional groups in the regular expression describing comment syntax as empty strings. Specifically, the parser function is now called for these omitted groups, allowing it to handle them appropriately. For example, AXIVION DISABLE is a comment that omits the optional groups for the issue kind and rule names. Previously, parsing this comment did not trigger any parser function for the issue kind or rule name, and default values were used instead. Now, the selected parser is called with an empty string, and the built-in parser functions have been updated to treat an empty string as the previous default value.

This change also removes the defaults format attribute, which was accessible from older Python configurations. This functionality is now provided by the corresponding parser function when an empty string is received.

1.5.42.2. Stylechecks

AutosarC++-A15.2.1

The AutosarC++-A15.2.1 rule has been extended to detect constructors that are not noexcept in the initialization of (C++14) static field declarations. Additionally, a new option, ignore_const, has been added to suppress violations for global variables or static fields defined using constexpr or constinit. These entities are evaluated at compile time and are safe at program startup.