Skip to content

Commit

Permalink
Error group.
Browse files Browse the repository at this point in the history
  • Loading branch information
pq committed May 10, 2015
1 parent 9bae0b1 commit 4205634
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/linter.dart
Expand Up @@ -89,6 +89,8 @@ class FileGlobFilter extends LintFilter {
class Group implements Comparable<Group> {

/// 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 <strong>Pubspec Format</strong>',
Expand All @@ -108,10 +110,12 @@ class Group implements Comparable<Group> {

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);
Expand Down

0 comments on commit 4205634

Please sign in to comment.