![]() |
![]() |
4811 | ![]() |
||||
![]() | |||||||
| Annotations | |||||||
When creating a Location or Suppression range, the start and end annotations cannot appear on the same line. Example:
/* PRQA S 100 L1 */ int i; /* PRQA L:L1 */ // ERROR - start end on same line
// PRQA S 100 L2
int j; // PRQA L:L2 // CORRECT
Suppression and location annotations start and end on a complete line, rather than specific columns, therefore an annotation on line 1 of a file will affect the complete line - irrespective of the column of the annotation.
Example:
/* PRQA S 100 */ int i; // Message 100 suppressed for 'i'
int j; /* PRQA S 100 */ // Message 100 suppressed for 'j'
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |