Package com.google.javascript.jscomp
Class DiagnosticGroups
java.lang.Object
com.google.javascript.jscomp.DiagnosticGroups
Named groups of DiagnosticTypes exposed by Compiler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupThis is intended to be used to suppress warnings in code that cannot for some reason be updated to use `let` and `const` instead of `var`.static final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupA set of diagnostics expected when parsing and type checking partial programs.static final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupWarnings that only apply to people who use MSG_ to denote messages.static final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final DiagnosticGroupstatic final com.google.common.collect.ImmutableSet<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiagnosticGroupFind the diagnostic group registered under the given name.static com.google.common.collect.ImmutableMap<String, DiagnosticGroup> Get the registered diagnostic groups, indexed by name.static DiagnosticGroupregisterGroup(String name, DiagnosticType... types) voidsetWarningLevel(CompilerOptions options, String name, CheckLevel level) Adds warning levels by name.
-
Field Details
-
wildcardExcludedGroups
-
UNSTRANSPILABLE_FEATURES
-
MODULE_LOAD
-
MODULE_IMPORT
-
GLOBAL_THIS
-
DEPRECATED
-
UNDERSCORE
-
VISIBILITY
-
ACCESS_CONTROLS
-
NON_STANDARD_JSDOC
-
INVALID_CASTS
-
STRICT_MODULE_DEP_CHECK
-
VIOLATED_MODULE_DEP
-
EXTERNS_VALIDATION
-
UNKNOWN_DEFINES
-
TWEAKS
-
MISSING_OVERRIDE
-
MISSING_PROPERTIES
-
GLOBALLY_MISSING_PROPERTIES
-
J2CL_CHECKS
-
MISSING_RETURN
-
UNDEFINED_VARIABLES
-
DEBUGGER_STATEMENT_PRESENT
-
CHECK_REGEXP
-
CHECK_TYPES
-
ES5_INHERITANCE_DIAGNOSTIC_GROUP
-
CHECK_PROTOTYPAL_TYPES
-
CHECK_STATIC_OVERRIDES
-
TOO_MANY_TYPE_PARAMS
-
STRICT_MISSING_PROPERTIES
-
STRICT_PRIMITIVE_OPERATORS
-
STRICT_CHECK_TYPES
-
REPORT_UNKNOWN_TYPES
-
CHECK_VARIABLES
-
CHECK_USELESS_CODE
-
CONST
-
CONSTANT_PROPERTY
-
TYPE_INVALIDATION
-
DUPLICATE_VARS
-
ES5_STRICT
-
MISSING_PROVIDE
-
UNRECOGNIZED_TYPE_ERROR
-
MISSING_REQUIRE
-
MISSING_SOURCES_WARNINGS
A set of diagnostics expected when parsing and type checking partial programs. Useful for clutz (tool that extracts TypeScript definitions from JS code). -
STRICT_REQUIRES
-
EXTRA_REQUIRE
-
DUPLICATE_MESSAGE
-
MESSAGE_DESCRIPTIONS
-
MSG_CONVENTIONS
Warnings that only apply to people who use MSG_ to denote messages. Note that this doesn't include warnings about proper use of goog.getMsg -
MISPLACED_TYPE_ANNOTATION
-
MISPLACED_MSG_ANNOTATION
-
MISPLACED_SUPPRESS
-
SUSPICIOUS_CODE
-
FUNCTION_PARAMS
-
DEPRECATED_ANNOTATIONS
-
UNUSED_LOCAL_VARIABLE
-
JSDOC_MISSING_TYPE
-
TYPE_IMPORT_CODE_REFERENCES
-
PARTIAL_ALIAS
-
LINT_VAR_DECLARATIONS
This is intended to be used to suppress warnings in code that cannot for some reason be updated to use `let` and `const` instead of `var`. It should not be enabled directly, instead enable "lintChecks". -
LINT_CHECKS
-
STRICT_MODULE_CHECKS
-
ANALYZER_CHECKS
-
CLOSURE_DEP_METHOD_USAGE_CHECKS
-
CLOSURE_CLASS_CHECKS
-
MALFORMED_GOOG_MODULE
-
CONFORMANCE_VIOLATIONS
-
LATE_PROVIDE
-
DUPLICATE_NAMESPACES
-
INVALID_DEFINES
-
INVALID_CLOSURE_UNAWARE_ANNOTATED_CODE
-
CANNOT_TRANSPILE_FEATURE
-
MISSING_POLYFILL
-
POLYMER
-
PARSING
-
CLOSURE_UNAWARE_CODE_ANNOTATION_PRESENT
-
-
Constructor Details
-
DiagnosticGroups
public DiagnosticGroups()
-
-
Method Details
-
registerGroup
-
getRegisteredGroups
Get the registered diagnostic groups, indexed by name. -
forName
Find the diagnostic group registered under the given name. -
setWarningLevel
Adds warning levels by name.
-