UnusedCodeConfig.fromArgs constructor

UnusedCodeConfig.fromArgs(
  1. Iterable<String> excludePatterns, {
  2. required bool isMonorepo,
  3. required bool shouldPrintConfig,
})

Creates the config from cli args.

Implementation

factory UnusedCodeConfig.fromArgs(
  Iterable<String> excludePatterns, {
  required bool isMonorepo,
  required bool shouldPrintConfig,
}) =>
    UnusedCodeConfig(
      shouldPrintConfig: shouldPrintConfig,
      excludePatterns: excludePatterns,
      analyzerExcludePatterns: const [],
      isMonorepo: isMonorepo,
    );