Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #90 from dart-lang/debug_group
Browse files Browse the repository at this point in the history
Error group.
  • Loading branch information
pq committed May 11, 2015
2 parents 9bae0b1 + 4205634 commit 31f531d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/linter.dart
Original file line number Diff line number Diff line change
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 31f531d

Please sign in to comment.