13af6ab5fSopenharmony_ci/*
23af6ab5fSopenharmony_ci * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
33af6ab5fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
43af6ab5fSopenharmony_ci * you may not use this file except in compliance with the License.
53af6ab5fSopenharmony_ci * You may obtain a copy of the License at
63af6ab5fSopenharmony_ci *
73af6ab5fSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0
83af6ab5fSopenharmony_ci *
93af6ab5fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
103af6ab5fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
113af6ab5fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123af6ab5fSopenharmony_ci * See the License for the specific language governing permissions and
133af6ab5fSopenharmony_ci * limitations under the License.
143af6ab5fSopenharmony_ci */
153af6ab5fSopenharmony_ci
163af6ab5fSopenharmony_ciexport const cookBookMsg: string[] = [];
173af6ab5fSopenharmony_ciexport const cookBookTag: string[] = [];
183af6ab5fSopenharmony_ci
193af6ab5fSopenharmony_cifor (let i = 0; i <= 183; i++) {
203af6ab5fSopenharmony_ci  cookBookMsg[i] = '';
213af6ab5fSopenharmony_ci}
223af6ab5fSopenharmony_ci
233af6ab5fSopenharmony_cicookBookTag[1] =
243af6ab5fSopenharmony_ci  'Objects with property names that are not identifiers are not supported (arkts-identifiers-as-prop-names)';
253af6ab5fSopenharmony_cicookBookTag[2] = '"Symbol()" API is not supported (arkts-no-symbol)';
263af6ab5fSopenharmony_cicookBookTag[3] = 'Private \'#\' identifiers are not supported (arkts-no-private-identifiers)';
273af6ab5fSopenharmony_cicookBookTag[4] = 'Use unique names for types and namespaces. (arkts-unique-names)';
283af6ab5fSopenharmony_cicookBookTag[5] = 'Use "let" instead of "var" (arkts-no-var)';
293af6ab5fSopenharmony_cicookBookTag[6] = '';
303af6ab5fSopenharmony_cicookBookTag[7] = '';
313af6ab5fSopenharmony_cicookBookTag[8] = 'Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)';
323af6ab5fSopenharmony_cicookBookTag[9] = '';
333af6ab5fSopenharmony_cicookBookTag[10] = '';
343af6ab5fSopenharmony_cicookBookTag[11] = '';
353af6ab5fSopenharmony_cicookBookTag[12] = '';
363af6ab5fSopenharmony_cicookBookTag[13] = '';
373af6ab5fSopenharmony_cicookBookTag[14] = 'Use "class" instead of a type with call signature (arkts-no-call-signatures)';
383af6ab5fSopenharmony_cicookBookTag[15] = 'Use "class" instead of a type with constructor signature (arkts-no-ctor-signatures-type)';
393af6ab5fSopenharmony_cicookBookTag[16] = 'Only one static block is supported (arkts-no-multiple-static-blocks)';
403af6ab5fSopenharmony_cicookBookTag[17] = 'Indexed signatures are not supported (arkts-no-indexed-signatures)';
413af6ab5fSopenharmony_cicookBookTag[18] = '';
423af6ab5fSopenharmony_cicookBookTag[19] = 'Use inheritance instead of intersection types (arkts-no-intersection-types)';
433af6ab5fSopenharmony_cicookBookTag[20] = '';
443af6ab5fSopenharmony_cicookBookTag[21] = 'Type notation using "this" is not supported (arkts-no-typing-with-this)';
453af6ab5fSopenharmony_cicookBookTag[22] = 'Conditional types are not supported (arkts-no-conditional-types)';
463af6ab5fSopenharmony_cicookBookTag[23] = '';
473af6ab5fSopenharmony_cicookBookTag[24] = '';
483af6ab5fSopenharmony_cicookBookTag[25] = 'Declaring fields in "constructor" is not supported (arkts-no-ctor-prop-decls)';
493af6ab5fSopenharmony_cicookBookTag[26] = '';
503af6ab5fSopenharmony_cicookBookTag[27] = 'Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)';
513af6ab5fSopenharmony_cicookBookTag[28] = 'Indexed access types are not supported (arkts-no-aliases-by-index)';
523af6ab5fSopenharmony_cicookBookTag[29] = 'Indexed access is not supported for fields (arkts-no-props-by-index)';
533af6ab5fSopenharmony_cicookBookTag[30] = 'Structural typing is not supported (arkts-no-structural-typing)';
543af6ab5fSopenharmony_cicookBookTag[31] = '';
553af6ab5fSopenharmony_cicookBookTag[32] = '';
563af6ab5fSopenharmony_cicookBookTag[33] = '';
573af6ab5fSopenharmony_cicookBookTag[34] = 'Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)';
583af6ab5fSopenharmony_cicookBookTag[35] = '';
593af6ab5fSopenharmony_cicookBookTag[36] = '';
603af6ab5fSopenharmony_cicookBookTag[37] = '';
613af6ab5fSopenharmony_cicookBookTag[38] =
623af6ab5fSopenharmony_ci  'Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)';
633af6ab5fSopenharmony_cicookBookTag[39] = '';
643af6ab5fSopenharmony_cicookBookTag[40] = 'Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)';
653af6ab5fSopenharmony_cicookBookTag[41] = '';
663af6ab5fSopenharmony_cicookBookTag[42] = '';
673af6ab5fSopenharmony_cicookBookTag[43] = 'Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)';
683af6ab5fSopenharmony_cicookBookTag[44] = '';
693af6ab5fSopenharmony_cicookBookTag[45] = '';
703af6ab5fSopenharmony_cicookBookTag[46] = 'Use arrow functions instead of function expressions (arkts-no-func-expressions)';
713af6ab5fSopenharmony_cicookBookTag[47] = '';
723af6ab5fSopenharmony_cicookBookTag[48] = '';
733af6ab5fSopenharmony_cicookBookTag[49] = '';
743af6ab5fSopenharmony_cicookBookTag[50] = 'Class literals are not supported (arkts-no-class-literals)';
753af6ab5fSopenharmony_cicookBookTag[51] = 'Classes cannot be specified in "implements" clause (arkts-implements-only-iface)';
763af6ab5fSopenharmony_cicookBookTag[52] = 'Reassigning object methods is not supported (arkts-no-method-reassignment)';
773af6ab5fSopenharmony_cicookBookTag[53] = 'Only "as T" syntax is supported for type casts (arkts-as-casts)';
783af6ab5fSopenharmony_cicookBookTag[54] = 'JSX expressions are not supported (arkts-no-jsx)';
793af6ab5fSopenharmony_cicookBookTag[55] = 'Unary operators "+", "-" and "~" work only on numbers (arkts-no-polymorphic-unops)';
803af6ab5fSopenharmony_cicookBookTag[56] = '';
813af6ab5fSopenharmony_cicookBookTag[57] = '';
823af6ab5fSopenharmony_cicookBookTag[58] = '';
833af6ab5fSopenharmony_cicookBookTag[59] = '"delete" operator is not supported (arkts-no-delete)';
843af6ab5fSopenharmony_cicookBookTag[60] = '"typeof" operator is allowed only in expression contexts (arkts-no-type-query)';
853af6ab5fSopenharmony_cicookBookTag[61] = '';
863af6ab5fSopenharmony_cicookBookTag[62] = '';
873af6ab5fSopenharmony_cicookBookTag[63] = '';
883af6ab5fSopenharmony_cicookBookTag[64] = '';
893af6ab5fSopenharmony_cicookBookTag[65] = '"instanceof" operator is partially supported (arkts-instanceof-ref-types)';
903af6ab5fSopenharmony_cicookBookTag[66] = '"in" operator is not supported (arkts-no-in)';
913af6ab5fSopenharmony_cicookBookTag[67] = '';
923af6ab5fSopenharmony_cicookBookTag[68] = '';
933af6ab5fSopenharmony_cicookBookTag[69] = 'Destructuring assignment is not supported (arkts-no-destruct-assignment)';
943af6ab5fSopenharmony_cicookBookTag[70] = '';
953af6ab5fSopenharmony_cicookBookTag[71] = 'The comma operator "," is supported only in "for" loops (arkts-no-comma-outside-loops)';
963af6ab5fSopenharmony_cicookBookTag[72] = '';
973af6ab5fSopenharmony_cicookBookTag[73] = '';
983af6ab5fSopenharmony_cicookBookTag[74] = 'Destructuring variable declarations are not supported (arkts-no-destruct-decls)';
993af6ab5fSopenharmony_cicookBookTag[75] = '';
1003af6ab5fSopenharmony_cicookBookTag[76] = '';
1013af6ab5fSopenharmony_cicookBookTag[77] = '';
1023af6ab5fSopenharmony_cicookBookTag[78] = '';
1033af6ab5fSopenharmony_cicookBookTag[79] = 'Type annotation in catch clause is not supported (arkts-no-types-in-catch)';
1043af6ab5fSopenharmony_cicookBookTag[80] = '"for .. in" is not supported (arkts-no-for-in)';
1053af6ab5fSopenharmony_cicookBookTag[81] = '';
1063af6ab5fSopenharmony_cicookBookTag[82] = '';
1073af6ab5fSopenharmony_cicookBookTag[83] = 'Mapped type expression is not supported (arkts-no-mapped-types)';
1083af6ab5fSopenharmony_cicookBookTag[84] = '"with" statement is not supported (arkts-no-with)';
1093af6ab5fSopenharmony_cicookBookTag[85] = '';
1103af6ab5fSopenharmony_cicookBookTag[86] = '';
1113af6ab5fSopenharmony_cicookBookTag[87] = '"throw" statements cannot accept values of arbitrary types (arkts-limited-throw)';
1123af6ab5fSopenharmony_cicookBookTag[88] = '';
1133af6ab5fSopenharmony_cicookBookTag[89] = '';
1143af6ab5fSopenharmony_cicookBookTag[90] = 'Function return type inference is limited (arkts-no-implicit-return-types)';
1153af6ab5fSopenharmony_cicookBookTag[91] = 'Destructuring parameter declarations are not supported (arkts-no-destruct-params)';
1163af6ab5fSopenharmony_cicookBookTag[92] = 'Nested functions are not supported (arkts-no-nested-funcs)';
1173af6ab5fSopenharmony_cicookBookTag[93] = 'Using "this" inside stand-alone functions is not supported (arkts-no-standalone-this)';
1183af6ab5fSopenharmony_cicookBookTag[94] = 'Generator functions are not supported (arkts-no-generators)';
1193af6ab5fSopenharmony_cicookBookTag[95] = '';
1203af6ab5fSopenharmony_cicookBookTag[96] = 'Type guarding is supported with "instanceof" and "as" (arkts-no-is)';
1213af6ab5fSopenharmony_cicookBookTag[97] = '';
1223af6ab5fSopenharmony_cicookBookTag[98] = '';
1233af6ab5fSopenharmony_cicookBookTag[99] =
1243af6ab5fSopenharmony_ci  'It is possible to spread only arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)';
1253af6ab5fSopenharmony_cicookBookTag[100] = '';
1263af6ab5fSopenharmony_cicookBookTag[101] = '';
1273af6ab5fSopenharmony_cicookBookTag[102] = 'Interface can not extend interfaces with the same method (arkts-no-extend-same-prop)';
1283af6ab5fSopenharmony_cicookBookTag[103] = 'Declaration merging is not supported (arkts-no-decl-merging)';
1293af6ab5fSopenharmony_cicookBookTag[104] = 'Interfaces cannot extend classes (arkts-extends-only-class)';
1303af6ab5fSopenharmony_cicookBookTag[105] = '';
1313af6ab5fSopenharmony_cicookBookTag[106] = 'Constructor function type is not supported (arkts-no-ctor-signatures-funcs)';
1323af6ab5fSopenharmony_cicookBookTag[107] = '';
1333af6ab5fSopenharmony_cicookBookTag[108] = '';
1343af6ab5fSopenharmony_cicookBookTag[109] = '';
1353af6ab5fSopenharmony_cicookBookTag[110] = '';
1363af6ab5fSopenharmony_cicookBookTag[111] =
1373af6ab5fSopenharmony_ci  'Enumeration members can be initialized only with compile time expressions of the same type (arkts-no-enum-mixed-types)';
1383af6ab5fSopenharmony_cicookBookTag[112] = '';
1393af6ab5fSopenharmony_cicookBookTag[113] = '"enum" declaration merging is not supported (arkts-no-enum-merging)';
1403af6ab5fSopenharmony_cicookBookTag[114] = 'Namespaces cannot be used as objects (arkts-no-ns-as-obj)';
1413af6ab5fSopenharmony_cicookBookTag[115] = '';
1423af6ab5fSopenharmony_cicookBookTag[116] =
1433af6ab5fSopenharmony_ci  'Non-declaration statements in namespaces are not supported (single semicolons are considered as empty non-declaration statements) (arkts-no-ns-statements)';
1443af6ab5fSopenharmony_cicookBookTag[117] = '';
1453af6ab5fSopenharmony_cicookBookTag[118] = '';
1463af6ab5fSopenharmony_cicookBookTag[119] = '';
1473af6ab5fSopenharmony_cicookBookTag[120] = '';
1483af6ab5fSopenharmony_cicookBookTag[121] = '"require" and "import" assignment are not supported (arkts-no-require)';
1493af6ab5fSopenharmony_cicookBookTag[122] = '';
1503af6ab5fSopenharmony_cicookBookTag[123] = '';
1513af6ab5fSopenharmony_cicookBookTag[124] = '';
1523af6ab5fSopenharmony_cicookBookTag[125] = '';
1533af6ab5fSopenharmony_cicookBookTag[126] = '"export = ..." assignment is not supported (arkts-no-export-assignment)';
1543af6ab5fSopenharmony_cicookBookTag[127] = '';
1553af6ab5fSopenharmony_cicookBookTag[128] = 'Ambient module declaration is not supported (arkts-no-ambient-decls)';
1563af6ab5fSopenharmony_cicookBookTag[129] = 'Wildcards in module names are not supported (arkts-no-module-wildcards)';
1573af6ab5fSopenharmony_cicookBookTag[130] = 'Universal module definitions (UMD) are not supported (arkts-no-umd)';
1583af6ab5fSopenharmony_cicookBookTag[131] = '';
1593af6ab5fSopenharmony_cicookBookTag[132] = '"new.target" is not supported (arkts-no-new-target)';
1603af6ab5fSopenharmony_cicookBookTag[133] = '';
1613af6ab5fSopenharmony_cicookBookTag[134] = 'Definite assignment assertions are not supported (arkts-no-definite-assignment)';
1623af6ab5fSopenharmony_cicookBookTag[135] = '';
1633af6ab5fSopenharmony_cicookBookTag[136] = 'Prototype assignment is not supported (arkts-no-prototype-assignment)';
1643af6ab5fSopenharmony_cicookBookTag[137] = '"globalThis" is not supported (arkts-no-globalthis)';
1653af6ab5fSopenharmony_cicookBookTag[138] = 'Some of utility types are not supported (arkts-no-utility-types)';
1663af6ab5fSopenharmony_cicookBookTag[139] = 'Declaring properties on functions is not supported (arkts-no-func-props)';
1673af6ab5fSopenharmony_cicookBookTag[140] = '"Function.bind" is not supported (arkts-no-func-bind)';
1683af6ab5fSopenharmony_cicookBookTag[141] = '';
1693af6ab5fSopenharmony_cicookBookTag[142] = '"as const" assertions are not supported (arkts-no-as-const)';
1703af6ab5fSopenharmony_cicookBookTag[143] = 'Import assertions are not supported (arkts-no-import-assertions)';
1713af6ab5fSopenharmony_cicookBookTag[144] = 'Usage of standard library is restricted (arkts-limited-stdlib)';
1723af6ab5fSopenharmony_cicookBookTag[145] = 'Strict type checking is enforced (arkts-strict-typing)';
1733af6ab5fSopenharmony_cicookBookTag[146] = 'Switching off type checks with in-place comments is not allowed (arkts-strict-typing-required)';
1743af6ab5fSopenharmony_cicookBookTag[147] = 'No dependencies on TypeScript code are currently allowed (arkts-no-ts-deps)';
1753af6ab5fSopenharmony_cicookBookTag[148] = '';
1763af6ab5fSopenharmony_cicookBookTag[149] = 'Classes cannot be used as objects (arkts-no-classes-as-obj)';
1773af6ab5fSopenharmony_cicookBookTag[150] = '"import" statements after other statements are not allowed (arkts-no-misplaced-imports)';
1783af6ab5fSopenharmony_cicookBookTag[151] = 'Usage of "ESObject" type is restricted (arkts-limited-esobj)';
1793af6ab5fSopenharmony_cicookBookTag[152] = '"Function.apply", "Function.call" are not supported (arkts-no-func-apply-call)';
1803af6ab5fSopenharmony_cicookBookTag[153] = 'The inheritance for "Sendable" classes is limited (arkts-sendable-class-inheritance)';
1813af6ab5fSopenharmony_cicookBookTag[154] =
1823af6ab5fSopenharmony_ci  'Properties in "Sendable" classes and interfaces must have a Sendable data type (arkts-sendable-prop-types)';
1833af6ab5fSopenharmony_cicookBookTag[155] =
1843af6ab5fSopenharmony_ci  'Definite assignment assertion in not allowed in "Sendable" classes (arkts-sendable-definite-assignment)';
1853af6ab5fSopenharmony_cicookBookTag[156] =
1863af6ab5fSopenharmony_ci  'Type arguments of generic "Sendable" type must be a "Sendable" data type (arkts-sendable-generic-types)';
1873af6ab5fSopenharmony_cicookBookTag[157] = 'Only imported variables can be captured by "Sendable" class (arkts-sendable-imported-variables)';
1883af6ab5fSopenharmony_cicookBookTag[158] = 'Only "@Sendable" decorator can be used on "Sendable" class (arkts-sendable-class-decorator)';
1893af6ab5fSopenharmony_cicookBookTag[159] =
1903af6ab5fSopenharmony_ci  'Objects of "Sendable" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)';
1913af6ab5fSopenharmony_cicookBookTag[160] =
1923af6ab5fSopenharmony_ci  'Computed property names are not allowed in "Sendable" classes and interfaces (arkts-sendable-computed-prop-name)';
1933af6ab5fSopenharmony_cicookBookTag[161] = 'Casting "Non-sendable" data to "Sendable" type is not allowed (arkts-sendable-as-expr)';
1943af6ab5fSopenharmony_cicookBookTag[162] =
1953af6ab5fSopenharmony_ci  'Importing a module for side-effects only is not supported in shared module (arkts-no-side-effects-imports)';
1963af6ab5fSopenharmony_cicookBookTag[163] = 'Only "Sendable" entities can be exported in shared module (arkts-shared-module-exports)';
1973af6ab5fSopenharmony_cicookBookTag[164] = '"export * from ..." is not allowed in shared module (arkts-shared-module-no-wildcard-export)';
1983af6ab5fSopenharmony_cicookBookTag[165] =
1993af6ab5fSopenharmony_ci  'Only "Sendable" classes and "Sendable" interfaces are allowed for importing from ets into ts file (arkts-no-ts-import-ets)';
2003af6ab5fSopenharmony_cicookBookTag[166] =
2013af6ab5fSopenharmony_ci  'In ts files, "Sendable" types cannot be used in implements and extends clauses (arkts-no-ts-sendable-type-inheritance)';
2023af6ab5fSopenharmony_cicookBookTag[167] =
2033af6ab5fSopenharmony_ci  'In sdk ts files, "Sendable" class and "Sendable" interface can not be exported (arkts-no-dts-sendable-type-export)';
2043af6ab5fSopenharmony_cicookBookTag[168] = 'In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)';
2053af6ab5fSopenharmony_cicookBookTag[169] =
2063af6ab5fSopenharmony_ci  'Namespace import are nbot allowed for importing from ets to ts file (arkts-no-namespace-import-in-ts-import-ets)';
2073af6ab5fSopenharmony_cicookBookTag[170] =
2083af6ab5fSopenharmony_ci  'Side effect import are not allowed for importing from ets to ts file (arkts-no-side-effect-import-in-ts-import-ets)';
2093af6ab5fSopenharmony_cicookBookTag[171] = 'Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)';
2103af6ab5fSopenharmony_cicookBookTag[172] =
2113af6ab5fSopenharmony_ci  'Only imported variables can be captured by "Sendable" function (arkts-sendable-function-imported-variables)';
2123af6ab5fSopenharmony_cicookBookTag[173] = 'Only "@Sendable" decorator can be used on "Sendable" function (arkts-sendable-function-decorator)';
2133af6ab5fSopenharmony_cicookBookTag[174] =
2143af6ab5fSopenharmony_ci  'Only "@Sendable" decorator can be used on "Sendable" typeAlias (arkts-sendable-typeAlias-decorator)';
2153af6ab5fSopenharmony_cicookBookTag[175] = 'Only "FunctionType" can declare "Sendable" typeAlias (arkts-sendable-typeAlias-declaration)';
2163af6ab5fSopenharmony_cicookBookTag[176] =
2173af6ab5fSopenharmony_ci  'Only "Sendable" function or "Sendable" typeAlias object can be assigned to "Sendable" typeAlias (arkts-sendable-function-assignment)';
2183af6ab5fSopenharmony_cicookBookTag[177] =
2193af6ab5fSopenharmony_ci  'When declaring "@Sendable" overloaded function, needs to add "@Sendable" decorator on each function (arkts-sendable-function-overload-decorator)';
2203af6ab5fSopenharmony_cicookBookTag[178] = 'The property of "Sendable" function is limited (arkts-sendable-function-property)';
2213af6ab5fSopenharmony_cicookBookTag[179] =
2223af6ab5fSopenharmony_ci  'Casting "Non-sendable" function to "Sendable" typeAlias is not allowed (arkts-sendable-function-as-expr)';
2233af6ab5fSopenharmony_cicookBookTag[180] =
2243af6ab5fSopenharmony_ci  'The "@Sendable" decorator can only be used on "class", "function", "typeAlias" (arkts-sendable-decorator-limited)';
2253af6ab5fSopenharmony_cicookBookTag[181] =
2263af6ab5fSopenharmony_ci  'The exported "Sendable" class or function cannot be captured by "Sendable" class or function in current file (arkts-sendable-closure-export)';
2273af6ab5fSopenharmony_cicookBookTag[182] =
2283af6ab5fSopenharmony_ci  'Sendable functions and sendable typealias are not available when compatibleSdkVersionStage is lowering than beta3 of API12 (arkts-sendable-beta-compatible)';
2293af6ab5fSopenharmony_cicookBookTag[183] = 'Object literal properties can only contain name-value pairs (arkts-obj-literal-props)';
2303af6ab5fSopenharmony_cicookBookTag[184] = 'Optional methods are not supported (arkts-optional-methods)';
2313af6ab5fSopenharmony_cicookBookTag[185] = 'syntax for import type is disabled (arkts-import-types)';
2323af6ab5fSopenharmony_cicookBookTag[186] = '"new" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-call)';
233