getUnusedCodeConfig static method

UnusedCodeAnalysisConfig getUnusedCodeConfig(
  1. UnusedCodeConfig config,
  2. String rootPath
)

Creates an unused code config from given raw config.

Implementation

static UnusedCodeAnalysisConfig getUnusedCodeConfig(
  UnusedCodeConfig config,
  String rootPath,
) =>
    UnusedCodeAnalysisConfig(
      prepareExcludes(config.excludePatterns, rootPath),
      prepareExcludes(config.analyzerExcludePatterns, rootPath),
    );