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(
      createAbsolutePatterns(config.excludePatterns, rootPath),
      createAbsolutePatterns(config.analyzerExcludePatterns, rootPath),
      isMonorepo: config.isMonorepo,
    );