Skip to content

Commit

Permalink
new “deprecated” lint maturity
Browse files Browse the repository at this point in the history
Change-Id: Idd5257b5d4707b7a141efec644370c2fff9b7b3d
Reviewed-on: https://dart-review.googlesource.com/c/84701
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
  • Loading branch information
pq authored and commit-bot@chromium.org committed Nov 20, 2018
1 parent ebeae74 commit eceafa2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/analyzer/lib/src/lint/linter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ abstract class LintRule extends Linter implements Comparable<LintRule> {

class Maturity implements Comparable<Maturity> {
static const Maturity stable = const Maturity._('stable', ordinal: 0);
static const Maturity experimental = const Maturity._('stable', ordinal: 1);
static const Maturity experimental =
const Maturity._('experimental', ordinal: 1);
static const Maturity deprecated = const Maturity._('deprecated', ordinal: 2);

final String name;
final int ordinal;
Expand All @@ -359,6 +361,8 @@ class Maturity implements Comparable<Maturity> {
return stable;
case 'experimental':
return experimental;
case 'deprecated':
return deprecated;
default:
return new Maturity._(name, ordinal: ordinal);
}
Expand Down

0 comments on commit eceafa2

Please sign in to comment.