diff --git a/lib/src/linter.dart b/lib/src/linter.dart index 43e78d59f..42e0aec69 100644 --- a/lib/src/linter.dart +++ b/lib/src/linter.dart @@ -89,6 +89,8 @@ class FileGlobFilter extends LintFilter { class Group implements Comparable { /// Defined rule groups. + static const Group errors = + const Group._('errors', description: 'Possible coding errors.'); static const Group pub = const Group._('pub', description: 'Pub-related rules.', link: const Hyperlink('See the Pubspec Format', @@ -108,10 +110,12 @@ class Group implements Comparable { factory Group(String name, {String description: '', Hyperlink link}) { switch (name.toLowerCase()) { - case 'style': - return style; + case 'errors': + return errors; case 'pub': return pub; + case 'style': + return style; default: return new Group._(name, custom: true, description: description, link: link);