MetricsAnalyzer constructor

MetricsAnalyzer(
  1. MetricsRecordsStore _store,
  2. 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;