UnusedCodeConfig.fromAnalysisOptions constructor

UnusedCodeConfig.fromAnalysisOptions(
  1. AnalysisOptions options
)

Creates the config from analysis options.

Implementation

factory UnusedCodeConfig.fromAnalysisOptions(AnalysisOptions options) =>
    UnusedCodeConfig(
      excludePatterns: const [],
      analyzerExcludePatterns:
          options.readIterableOfString(['analyzer', 'exclude']),
      isMonorepo: false,
      shouldPrintConfig: false,
    );