AnalyzeCommand constructor
AnalyzeCommand({
- required Iterable<
Rule> rules, - required Iterable<
AnalyzeReporter> reporters, - required LintingAnalyzer analyzer,
- 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();
}