Package com.google.javascript.jscomp
Class ConformanceRules
- java.lang.Object
-
- com.google.javascript.jscomp.ConformanceRules
-
@GwtIncompatible("java.lang.reflect, java.util.regex") public final class ConformanceRules extends java.lang.ObjectStandard conformance rules. See third_party/java_src/jscomp/java/com/google/javascript/jscomp/conformance.proto
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConformanceRules.AbstractRuleA conformance rule implementation to support things common to all rules such as allowlisting and reporting.static classConformanceRules.BanCreateDomBangoog.dom.createDomandgoog.dom.DomHelper#createDomwith parameters specified invaluein the format tagname.attribute, e.g.static classConformanceRules.BanCreateElementBansdocument.createElementand similar methods with string literal parameter specified invalue, e.g.static classConformanceRules.BanExposeBanned @exposestatic classConformanceRules.BanForOfBanned for/of loopsstatic classConformanceRules.BanGlobalVarsBanned global var declarations.static classConformanceRules.BanNullDerefBanned dereferencing null or undefined types.static classConformanceRules.BanThrowOfNonErrorTypesBanned throw of non-error object types.static classConformanceRules.BanUnknownDirectThisPropsReferencesBanned unknown type references of the form "this.prop" unless - it is immediately cast, - it is a @template type (until template type restricts are enabled) or - the value is unused.static classConformanceRules.BanUnknownThisBanned unknown "this" types.static classConformanceRules.BanUnknownTypedClassPropsReferencesBanned unknown type references of the form "instance.prop" unless (a) it is immediately cast/asserted, or (b) it is a @template type (until template type restrictions are enabled), or (c) the value is unused, or (d) the source object type is unknown (to avoid error cascades)static classConformanceRules.BanUnresolvedTypeBanned accessing properties from objects that are unresolved forward-declared type names.static classConformanceRules.ConformanceLevelPossible check check resultsstatic classConformanceRules.ConformanceResultClasses extending AbstractRule must return ConformanceResult from their checkConformance implementation.static classConformanceRules.RequireFileoverviewVisibilityRequires source files to contain a top-level@fileoverviewblock with an explicit visibility annotation.static classConformanceRules.RequireUseStrictRequire "use strict" rulestatic classConformanceRules.StrictBanUnresolvedTypeBan any use of unresolved forward-declared types
-