1#For more details on cyclomatic complexity see 2#https://emenda.com/wp-content/uploads/2017/07/HIS-sc-metriken.1.3.1_e.pdf 3 4#Comment Density >=20% 5#Comment Density "COMF" 6METRIC.CLLOCRIM=false 7#METRIC.CLLOCRIM.ThresholdEnabled=true 8#METRIC.CLLOCRIM.Threshold=g .2 9 10 11#Cyclomatic Complexity <=10 12#Cyclomatic Complexity "v(G)" 13#METRIC.CC=true 14#METRIC.CC.ThresholdEnabled=true 15#METRIC.CC.Threshold=l 21 16 17#number of parameters <=5 18#Number of function parameters "PARAM" 19METRIC.NOPAR=false 20#METRIC.NOPAR.ThresholdEnabled=true 21#METRIC.NOPAR.Threshold=l 6 22 23 24#of instructions <=50 25#Number of Instructions per function "STMT" 26METRIC.NOLLOCIF=false 27#METRIC.NOLLOCIF.ThresholdEnabled=true 28#METRIC.NOLLOCIF.Threshold=l 51 29 30#of call levels <=4 31#Number of call Levels "LEVEL" 32METRIC.NBD=false 33#METRIC.NBD.ThresholdEnabled=true 34#METRIC.NBD.Threshold=l 5 35 36METRIC.DIF=false 37#METRIC.DIF.ThresholdEnabled=true 38#METRIC.DIF.Threshold=l 5 39 40 41#Number of return Points "RETURN" 42#Error on != 1 43METRIC.NORET=false 44#METRIC.NORET.ThresholdEnabled=true 45#METRIC.NORET.Threshold=l 2 46 47 48#All the other metrics that do not have thresholds 49METRIC.NOF=false 50METRIC.NOC=false 51METRIC.NOPLIF=false 52METRIC.NOPLIT=false 53METRIC.NOPLIM=false 54METRIC.NOSLIF=false 55METRIC.NOSLIT=false 56METRIC.NOSLIM=false 57METRIC.NOLLOCIT=false 58METRIC.NOLLOCIM=false 59METRIC.NOCLIF=false 60METRIC.NOCLIT=false 61METRIC.NOCLIM=false 62METRIC.NOBLIF=false 63METRIC.NOBLIT=false 64METRIC.NOBLIM=false 65METRIC.CLLOCRIT=false 66METRIC.CLLOCRIF=false 67METRIC.SCC=false 68METRIC.MCC=true 69METRIC.MCC.ThresholdEnabled=true 70METRIC.MCC.Threshold=l 15 71 72METRIC.ECC=false 73METRIC.NOT=false 74METRIC.NOMIT=false 75METRIC.NOPUBMIT=false 76METRIC.NOPROTMIT=false 77METRIC.NOPRIVMIT=false 78METRIC.IDOC=false 79METRIC.CBO=false 80METRIC.LCOM=false 81METRIC.FO=false 82METRIC.MI=false 83METRIC.RFC=false 84METRIC.WMC=false 85METRIC.HDIFM=false 86METRIC.HEFM=false 87METRIC.HICM=false 88METRIC.HLENM=false 89METRIC.HLEVM=false 90METRIC.HNOBM=false 91METRIC.HTTPM=false 92METRIC.HVOCM=false 93METRIC.HVOLM=false 94 95 96cpptest.analyzer.metrics.enabled=true 97# Test configuration metadata 98com.parasoft.xtest.checkers.api.config.name=Modified Cyclomatic 99com.parasoft.xtest.checkers.api.config.path=Static Analysis 100com.parasoft.xtest.checkers.api.config.tool=3 101com.parasoft.xtest.checkers.api.config.version=9.5.0 102com.parasoft.xtest.checkers.api.config.xtestVersion=1.0.1 103com.parasoft.xtest.checkers.api.common.fullBuild=false 104com.parasoft.xtest.checkers.api.common.incrementalBuild=false 105com.parasoft.xtest.standards.api.enabled=true 106com.parasoft.xtest.execution.api.enabled=false 107com.parasoft.xtest.testgen.api.enabled=false 108com.parasoft.xtest.standards.api.max_errors_per_rule=10000 109