From 4205634a0f1304d5586d7455299f428a2eb2b80b Mon Sep 17 00:00:00 2001 From: pquitslund Date: Sun, 10 May 2015 15:45:16 -0700 Subject: [PATCH] Error group. --- lib/src/linter.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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);