CodeQL documentation

FIXME comment

ID: cpp/fixme-comment
Kind: problem
Severity: recommendation
Precision: very-high
   - maintainability
   - documentation
   - external/cwe/cwe-546
Query 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.


Fix the functionality indicated by the comment. If the comment no longer applies, delete it to avoid confusion.


int isEven(int n) {
	//FIXME: Is only correct for small values of n
	return n == 0 || n == 2;