The plugin entry point is the cdd.json file, that should be placed in the root dir of the project under analysis.
In the cdd.json file is the place you shoud list the ICPs you would like to compute. The list of supported ICPs are listed here.
An example configuration file can be seen below:
{
"limitOfComplexity": 10,
"rules": [
{
"name": "IF_STATEMENT",
"cost": 1
},
{
"name": "TRY_CATCH_STATEMENT",
"cost": 1
}
]
}In here, we consider only two ICPs (ifs and exception handlers), which have the same cost (1). A more complete cdd.json file is available here.