Rule | Description | Example | KPI |
---|---|---|---|
debug.AnalysisOrder | Print callbacks that are called during analysis in order | Maintainability | |
debug.ConfigDumper | Dump config table | Maintainability | |
debug.DumpBugHash | Dump the bug hash for all statements. | Maintainability | |
debug.DumpCallGraph | Display Call Graph | Maintainability | |
debug.DumpCalls | Print calls as they are traversed by the engine | Maintainability | |
debug.DumpCFG | Display Control-Flow Graphs | Maintainability | |
debug.DumpDominators | Print the dominance tree for a given CFG | Maintainability | |
debug.DumpLiveVars | Print results of live variable analysis | Maintainability | |
debug.DumpTraversal | Print branch conditions as they are traversed by the engine | Maintainability | |
debug.ExprInspection | Check the analyzer’s understanding of expressions | Maintainability | |
debug.Stats | Emit warnings with analyzer statistics | Maintainability | |
debug.TaintTest | Mark tainted symbols as such. | Maintainability | |
debug.ViewCallGraph | View Call Graph using GraphViz | Maintainability | |
debug.ViewCFG | View Control-Flow Graphs using GraphViz | Maintainability | |
debug.ViewExplodedGraph | View Exploded Graphs using GraphViz | Maintainability | |
llvm.Conventions | Check code for LLVM codebase conventions | Maintainability | |
llvm.Conventions | Check code for LLVM codebase conventions | Maintainability | |
empty-catch | The catch block should not be vacant. If you catch an exception, ensure you process it and avoid an unexpected behavior in the system. | Complaint Code:int x = -1; Non-Complaint Code: int x = -1; | Maintainability |
char signedness | Specify the signess of char explicitly. Else, the compiler which is not portable can cause subtle errors if a char is unexpectedly "signed" instead of unsigned. | Complaint Code: | Maintainability |
fixed size memory operation | Memory operations should not be called with a hard-coded value instead of using a macro or sizeof() or constant. This can be quickly forgotten while changing the size. | | Maintainability |
hidden parameter | A function declares a variable with the same name as a parameter, which is then "hidden". | Complaint Code: | Maintainability |
hidden parameter | A function declares a variable with the same name as a parameter, which is then "hidden". | Complaint Code: | Maintainability |
deactivated code | Code segments that are permanently disabled by the preprocessor. Indication of inactive code. Only cases with condition would be OK. | Non-complaint code:
| Maintainability |
Assignment Operator Non-Const Arg | Assignment operator must not have non-const argument. | Non-complaint code:
| Robustness |
Assignment Operator Returns Void | Assignment operator must return a valid object. Return type should not be void. | Non-Complaint code:class Alpha { Complaint Code: | Robustness |
Assignment Operator Non-Const Return | Assignment operator must return const qualified valid object. | Non-Complaint code:class Alpha { Complaint Code: | Robustness |