| Package | Description |
|---|---|
| org.apache.royale.linter | |
| org.apache.royale.linter.rules |
| Modifier and Type | Field and Description |
|---|---|
List<LinterRule> |
LinterSettings.rules |
| Modifier and Type | Method and Description |
|---|---|
static List<LinterRule> |
LinterUtils.configurationToRules(Configuration configuration) |
| Modifier and Type | Class and Description |
|---|---|
class |
ClassNameRule
Check that class names match a specific pattern.
|
class |
ConstantNameRule
Check that constant names match a specific pattern.
|
class |
EmptyCommentRule
Checks for line or block comments that are empty.
|
class |
EmptyFunctionBodyRule
Checks for function bodies that are empty.
|
class |
EmptyNestedBlockRule
Checks for empty blocks, as long as they aren't the bodies of classes,
interfaces, or packages.
|
class |
EmptyStatementRule
Checks for empty statements.
|
class |
FieldNameRule
Check that field names match a specific pattern.
|
class |
FunctionNameRule
Check that function names match a specific pattern.
|
class |
InterfaceNameRule
Check that interface names match a specific pattern.
|
class |
LineCommentPositionRule
Checks if line comments appear beside code on the same line, or on a
separate line.
|
class |
LocalVarAndParameterNameRule
Check that local variable and parameter names match a specific pattern.
|
class |
LocalVarShadowsFieldRule |
class |
MaxBlockDepthRule
Checks the number of nested blocks in a function.
|
class |
MaxParametersRule
Checks the number of function parameters.
|
class |
MissingASDocRule
Checks for missing or empty ASDoc comments.
|
class |
MissingConstructorSuperRule
Check that all constructors include a call to super().
|
class |
MissingNamespaceRule
Check that symbols in package or class scopes have a namespace.
|
class |
MissingSemicolonRule
Checks for statements with missing semicolons.
|
class |
MissingTypeRule
Checks that a type has been declared for all variables, function parameters,
and function returns.
|
class |
MXMLEmptyAttributeRule
Check that MXML attribute values are not empty.
|
class |
MXMLIDRule
Check that MXML id attribute values match a specific pattern.
|
class |
NoAnyTypeRule
Checks for uses of the * type.
|
class |
NoBooleanEqualityRule
Checks for redundant equality comparisons with 'true' and 'false' boolean
literals using the '==' and '!=' operators.
|
class |
NoConstructorDispatchEventRule
Check that a constructor does not call `dispatchEvent` because it's likely
that no listeners have been added yet.
|
class |
NoConstructorReturnTypeRule
Check that a constructor does not specify a return type (not even `void`).
|
class |
NoDuplicateObjectKeysRule
Check that each key in an object literal is unique.
|
class |
NoDynamicClassRule
Check that symbols in package or class scopes have a namespace.
|
class |
NoIfBooleanLiteralRule
Check that a boolean literal value is not used as an 'if' condition.
|
class |
NoLeadingZeroesRule
Checks for use of numeric literals with leading zeroes, except when it starts
with '0x' (hexadecimal notation).
|
class |
NoSparseArrayRule
Check that an array literal contains no empty slots (multiple repeating commas with no values).
|
class |
NoStringEventNameRule
Check that calls to event dispatcher methods don't use string values for
event names.
|
class |
NoThisInClosureRule
Checks for use of the 'this' keyword in closures.
|
class |
NoTraceRule
Check for calls to the 'trace()' function.
|
class |
NoVoidOperatorRule
Checks for uses of 'void' operator.
|
class |
NoWildcardImportRule
Check for import statements that import the entire package.
|
class |
NoWithRule
Checks for uses of 'with(x)'.
|
class |
OverrideContainsOnlySuperCallRule
Check that an overridden function contains more than a call to super.
|
class |
PackageNameRule
Check that package names match a specific pattern.
|
class |
StaticConstantsRule
Checks for constants that are declared on a class, but are not static.
|
class |
StrictEqualityRule
Checks for uses of the '==' and '!='' operators instead of the stricter '==='
and '!==' operators.
|
class |
SwitchWithoutDefaultRule
Check for 'switch' statements that are missing a 'default' clause.
|
class |
UnsafeNegationRule
Check that the left side of in, is, and instanceof is not negated unsafely.
|
class |
ValidTypeofRule
Check that an array literal contains no empty slots (multiple repeating
commas with no values).
|
class |
VariablesOnTopRule
Check that variables are always declared at the top of a function.
|
Copyright © 2023 The Apache Software Foundation. All rights reserved.