Home
last modified time | relevance | path

Searched defs:rule (Results 1 – 25 of 203) sorted by relevance

123456789

/arkcompiler/ets_frontend/ets2panda/linter/test/
Dsendable_function.ts.json21 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… string
27 …"rule": "When declaring \"@Sendable\" overloaded function, needs to add \"@Sendable\" decorator on… string
33 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… string
39 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" typeAlias (arkts-sendable-typeAl… string
45 …"rule": "Only \"FunctionType\" can declare \"Sendable\" typeAlias (arkts-sendable-typeAlias-declar… string
51 …"rule": "Only \"FunctionType\" can declare \"Sendable\" typeAlias (arkts-sendable-typeAlias-declar… string
57 …"rule": "Only \"FunctionType\" can declare \"Sendable\" typeAlias (arkts-sendable-typeAlias-declar… string
64 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
71 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
78 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… string
[all …]
Dunique_names.ts.json22 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
29 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
36 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
43 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
50 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
57 … "rule": "Classes cannot be specified in \"implements\" clause (arkts-implements-only-iface)" string
64 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
71 "rule": "Declaration merging is not supported (arkts-no-decl-merging)" string
78 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
85 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
[all …]
Des_object.ts.json22 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
29 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
36 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
43 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
50 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
57 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
64 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
71 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
78 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
85 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
[all …]
Dsendable_explicit_field_type.ts.json22 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
29 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
36 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
43 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
50 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
57 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
64 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
71 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
78 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
85 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
[all …]
Dstructural_identity.ts.json22 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
29 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
36 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
43 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
50 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
57 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
64 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
71 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
78 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
85 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
[all …]
Dsendable_class_interface_property.ts.json22 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… string
29 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
36 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
43 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
50 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
57 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
64 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
71 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
78 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
85 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… string
[all …]
Dprivate_identifiers.ts.json22 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
29 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
36 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
43 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
50 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
57 "rule": "Use unique names for types and namespaces. (arkts-unique-names)" string
64 "rule": "Private '#' identifiers are not supported (arkts-no-private-identifiers)" string
71 "rule": "Private '#' identifiers are not supported (arkts-no-private-identifiers)" string
78 "rule": "Private '#' identifiers are not supported (arkts-no-private-identifiers)" string
85 … "rule": "Definite assignment assertions are not supported (arkts-no-definite-assignment)" string
[all …]
Dlimited_stdlib_api.ts.json22 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
29 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
36 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
43 "rule": "\"globalThis\" is not supported (arkts-no-globalthis)" string
50 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
57 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
64 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
71 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
78 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
85 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
[all …]
Dtype_literals.ts.json22 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
29 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
36 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
43 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
50 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
57 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
64 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
71 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
78 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
85 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
[all …]
Dobject_literals_autofixes.ts.json22 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
29 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
36 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
43 … "rule": "Definite assignment assertions are not supported (arkts-no-definite-assignment)" string
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
57 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
71 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
85 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
[all …]
Dutility_types.ts.json22 "rule": "Some of utility types are not supported (arkts-no-utility-types)" string
29 "rule": "Some of utility types are not supported (arkts-no-utility-types)" string
36 "rule": "Some of utility types are not supported (arkts-no-utility-types)" string
43 "rule": "Some of utility types are not supported (arkts-no-utility-types)" string
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
57 "rule": "Some of utility types are not supported (arkts-no-utility-types)" string
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
71 "rule": "Some of utility types are not supported (arkts-no-utility-types)" string
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
85 "rule": "Some of utility types are not supported (arkts-no-utility-types)" string
[all …]
Dfunction_object_methods.ts.json22 "rule": "Reassigning object methods is not supported (arkts-no-method-reassignment)" string
29 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)" string
36 "rule": "Reassigning object methods is not supported (arkts-no-method-reassignment)" string
43 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)" string
50 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)" string
57 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)" string
64 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
70 … "rule": "\"Function.apply\", \"Function.call\" are not supported (arkts-no-func-apply-call)" string
77 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
84 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)" string
[all …]
Ddestructuring_assignments.ts.json22 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
29 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
36 "rule": "Destructuring assignment is not supported (arkts-no-destruct-assignment)" string
43 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
50 "rule": "Destructuring assignment is not supported (arkts-no-destruct-assignment)" string
57 …"rule": "It is possible to spread only arrays or classes derived from arrays into the rest paramet… string
64 "rule": "Destructuring assignment is not supported (arkts-no-destruct-assignment)" string
71 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
85 "rule": "Destructuring assignment is not supported (arkts-no-destruct-assignment)" string
[all …]
Dfunction_expression.ts.json22 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
29 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
36 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
43 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
50 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
57 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
64 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
71 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
78 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
85 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
[all …]
Ddestructuring_declarations.ts.json22 … "rule": "Destructuring variable declarations are not supported (arkts-no-destruct-decls)" string
29 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
36 … "rule": "Destructuring variable declarations are not supported (arkts-no-destruct-decls)" string
43 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
50 … "rule": "Destructuring variable declarations are not supported (arkts-no-destruct-decls)" string
57 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
71 … "rule": "Destructuring variable declarations are not supported (arkts-no-destruct-decls)" string
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
85 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
[all …]
Dsendable_no_structural_typing.ts.json22 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
29 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
36 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
43 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
57 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr… string
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
71 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
78 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
85 "rule": "Structural typing is not supported (arkts-no-structural-typing)" string
[all …]
Dtypes.ts.json22 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
29 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" string
36 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
43 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
50 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
57 "rule": "Indexed access types are not supported (arkts-no-aliases-by-index)" string
64 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
71 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
78 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" string
85 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
[all …]
Darkui_decorators.ts.json22 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
29 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
36 "rule": "Use inheritance instead of intersection types (arkts-no-intersection-types)" string
43 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
50 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
57 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
64 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
71 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
78 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
85 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
[all …]
Dprototype_assignment.ts.json22 … "rule": "Using \"this\" inside stand-alone functions is not supported (arkts-no-standalone-this)" string
29 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
36 … "rule": "Using \"this\" inside stand-alone functions is not supported (arkts-no-standalone-this)" string
43 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
50 "rule": "Prototype assignment is not supported (arkts-no-prototype-assignment)" string
57 "rule": "Prototype assignment is not supported (arkts-no-prototype-assignment)" string
64 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)" string
71 … "rule": "Using \"this\" inside stand-alone functions is not supported (arkts-no-standalone-this)" string
78 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
85 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" string
[all …]
Ddestructuring_parameters.ts.json22 … "rule": "Destructuring parameter declarations are not supported (arkts-no-destruct-params)" string
29 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
36 … "rule": "Destructuring parameter declarations are not supported (arkts-no-destruct-params)" string
43 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
57 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
64 … "rule": "Destructuring parameter declarations are not supported (arkts-no-destruct-params)" string
71 … "rule": "Destructuring parameter declarations are not supported (arkts-no-destruct-params)" string
78 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" string
85 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test_rules/
Drule151.ts.json22 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" string
29 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
36 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
43 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
50 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
57 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
64 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
71 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
78 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
85 "rule": "Usage of \"ESObject\" type is restricted (arkts-limited-esobj)" string
[all …]
Drule5.ts.json22 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
29 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
36 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
43 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
50 "rule": "\"for .. in\" is not supported (arkts-no-for-in)" string
57 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
64 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
71 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
78 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
85 … "rule": "Destructuring variable declarations are not supported (arkts-no-destruct-decls)" string
[all …]
Drule144.ts.json22 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
29 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
36 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
43 "rule": "\"globalThis\" is not supported (arkts-no-globalthis)" string
50 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
57 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
64 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
71 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u… string
78 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
85 "rule": "Usage of standard library is restricted (arkts-limited-stdlib)" string
[all …]
Drule149.ts.json20 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
27 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
34 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
41 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
48 … "rule": "\"typeof\" operator is allowed only in expression contexts (arkts-no-type-query)" string
55 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
62 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
69 … "rule": "\"typeof\" operator is allowed only in expression contexts (arkts-no-type-query)" string
76 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
83 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" string
[all …]
Drule5.ts.autofix.json29 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
43 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
57 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
71 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
78 "rule": "\"for .. in\" is not supported (arkts-no-for-in)" string
92 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
106 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
120 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
127 "rule": "Use \"let\" instead of \"var\" (arkts-no-var)" string
134 … "rule": "Destructuring variable declarations are not supported (arkts-no-destruct-decls)" string
[all …]

123456789