CodeQL documentation

FIXME comment

ID: cpp/fixme-comment
Kind: problem
Security severity: 
Severity: recommendation
Precision: very-high
Tags:
   - 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.

Recommendation

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

Example

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

References

  • © GitHub, Inc.
  • Terms
  • Privacy
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy