| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | sendable_function.ts.json | 21 …"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 …]
|
| D | unique_names.ts.json | 22 "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 …]
|
| D | es_object.ts.json | 22 "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 …]
|
| D | sendable_explicit_field_type.ts.json | 22 …"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 …]
|
| D | structural_identity.ts.json | 22 "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 …]
|
| D | sendable_class_interface_property.ts.json | 22 …"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 …]
|
| D | private_identifiers.ts.json | 22 "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 …]
|
| D | limited_stdlib_api.ts.json | 22 "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 …]
|
| D | type_literals.ts.json | 22 … "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 …]
|
| D | object_literals_autofixes.ts.json | 22 "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 …]
|
| D | utility_types.ts.json | 22 "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 …]
|
| D | function_object_methods.ts.json | 22 "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 …]
|
| D | destructuring_assignments.ts.json | 22 "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 …]
|
| D | function_expression.ts.json | 22 … "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 …]
|
| D | destructuring_declarations.ts.json | 22 … "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 …]
|
| D | sendable_no_structural_typing.ts.json | 22 "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 …]
|
| D | types.ts.json | 22 "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 …]
|
| D | arkui_decorators.ts.json | 22 "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 …]
|
| D | prototype_assignment.ts.json | 22 … "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 …]
|
| D | destructuring_parameters.ts.json | 22 … "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/ |
| D | rule151.ts.json | 22 "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 …]
|
| D | rule5.ts.json | 22 "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 …]
|
| D | rule144.ts.json | 22 "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 …]
|
| D | rule149.ts.json | 20 "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 …]
|
| D | rule5.ts.autofix.json | 29 "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 …]
|