AnalyzeCommand constructor

AnalyzeCommand({
  1. required Iterable<Rule> rules,
  2. required Iterable<AnalyzeReporter> reporters,
  3. required LintingAnalyzer analyzer,
  4. String? optionKey,
})

Implementation

AnalyzeCommand({
  required this.rules,
  required this.reporters,
  required this.analyzer,
  this.optionKey,
}) {
  if (rules.isEmpty) {
    throw Exception("rule is empty!");
  }
  if (reporters.isEmpty) {
    throw Exception("reporters is empty!");
  }
  _addFlags();
}