codeql-coding-standards
codeql-coding-standards copied to clipboard
Deviation code identifier and expanded macro elements
Describe the bug Whenever a guideline is positioned on an expanded element of a macro invocation spanning multiple lines, a deviation using a code identifier fails to suppress the guideline when position next to the offending parameter.
Macro(X,
Y, // CODE-IDENTIFIER
Z
)
To Reproduce See example above
Expected behavior Suppression of guideline
Screenshots n/a
Environment
- CodeQL Coding Standards version: e.g. 0.7.0
- CodeQL version: 2.10.5
- Operating System: MacOS, Linux
Additional context
A current workaround is to place the code identifier on the last line of the macro invocation instead of the offending program element (e.g., macro invocation parameter)
Macro(X,
Y,
Z,
) // CODE-IDENTIFIER