Uses of Interface
com.google.javascript.jscomp.CheckConformance.Rule
Packages that use CheckConformance.Rule
-
Uses of CheckConformance.Rule in com.google.javascript.jscomp
Classes in com.google.javascript.jscomp that implement CheckConformance.RuleModifier and TypeClassDescriptionstatic class
A conformance rule implementation to support things common to all rules such as allowlisting and reporting.static final class
Bangoog.dom.createDom
andgoog.dom.DomHelper#createDom
with parameters specified invalue
in the format tagname.attribute, e.g.static final class
Bansdocument.createElement
and similar methods with string literal parameter specified invalue
, e.g.static final class
BanElement#setAttribute
with attribute names specified invalue
or any dynamic string.static final class
BanDocument#execCommand
with command names specified invalue
or any dynamic string.static final class
Banned for/of loopsstatic final class
Banned global var declarations.static final class
Checks that file does not include an @enhance annotation for a banned namespace.static final class
Checks that file does not include an @mods annotation for a banned namespace regex.static final class
Banned non-literal arguments passed togoog.string.Const.from
.static final class
Banned dereferencing null or undefined types.static final class
Can be used to ban any function likeElement#setAttribute
which takes two parameters, an attribute name and a value.static final class
Checks thatthis
is not being referenced directly within a static member function.static final class
Banned throw of non-error object types.static final class
Banned 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 final class
Banned unknown "this" types.static final class
Banned 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 final class
Banned accessing properties from objects that are unresolved forward-declared type names.static class
Require "use strict" rulestatic final class
Ban any use of unresolved forward-declared types