1# Copyright (c) 2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14warning: 15- name: SUGGEST_FINAL_MODIFIER_FOR_CLASS 16 id: 1 17 message: "Suggest 'final' modifier for class." 18 19- name: SUGGEST_FINAL_MODIFIER_FOR_METHOD 20 id: 2 21 message: "Suggest 'final' modifier for method." 22 23- name: PROHIBIT_TOP_LEVEL_STATEMENTS 24 id: 3 25 message: "Prohibit top-level statements." 26 27- name: BOOST_EQUALITY_STATEMENT 28 id: 4 29 message: "Boost Equality Statement. Change sides of binary expression." 30 31- name: DUPLICATE_EXPORT_ALIASES 32 id: 73 33 message: "Duplicated export aliases for '{}'." 34 35- name: REPLACE_ASYNC_FUNCTION_WITH_COROUTINE 36 id: 5 37 message: "Replace asynchronous function with coroutine." 38 39- name: REPLACE_LAMBDA_FUNCTION_WITH_REGULAR_FUNCTION 40 id: 6 41 message: "Replace the lambda function with a regular function." 42 43- name: IMPLICIT_BOXING_TO 44 id: 7 45 message: "Implicit Boxing to {}{}." 46 47- name : IMPLICIT_UNBOXING_TO 48 id: 8 49 message: "Implicit Unboxing to {}{}." 50 51- name : ANNOTATION_UNUSED_GENERIC_ALIAS_WARN 52 id: 9 53 message: "Type alias generic parameter '{}' is not used in type annotation" 54 55- name: DYNAMIC_PATHS_ABSOLUTE 56 id: 10 57 message: "Don't use absolute path '{}' as key in 'dynamicPaths'" 58 59- name: NO_OHMURL 60 id: 11 61 message: "'ohmUrl' for module '{}' wasn't specified" 62 63- name: DUPLICATE_SIGS 64 id: 12 65 message: "Detect duplicate signatures, use '{}{}' to replace" 66 67- name: EXTENSION_NONPUBLIC_COLLISION 68 id: 13 69 message: "The extension function '{}' has the same name with non-public method in class {}" 70 71- name: NULLISH_OPERAND 72 id: 14 73 message: "Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'." 74 75- name: INSTANCEOF_ERASED 76 id: 15 77 message: "Type parameter is erased from type '{}' when used in instanceof expression." 78 79- name: ASSIGN_TO_READONLY 80 id: 16 81 message: "Cannot assign to '{}' because it is a read-only property." 82 83- name: MAYBE_REASSIGNED 84 id: 17 85 message: "{} '{}' might already have been assigned." 86 87- name: PROP_MAYBE_UNINITIALIZED 88 id: 18 89 message: "Property '{}' might not have been initialized." 90 91- name: MAYBE_FALLTHROUGH 92 id: 20 93 message: "Possible fall-through into case" 94 95- name: FINALLY_CANT_COMPLETE 96 id: 21 97 message: "Finally clause cannot complete normally" 98 99- name: FUNCTION_ASM_SIG_COLLISION 100 id: 22 101 message: "Function {} with this assembly signature already declared." 102 103- name: GETTER_LOOP 104 id: 23 105 message: "Reading the value of the property inside its getter may lead to an endless loop." 106 107- name: SETTER_LOOP 108 id: 24 109 message: "Assigning new value to the property inside its setter may lead to an endless loop." 110 111- name: EXTENSION_MISMATCH 112 id: 25 113 message: "Not matching extensions! Sourcefile: {}, Manual(used): {}" 114 115- name: UNREACHABLE_STMT 116 id: 26 117 message: "Unreachable statement."