Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
SonarQube C/C++ Plugin_V
SonarQube C/C++ Plugin_V

Checker

Guideline

AssignmentInSubExpressionEXP45-C. Do not perform assignments in selection statements
ElseIfWithoutElseMSC01-C. Strive for logical completeness
IncAndDecMixedWithOtherOperatorsEXP30-C. Do not depend on the order of evaluation for side effects
NonEmptyCaseWithoutBreakMSC17-C. Finish every set of statements associated with a case label with a break statement
ObsoletePosixFunctionPOS33-C. Do not use vfork()
S1116MSC12-C. Detect and remove code that has no effect or is never executed
S1656MSC12-C. Detect and remove code that has no effect or is never executed
S1751MSC12-C. Detect and remove code that has no effect or is never executed
S1762MSC00-C. Compile cleanly at high warning levels
S1763MSC12-C. Detect and remove code that has no effect or is never executed
S1764MSC12-C. Detect and remove code that has no effect or is never executed
S1767INT36-C. Converting a pointer to integer or integer to pointer
S1836EXP43-C. Avoid undefined behavior when using restrict-qualified pointers
S1862MSC12-C. Detect and remove code that has no effect or is never executed
S2095FIO42-C. Close files when they are no longer needed
S2193FLP30-C. Do not use floating-point variables as loop counters
S2259EXP34-C. Do not dereference null pointers
S3518INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors
S3584MEM31-C. Free dynamically allocated memory when no longer needed
S819DCL31-C. Declare identifiers before using them
S820DCL31-C. Declare identifiers before using them
S930EXP37-C. Call functions with the correct number and type of arguments
S935MSC37-C. Ensure that control never reaches the end of a non-void function
S973MSC00-C. Compile cleanly at high warning levels
S978DCL37-C. Do not declare or define a reserved identifier
S990ENV33-C. Do not call system()
SwitchWithoutDefaultMSC01-C. Strive for logical completeness
TrigraphUsagePRE07-C. Avoid using repeated question marks