com.puresoltechnologies.purifinity.server.metrics.maintainability.MaintainabilityIndexEvaluatorParameter Maven / Gradle / Ivy
package com.puresoltechnologies.purifinity.server.metrics.maintainability;
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 MaintainabilityIndexEvaluatorParameter {
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 MI_WOC = new MetricParameter(
"MIwoc", "", LevelOfMeasurement.ORDINAL,
"Maintainability index without comments", Double.class);
public static final MetricParameter MI_CW = new MetricParameter(
"MIcw", "", LevelOfMeasurement.ORDINAL,
"Maintainability index comment weight", Double.class);
public static final MetricParameter MI = new MetricParameter(
"MI", "", LevelOfMeasurement.ORDINAL,
"Maintainability index including comments", Double.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(MI_WOC);
ALL.add(MI_CW);
ALL.add(MI);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy