UnusedL10nConfig.fromAnalysisOptions constructor

UnusedL10nConfig.fromAnalysisOptions(
  1. AnalysisOptions options
)

Creates the config from analysis options.

Implementation

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