...
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
|
| Could detect violations of this recommendation merely by searching for the use of "magic numbers" and magic strings in the code itself. That is, any number (except a few canonical numbers: −1, 0, 1, 2) that appears in the code anywhere besides where assigned to a variable is a magic number and should instead be assigned to a | |||||||
| CC2.DCL06 | Fully implemented | |||||||
| 201 S | Fully implemented | |||||||
PRQA QA-C |
| 3120 | Partially implemented |
...
Related Guidelines
CERT C++ Secure Coding Standard | DCL06-CPP. Use meaningful symbolic constants to represent literal values in program logic |
MITRE CWE | CWE-547, Use of hard-coded, security-relevant constants |
...