![]() |
![]() |
4700 | ![]() |
||||
![]() | |||||||
| Metric thresholds | |||||||
The specified metric has breached a threshold value imposed with the '-threshold' option. The -threshold option may be used to generate a message when a metric value exceeds or fall below a specified limit. A user-defined message may specified , but message 4700 is supplied as a default for this purpose. For example, in the code below, the -threshold option specifies that message 4700 should be generated if STXLN (the number of executable lines of code within a function) is less than 5.
/*PRQA S 3227,3408 ++*/
/********************************
* OPTIONS: -thresh "STXLN<5"
*******************************/
extern int foo(int n)
{
return n;
} /* Message 4700 */
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |