Config.fromRules constructor
Implementation
factory Config.fromRules(Map<String, LintOptions> rules) {
if (rules.isEmpty) {
return Config();
}
try {
return Config.fromMap(
rules.entries.first.value.json,
);
} catch (error, stackTrace) {
stdout.write(error);
stdout.write(stackTrace);
return Config();
}
}