MetricsAnalyzer constructor
MetricsAnalyzer(
- MetricsRecordsStore _store,
- Config config
Implementation
MetricsAnalyzer(this._store, Config config)
: _globalExclude = _prepareExcludes(config.excludePatterns),
_codeRules = getRulesById(config.rules),
_antiPatterns = getPatternsById(config.antiPatterns),
_classesMetrics = metrics(
config: config.metrics,
measuredType: EntityType.classEntity,
),
_methodsMetrics = metrics(
config: config.metrics,
measuredType: EntityType.methodEntity,
),
_metricsExclude = _prepareExcludes(config.excludeForMetricsPatterns),
_metricsConfig = config.metrics;