Class | Description |
---|---|
CheckArrayWithGoogObject |
Lints against passing arrays to goog.object methods with the intention of
iterating over them as though with a for-in loop, which is discouraged with
arrays.
|
CheckDuplicateCase |
Check for duplicate case labels in a switch statement
Eg:
switch (foo) {
case 1:
case 1:
}
This is normally an indication of a programmer error.
|
CheckEmptyStatements |
Check for empty statements (i.e.
|
CheckEnums |
Check for duplicate values in enums.
|
CheckInterfaces |
Checks for errors related to interfaces.
|
CheckJSDocStyle |
Checks for various JSDoc-related style issues, such as function definitions without JsDoc, params
with no corresponding
@param annotation, coding conventions not being respected, etc. |
CheckMissingSemicolon |
Check for statements that should end with a semicolon according to the Google style guide.
|
CheckNullableReturn |
Checks when a function is annotated as returning {SomeType} (nullable)
but actually always returns {!SomeType}, i.e.
|
CheckPrimitiveAsObject |
Check for explicit creation of the object equivalents of primitive types
(e.g.
|
CheckPrototypeProperties |
Checks when a mutable property is assigned to a prototype.
|
CheckRequiresAndProvidesSorted |
Checks that goog.require() and goog.provide() calls are sorted alphabetically.
|
CheckUnusedLabels |
Check for unused labels blocks.
|
CheckUselessBlocks |
Check for useless blocks.
|
Copyright © 2009-2017 Google. All Rights Reserved.