Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 841813002: Linter analyzer plumbing. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698