com.puresoltechnologies.purifinity.server.metrics.mccabe.McCabeMetricEvaluatorParameter Maven / Gradle / Ivy
package com.puresoltechnologies.purifinity.server.metrics.mccabe;
import java.util.HashSet;
import java.util.Set;
import com.puresoltechnologies.commons.domain.LevelOfMeasurement;
import com.puresoltechnologies.commons.domain.ParameterWithArbitraryUnit;
import com.puresoltechnologies.parsers.source.SourceCodeLocation;
import com.puresoltechnologies.purifinity.analysis.domain.CodeRangeType;
import com.puresoltechnologies.purifinity.evaluation.api.CodeRangeNameParameter;
import com.puresoltechnologies.purifinity.evaluation.api.CodeRangeTypeParameter;
import com.puresoltechnologies.purifinity.evaluation.api.QualityLevelParameter;
import com.puresoltechnologies.purifinity.evaluation.api.SourceCodeLocationParameter;
import com.puresoltechnologies.purifinity.evaluation.api.SourceCodeQualityParameter;
import com.puresoltechnologies.purifinity.evaluation.domain.QualityLevel;
import com.puresoltechnologies.purifinity.evaluation.domain.SourceCodeQuality;
import com.puresoltechnologies.purifinity.evaluation.domain.metrics.MetricParameter;
public class McCabeMetricEvaluatorParameter {
public static final ParameterWithArbitraryUnit SOURCE_CODE_LOCATION = SourceCodeLocationParameter
.getInstance();
public static final ParameterWithArbitraryUnit CODE_RANGE_TYPE = CodeRangeTypeParameter
.getInstance();
public static final ParameterWithArbitraryUnit CODE_RANGE_NAME = CodeRangeNameParameter
.getInstance();
public static final MetricParameter VG = new MetricParameter(
"v(G)", "", LevelOfMeasurement.RATIO,
"McCabe's cyclomatic complexity for evaluated code range.",
Integer.class);
public static final ParameterWithArbitraryUnit QUALITY = SourceCodeQualityParameter
.getInstance();
public static final ParameterWithArbitraryUnit QUALITY_LEVEL = QualityLevelParameter
.getInstance();
public static final Set> ALL = new HashSet<>();
static {
ALL.add(VG);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy