FIXME comment¶
ID: cpp/fixme-commentKind: problemSecurity severity: Severity: recommendationPrecision: very-highTags: - maintainability - documentation - external/cwe/cwe-546Query suites: - cpp-security-and-quality.qls
Click to see the query in the CodeQL repository
The indicated comment is a FIXME comment. FIXME comments are often used to indicate code that does not work correctly or that may not work in all supported environments. This may be necessary during the implementation of new functionality but FIXME comments should not be present in stable code. Any FIXME comments should be reviewed and the code improved as soon as possible to avoid the accumulation of partially implemented features.
Recommendation¶
Fix the functionality indicated by the comment. If the comment no longer applies, delete it to avoid confusion.
Example¶
intisEven(intn){//FIXME: Is only correct for small values of nreturnn==0||n==2;}
References¶
Common Weakness Enumeration:CWE-546.