| Index: pkg/analyzer/lib/src/generated/error.dart
|
| ===================================================================
|
| --- pkg/analyzer/lib/src/generated/error.dart (revision 42670)
|
| +++ pkg/analyzer/lib/src/generated/error.dart (working copy)
|
| @@ -2919,6 +2919,12 @@
|
| static const ErrorType POLYMER =
|
| const ErrorType('POLYMER', 8, ErrorSeverity.INFO);
|
|
|
| + /**
|
| + * Lint warnings describe style and best practice recommendations that can be used to formalize a project's style
|
| + * guidelines.
|
| + */
|
| + static const ErrorType LINT = const ErrorType('LINT', 9, ErrorSeverity.INFO);
|
| +
|
| static const List<ErrorType> values = const [
|
| TODO,
|
| HINT,
|
| @@ -2928,7 +2934,8 @@
|
| STATIC_TYPE_WARNING,
|
| SYNTACTIC_ERROR,
|
| ANGULAR,
|
| - POLYMER];
|
| + POLYMER,
|
| + LINT];
|
|
|
| /**
|
| * The severity of this type of error.
|
| @@ -3318,6 +3325,24 @@
|
| }
|
|
|
| /**
|
| + * Defines style and best practice recommendations.
|
| + *
|
| + * Unlike [HintCode]s, which are akin to traditional static warnings from a compiler, lint recommendations focus on
|
| + * matters of style and practices that might aggregated to define a project's style guide.
|
| + */
|
| +class LintCode extends ErrorCode {
|
| +
|
| + const LintCode(String name, String message, [String correction])
|
| + : super(name, message, correction);
|
| +
|
| + @override
|
| + ErrorSeverity get errorSeverity => ErrorSeverity.LINT;
|
| +
|
| + @override
|
| + ErrorType get type => ErrorType.LINT;
|
| +}
|
| +
|
| +/**
|
| * The enumeration `PolymerCode` defines Polymer specific problems.
|
| */
|
| class PolymerCode extends ErrorCode {
|
|
|