diff --git a/src/linter/messages.ts b/src/linter/messages.ts index 3929e2acd..2910d4ff5 100644 --- a/src/linter/messages.ts +++ b/src/linter/messages.ts @@ -1,16 +1,16 @@ // TODO: Migrate to enum instead of Object/Map // Currently, it's done this way to avoid pollution of the test snapshots const RULES = { - "ui5-linter-async-component-flags": "ui5-linter-async-component-flags", - "ui5-linter-no-deprecated-api": "ui5-linter-no-deprecated-api", - "ui5-linter-no-deprecated-parameter": "ui5-linter-no-deprecated-parameter", - "ui5-linter-no-deprecated-property": "ui5-linter-no-deprecated-property", - "ui5-linter-no-pseudo-modules": "ui5-linter-no-pseudo-modules", - "ui5-linter-no-globals": "ui5-linter-no-globals", - "ui5-linter-parsing-error": "ui5-linter-parsing-error", - "ui5-linter-no-deprecated-library": "ui5-linter-no-deprecated-library", - "ui5-linter-no-deprecated-component": "ui5-linter-no-deprecated-component", - "ui5-linter-csp-unsafe-inline-script": "ui5-linter-csp-unsafe-inline-script", + "async-component-flags": "async-component-flags", + "no-deprecated-api": "no-deprecated-api", + "no-deprecated-parameter": "no-deprecated-parameter", + "no-deprecated-property": "no-deprecated-property", + "no-pseudo-modules": "no-pseudo-modules", + "no-globals": "no-globals", + "parsing-error": "parsing-error", + "no-deprecated-library": "no-deprecated-library", + "no-deprecated-component": "no-deprecated-component", + "csp-unsafe-inline-script": "csp-unsafe-inline-script", } as const; export enum LintMessageSeverity { @@ -52,7 +52,7 @@ export const MESSAGE_INFO = { [MESSAGE.COMPONENT_MISSING_ASYNC_INTERFACE]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-async-component-flags"], + ruleId: RULES["async-component-flags"], message: () => `Component is not configured for asynchronous loading.`, @@ -64,7 +64,7 @@ export const MESSAGE_INFO = { [MESSAGE.COMPONENT_MISSING_MANIFEST_DECLARATION]: { severity: LintMessageSeverity.Warning, - ruleId: RULES["ui5-linter-async-component-flags"], + ruleId: RULES["async-component-flags"], message: () => `Component does not specify that it uses the descriptor via the manifest.json file`, @@ -76,7 +76,7 @@ export const MESSAGE_INFO = { [MESSAGE.COMPONENT_REDUNDANT_ASYNC_FLAG]: { severity: LintMessageSeverity.Warning, - ruleId: RULES["ui5-linter-async-component-flags"], + ruleId: RULES["async-component-flags"], message: ({asyncFlagLocation}: {asyncFlagLocation: string}) => `Component implements the sap.ui.core.IAsyncContentCreation interface. ` + @@ -87,7 +87,7 @@ export const MESSAGE_INFO = { [MESSAGE.CSP_UNSAFE_INLINE_SCRIPT]: { severity: LintMessageSeverity.Warning, - ruleId: RULES["ui5-linter-csp-unsafe-inline-script"], + ruleId: RULES["csp-unsafe-inline-script"], message: () => `Use of unsafe inline script`, details: () => `{@link topic:fe1a6dba940e479fb7c3bc753f92b28c Content Security Policy}`, @@ -95,7 +95,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_API_ACCESS]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: ({apiName}: {apiName: string}) => `Use of deprecated API '${apiName}'`, @@ -104,7 +104,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_CLASS]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: ({className}: {className: string}) => `Use of deprecated class '${className}'`, @@ -113,7 +113,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_COMPONENT]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-component"], + ruleId: RULES["no-deprecated-component"], message: ({componentName}: {componentName: string}) => `Use of deprecated component '${componentName}'`, @@ -122,7 +122,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_FUNCTION_CALL]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: ({functionName, additionalMessage}: {functionName: string; additionalMessage: string}) => `Call to deprecated function '${functionName}'${additionalMessage ? ` ${additionalMessage}` : ""}`, @@ -131,7 +131,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_LIBRARY]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-library"], + ruleId: RULES["no-deprecated-library"], message: ({libraryName}: {libraryName: string}) => `Use of deprecated library '${libraryName}'`, @@ -140,7 +140,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_MANIFEST_JS_RESOURCES]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: () => `Use of deprecated property 'sap.ui5/resources/js'`, @@ -150,7 +150,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_MODULE_IMPORT]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: ({moduleName}: {moduleName: string}) => `Import of deprecated module '${moduleName}'`, @@ -159,7 +159,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_PROPERTY_OF_CLASS]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: ({propertyName, className}: {propertyName: string; className: string}) => `Use of deprecated property '${propertyName}' of class '${className}'`, @@ -168,7 +168,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_PROPERTY]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-property"], + ruleId: RULES["no-deprecated-property"], message: ({propertyName}: {propertyName: string}) => `Use of deprecated property '${propertyName}'`, @@ -177,7 +177,7 @@ export const MESSAGE_INFO = { [MESSAGE.HTML_IN_XML]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: () => `Usage of native HTML in XML Views/Fragments is deprecated`, details: () => `{@link topic:be54950cae1041f59d4aa97a6bade2d8 Using Native HTML in XML Views (deprecated)}`, @@ -185,7 +185,7 @@ export const MESSAGE_INFO = { [MESSAGE.LIB_INIT_API_VERSION]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: ({libInitFunction}: {libInitFunction: string}) => `Call to ${libInitFunction}() must be declared with property {apiVersion: 2}`, @@ -194,7 +194,7 @@ export const MESSAGE_INFO = { [MESSAGE.NO_DIRECT_DATATYPE_ACCESS]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-pseudo-modules"], + ruleId: RULES["no-pseudo-modules"], message: ({moduleName}: {moduleName: string}) => `Deprecated access to DataType pseudo module '${moduleName}'`, @@ -204,7 +204,7 @@ export const MESSAGE_INFO = { [MESSAGE.NO_DIRECT_ENUM_ACCESS]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-pseudo-modules"], + ruleId: RULES["no-pseudo-modules"], message: ({moduleName}: {moduleName: string}) => `Deprecated access to enum pseudo module '${moduleName}'`, @@ -214,7 +214,7 @@ export const MESSAGE_INFO = { [MESSAGE.NO_GLOBALS]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-globals"], + ruleId: RULES["no-globals"], message: ({variableName, namespace}: {variableName: string; namespace: string}) => `Access of global variable '${variableName}' (${namespace})`, @@ -223,7 +223,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARTIALLY_DEPRECATED_PARAMETERS_GET]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: () => `Usage of deprecated variant of 'sap/ui/core/theming/Parameters.get'`, @@ -232,7 +232,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARTIALLY_DEPRECATED_CREATE_COMPONENT]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: () => `Usage of deprecated value for parameter 'async' of 'sap/ui/core/Component#createComponent'`, @@ -242,7 +242,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARTIALLY_DEPRECATED_ODATA_MODEL_V2_CREATE_ENTRY]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: () => `Usage of deprecated parameter 'batchGroupId' in 'sap/ui/model/odata/v2/ODataModel#createEntry'`, @@ -252,7 +252,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARTIALLY_DEPRECATED_ODATA_MODEL_V2_CREATE_ENTRY_PROPERTIES_ARRAY]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: () => `Usage of deprecated value for parameter 'properties' in 'sap/ui/model/odata/v2/ODataModel#createEntry'`, @@ -263,7 +263,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARTIALLY_DEPRECATED_JSON_MODEL_LOAD_DATA]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: ({paramName}: {paramName: string}) => `Usage of deprecated value for parameter '${paramName}' of 'sap/ui/model/json/JSONModel#loadData'`, @@ -274,7 +274,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARTIALLY_DEPRECATED_MOBILE_INIT]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: ({paramName}: {paramName: string}) => `Usage of deprecated value for parameter '${paramName}' of 'sap/ui/util/Mobile#init'`, @@ -285,7 +285,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARTIALLY_DEPRECATED_CORE_ROUTER]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: () => `Usage of deprecated value for parameter 'oConfig.async' of constructor 'sap/ui/core/Router'`, @@ -296,7 +296,7 @@ export const MESSAGE_INFO = { [MESSAGE.DEPRECATED_ODATA_MODEL_V4_SYNCHRONIZATION_MODE]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-parameter"], + ruleId: RULES["no-deprecated-parameter"], message: ({modelName}: {modelName?: string}) => `Usage of deprecated parameter 'synchronizationMode' ` + @@ -308,7 +308,7 @@ export const MESSAGE_INFO = { [MESSAGE.PARSING_ERROR]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-parsing-error"], + ruleId: RULES["parsing-error"], fatal: true, message: ({message}: {message: string}) => message, @@ -317,7 +317,7 @@ export const MESSAGE_INFO = { [MESSAGE.SVG_IN_XML]: { severity: LintMessageSeverity.Error, - ruleId: RULES["ui5-linter-no-deprecated-api"], + ruleId: RULES["no-deprecated-api"], message: () => `Usage of SVG in XML Views/Fragments is deprecated`, details: () => undefined, diff --git a/test/lib/formatter/json.ts b/test/lib/formatter/json.ts index cb144fe5e..c4d8f56f6 100644 --- a/test/lib/formatter/json.ts +++ b/test/lib/formatter/json.ts @@ -10,7 +10,7 @@ test.beforeEach((t) => { t.context.lintResults = [{ filePath: "", messages: [{ - ruleId: "ui5-linter-no-deprecated-api", + ruleId: "no-deprecated-api", severity: 2, line: 5, column: 1, diff --git a/test/lib/linter/YamlLinter.ts b/test/lib/linter/YamlLinter.ts index ff45035bd..41d9d468f 100644 --- a/test/lib/linter/YamlLinter.ts +++ b/test/lib/linter/YamlLinter.ts @@ -31,17 +31,17 @@ framework: t.is(messages.length, 3, "Detection of 3 deprecated libraries expected"); // Test each message - t.is(messages[0].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[0].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[0].message, `Use of deprecated library 'sap.ca.scfld.md'`, `Message is correct`); t.is(messages[0].column, 7, `Column is correct`); t.is(messages[0].line, 9, `Line is correct`); - t.is(messages[1].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[1].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[1].message, `Use of deprecated library 'sap.ca.ui'`, `Message is correct`); t.is(messages[1].column, 7, `Column is correct`); t.is(messages[1].line, 10, `Line is correct`); - t.is(messages[2].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[2].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[2].message, `Use of deprecated library 'sap.fe.common'`, `Message is correct`); t.is(messages[2].column, 7, `Column is correct`); t.is(messages[2].line, 11, `Line is correct`); @@ -90,32 +90,32 @@ framework: t.is(messages.length, 6, "Detection of 6 deprecated libraries expected"); // Test each message - t.is(messages[0].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[0].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[0].message, `Use of deprecated library 'sap.sac.grid'`, `Message is correct`); t.is(messages[0].column, 7, `Column is correct`); t.is(messages[0].line, 11, `Line is correct`); - t.is(messages[1].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[1].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[1].message, `Use of deprecated library 'sap.ui.commons'`, `Message is correct`); t.is(messages[1].column, 7, `Column is correct`); t.is(messages[1].line, 12, `Line is correct`); - t.is(messages[2].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[2].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[2].message, `Use of deprecated library 'sap.ui.suite'`, `Message is correct`); t.is(messages[2].column, 7, `Column is correct`); t.is(messages[2].line, 13, `Line is correct`); - t.is(messages[3].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[3].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[3].message, `Use of deprecated library 'sap.ca.scfld.md'`, `Message is correct`); t.is(messages[3].column, 7, `Column is correct`); t.is(messages[3].line, 23, `Line is correct`); - t.is(messages[4].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[4].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[4].message, `Use of deprecated library 'sap.ca.ui'`, `Message is correct`); t.is(messages[4].column, 7, `Column is correct`); t.is(messages[4].line, 24, `Line is correct`); - t.is(messages[5].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[5].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[5].message, `Use of deprecated library 'sap.fe.common'`, `Message is correct`); t.is(messages[5].column, 7, `Column is correct`); t.is(messages[5].line, 25, `Line is correct`); @@ -166,32 +166,32 @@ framework: t.is(messages.length, 6, "Detection of 6 deprecated libraries expected"); // Test each message - t.is(messages[0].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[0].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[0].message, `Use of deprecated library 'sap.sac.grid'`, `Message is correct`); t.is(messages[0].column, 7, `Column is correct`); t.is(messages[0].line, 11, `Line is correct`); - t.is(messages[1].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[1].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[1].message, `Use of deprecated library 'sap.ui.commons'`, `Message is correct`); t.is(messages[1].column, 7, `Column is correct`); t.is(messages[1].line, 12, `Line is correct`); - t.is(messages[2].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[2].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[2].message, `Use of deprecated library 'sap.ui.suite'`, `Message is correct`); t.is(messages[2].column, 7, `Column is correct`); t.is(messages[2].line, 13, `Line is correct`); - t.is(messages[3].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[3].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[3].message, `Use of deprecated library 'sap.ca.scfld.md'`, `Message is correct`); t.is(messages[3].column, 7, `Column is correct`); t.is(messages[3].line, 25, `Line is correct`); - t.is(messages[4].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[4].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[4].message, `Use of deprecated library 'sap.ca.ui'`, `Message is correct`); t.is(messages[4].column, 7, `Column is correct`); t.is(messages[4].line, 26, `Line is correct`); - t.is(messages[5].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[5].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[5].message, `Use of deprecated library 'sap.fe.common'`, `Message is correct`); t.is(messages[5].column, 7, `Column is correct`); t.is(messages[5].line, 27, `Line is correct`); @@ -240,32 +240,32 @@ framework: t.is(messages.length, 6, "Detection of 6 deprecated libraries expected"); // Test each message - t.is(messages[0].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[0].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[0].message, `Use of deprecated library 'sap.sac.grid'`, `Message is correct`); t.is(messages[0].column, 7, `Column is correct`); t.is(messages[0].line, 11, `Line is correct`); - t.is(messages[1].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[1].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[1].message, `Use of deprecated library 'sap.ui.commons'`, `Message is correct`); t.is(messages[1].column, 7, `Column is correct`); t.is(messages[1].line, 12, `Line is correct`); - t.is(messages[2].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[2].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[2].message, `Use of deprecated library 'sap.ui.suite'`, `Message is correct`); t.is(messages[2].column, 7, `Column is correct`); t.is(messages[2].line, 13, `Line is correct`); - t.is(messages[3].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[3].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[3].message, `Use of deprecated library 'sap.ca.scfld.md'`, `Message is correct`); t.is(messages[3].column, 7, `Column is correct`); t.is(messages[3].line, 23, `Line is correct`); - t.is(messages[4].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[4].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[4].message, `Use of deprecated library 'sap.ca.ui'`, `Message is correct`); t.is(messages[4].column, 7, `Column is correct`); t.is(messages[4].line, 24, `Line is correct`); - t.is(messages[5].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[5].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[5].message, `Use of deprecated library 'sap.fe.common'`, `Message is correct`); t.is(messages[5].column, 7, `Column is correct`); t.is(messages[5].line, 25, `Line is correct`); @@ -313,32 +313,32 @@ framework: t.is(messages.length, 6, "Detection of 6 deprecated libraries expected"); // Test each message - t.is(messages[0].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[0].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[0].message, `Use of deprecated library 'sap.sac.grid'`, `Message is correct`); t.is(messages[0].column, 7, `Column is correct`); t.is(messages[0].line, 10, `Line is correct`); - t.is(messages[1].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[1].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[1].message, `Use of deprecated library 'sap.ui.commons'`, `Message is correct`); t.is(messages[1].column, 7, `Column is correct`); t.is(messages[1].line, 11, `Line is correct`); - t.is(messages[2].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[2].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[2].message, `Use of deprecated library 'sap.ui.suite'`, `Message is correct`); t.is(messages[2].column, 7, `Column is correct`); t.is(messages[2].line, 12, `Line is correct`); - t.is(messages[3].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[3].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[3].message, `Use of deprecated library 'sap.ca.scfld.md'`, `Message is correct`); t.is(messages[3].column, 7, `Column is correct`); t.is(messages[3].line, 22, `Line is correct`); - t.is(messages[4].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[4].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[4].message, `Use of deprecated library 'sap.ca.ui'`, `Message is correct`); t.is(messages[4].column, 7, `Column is correct`); t.is(messages[4].line, 23, `Line is correct`); - t.is(messages[5].ruleId, "ui5-linter-no-deprecated-library", `RuleId is correct`); + t.is(messages[5].ruleId, "no-deprecated-library", `RuleId is correct`); t.is(messages[5].message, `Use of deprecated library 'sap.fe.common'`, `Message is correct`); t.is(messages[5].column, 7, `Column is correct`); t.is(messages[5].line, 24, `Line is correct`); diff --git a/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md b/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md index bdeaa9ddf..177d9246b 100644 --- a/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md +++ b/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md @@ -170,7 +170,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component is not configured for asynchronous loading.', messageDetails: 'Use Asynchronous Loading (https://ui5.sap.com/#/topic/676b636446c94eada183b1218a824717). Implement sap.ui.core.IAsyncContentCreation interface in Component.js. Alternatively, set the "async" flag to "true" in "sap.ui5/routing/config" and "sap.ui5/rootView" in the component manifest.', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 2, }, ], @@ -202,7 +202,7 @@ Generated by [AVA](https://avajs.dev). line: 18, message: 'Component implements the sap.ui.core.IAsyncContentCreation interface. The redundant "async" flag at "/sap.ui5/rootView/async" should be removed from the component manifest', messageDetails: 'sap.ui.core.IAsyncContentCreation (https://ui5.sap.com/1.120/#/api/sap.ui.core.IAsyncContentCreation)', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, { @@ -210,7 +210,7 @@ Generated by [AVA](https://avajs.dev). line: 29, message: 'Component implements the sap.ui.core.IAsyncContentCreation interface. The redundant "async" flag at "/sap.ui5/routing/config/async" should be removed from the component manifest', messageDetails: 'sap.ui.core.IAsyncContentCreation (https://ui5.sap.com/1.120/#/api/sap.ui.core.IAsyncContentCreation)', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, ], @@ -234,7 +234,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component is not configured for asynchronous loading.', messageDetails: 'Use Asynchronous Loading (https://ui5.sap.com/#/topic/676b636446c94eada183b1218a824717). Implement sap.ui.core.IAsyncContentCreation interface in Component.js. Alternatively, set the "async" flag to "true" in "sap.ui5/routing/config" and "sap.ui5/rootView" in the component manifest.', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 2, }, ], @@ -258,7 +258,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component implements the sap.ui.core.IAsyncContentCreation interface. The redundant "async" flag at "/sap.ui5/rootView/async" should be removed from the component manifest', messageDetails: 'sap.ui.core.IAsyncContentCreation (https://ui5.sap.com/1.120/#/api/sap.ui.core.IAsyncContentCreation)', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, { @@ -266,7 +266,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component implements the sap.ui.core.IAsyncContentCreation interface. The redundant "async" flag at "/sap.ui5/routing/config/async" should be removed from the component manifest', messageDetails: 'sap.ui.core.IAsyncContentCreation (https://ui5.sap.com/1.120/#/api/sap.ui.core.IAsyncContentCreation)', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, ], @@ -290,7 +290,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component implements the sap.ui.core.IAsyncContentCreation interface. The redundant "async" flag at "/sap.ui5/rootView/async" should be removed from the component manifest', messageDetails: 'sap.ui.core.IAsyncContentCreation (https://ui5.sap.com/1.120/#/api/sap.ui.core.IAsyncContentCreation)', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, ], @@ -314,7 +314,7 @@ Generated by [AVA](https://avajs.dev). line: 7, message: 'Component does not specify that it uses the descriptor via the manifest.json file', messageDetails: 'A manifest.json has been found in the same directory as the component. Although it will be used at runtime automatically, this should still be expressed in the metadata of the component class (https://ui5.sap.com/#/topic/0187ea5e2eff4166b0453b9dcc8fc64f).', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, ], @@ -331,7 +331,7 @@ Generated by [AVA](https://avajs.dev). line: 19, message: 'Component implements the sap.ui.core.IAsyncContentCreation interface. The redundant "async" flag at "/sap.ui5/rootView/async" should be removed from the component manifest', messageDetails: 'sap.ui.core.IAsyncContentCreation (https://ui5.sap.com/1.120/#/api/sap.ui.core.IAsyncContentCreation)', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, ], @@ -355,7 +355,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component is not configured for asynchronous loading.', messageDetails: 'Use Asynchronous Loading (https://ui5.sap.com/#/topic/676b636446c94eada183b1218a824717). Implement sap.ui.core.IAsyncContentCreation interface in Component.js. Alternatively, set the "async" flag to "true" in "sap.ui5/rootView" in the component manifest.', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 2, }, ], @@ -379,7 +379,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component is not configured for asynchronous loading.', messageDetails: 'Use Asynchronous Loading (https://ui5.sap.com/#/topic/676b636446c94eada183b1218a824717). Implement sap.ui.core.IAsyncContentCreation interface in Component.js. Alternatively, set the "async" flag to "true" in "sap.ui5/routing/config" in the component manifest.', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 2, }, ], @@ -403,7 +403,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Component is not configured for asynchronous loading.', messageDetails: 'Use Asynchronous Loading (https://ui5.sap.com/#/topic/676b636446c94eada183b1218a824717). Implement sap.ui.core.IAsyncContentCreation interface in Component.js. Alternatively, set the "async" flag to "true" in "sap.ui5/routing/config" and "sap.ui5/rootView" in the component manifest.', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 2, }, ], @@ -427,7 +427,7 @@ Generated by [AVA](https://avajs.dev). line: 5, message: 'Component is not configured for asynchronous loading.', messageDetails: 'Use Asynchronous Loading (https://ui5.sap.com/#/topic/676b636446c94eada183b1218a824717). Implement sap.ui.core.IAsyncContentCreation interface in Component.js. Alternatively, set the "async" flag to "true" in "sap.ui5/routing/config" and "sap.ui5/rootView" in the component manifest.', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 2, }, ], @@ -451,7 +451,7 @@ Generated by [AVA](https://avajs.dev). line: 5, message: 'Component does not specify that it uses the descriptor via the manifest.json file', messageDetails: 'A manifest.json has been found in the same directory as the component. Although it will be used at runtime automatically, this should still be expressed in the metadata of the component class (https://ui5.sap.com/#/topic/0187ea5e2eff4166b0453b9dcc8fc64f).', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 1, }, { @@ -459,7 +459,7 @@ Generated by [AVA](https://avajs.dev). line: 5, message: 'Component is not configured for asynchronous loading.', messageDetails: 'Use Asynchronous Loading (https://ui5.sap.com/#/topic/676b636446c94eada183b1218a824717). Implement sap.ui.core.IAsyncContentCreation interface in Component.ts. Alternatively, set the "async" flag to "true" in "sap.ui5/routing/config" and "sap.ui5/rootView" in the component manifest.', - ruleId: 'ui5-linter-async-component-flags', + ruleId: 'async-component-flags', severity: 2, }, ], diff --git a/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.snap b/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.snap index aa35db382..7cdf552e4 100644 Binary files a/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.snap and b/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.snap differ diff --git a/test/lib/linter/rules/snapshots/CSPCompliance.ts.md b/test/lib/linter/rules/snapshots/CSPCompliance.ts.md index 079edeee5..ea5b0a058 100644 --- a/test/lib/linter/rules/snapshots/CSPCompliance.ts.md +++ b/test/lib/linter/rules/snapshots/CSPCompliance.ts.md @@ -20,7 +20,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of unsafe inline script', messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', - ruleId: 'ui5-linter-csp-unsafe-inline-script', + ruleId: 'csp-unsafe-inline-script', severity: 1, }, { @@ -28,7 +28,7 @@ Generated by [AVA](https://avajs.dev). line: 17, message: 'Use of unsafe inline script', messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', - ruleId: 'ui5-linter-csp-unsafe-inline-script', + ruleId: 'csp-unsafe-inline-script', severity: 1, }, { @@ -36,7 +36,7 @@ Generated by [AVA](https://avajs.dev). line: 25, message: 'Use of unsafe inline script', messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', - ruleId: 'ui5-linter-csp-unsafe-inline-script', + ruleId: 'csp-unsafe-inline-script', severity: 1, }, { @@ -44,7 +44,7 @@ Generated by [AVA](https://avajs.dev). line: 31, message: 'Use of unsafe inline script', messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', - ruleId: 'ui5-linter-csp-unsafe-inline-script', + ruleId: 'csp-unsafe-inline-script', severity: 1, }, { @@ -52,7 +52,7 @@ Generated by [AVA](https://avajs.dev). line: 47, message: 'Use of unsafe inline script', messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', - ruleId: 'ui5-linter-csp-unsafe-inline-script', + ruleId: 'csp-unsafe-inline-script', severity: 1, }, { @@ -60,7 +60,7 @@ Generated by [AVA](https://avajs.dev). line: 55, message: 'Use of unsafe inline script', messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', - ruleId: 'ui5-linter-csp-unsafe-inline-script', + ruleId: 'csp-unsafe-inline-script', severity: 1, }, ], diff --git a/test/lib/linter/rules/snapshots/CSPCompliance.ts.snap b/test/lib/linter/rules/snapshots/CSPCompliance.ts.snap index 4466da097..8688a09df 100644 Binary files a/test/lib/linter/rules/snapshots/CSPCompliance.ts.snap and b/test/lib/linter/rules/snapshots/CSPCompliance.ts.snap differ diff --git a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md index 1ed24a59f..f8eebce5c 100644 --- a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md +++ b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md @@ -20,7 +20,7 @@ Generated by [AVA](https://avajs.dev). line: 3, message: 'Call to deprecated function \'control\' of module \'jQuery\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -28,7 +28,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Call to deprecated function \'control\' of module \'jQuery\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -52,7 +52,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Import of deprecated module \'sap/ui/model/odata/ODataModel\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -76,7 +76,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Import of deprecated module \'sap/m/DateTimeInput\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -84,7 +84,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Import of deprecated module \'sap/base/util/includes\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -92,7 +92,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Import of deprecated module \'sap/ui/generic/app/navigation/service/NavigationHandler\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -100,7 +100,7 @@ Generated by [AVA](https://avajs.dev). line: 3, message: 'Import of deprecated module \'sap/ui/core/Configuration\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -108,7 +108,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -116,7 +116,7 @@ Generated by [AVA](https://avajs.dev). line: 10, message: 'Use of deprecated property \'tap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -124,7 +124,7 @@ Generated by [AVA](https://avajs.dev). line: 13, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -132,7 +132,7 @@ Generated by [AVA](https://avajs.dev). line: 18, message: 'Use of deprecated property \'plugins\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -140,7 +140,7 @@ Generated by [AVA](https://avajs.dev). line: 21, message: 'Use of deprecated property \'groupBy\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -148,7 +148,7 @@ Generated by [AVA](https://avajs.dev). line: 24, message: 'Call to deprecated function \'includes\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -156,7 +156,7 @@ Generated by [AVA](https://avajs.dev). line: 27, message: 'Call to deprecated function \'getIncludesFunction()\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -164,7 +164,7 @@ Generated by [AVA](https://avajs.dev). line: 29, message: 'Call to deprecated function \'getCompatibilityVersion\' of class \'Configuration\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -172,7 +172,7 @@ Generated by [AVA](https://avajs.dev). line: 30, message: 'Call to deprecated function \'getCompatibilityVersion\' of class \'Configuration\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -180,7 +180,7 @@ Generated by [AVA](https://avajs.dev). line: 32, message: 'Use of deprecated property \'webview\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -188,7 +188,7 @@ Generated by [AVA](https://avajs.dev). line: 33, message: 'Use of deprecated property \'webview\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -196,7 +196,7 @@ Generated by [AVA](https://avajs.dev). line: 35, message: 'Use of deprecated property \'AnimationMode\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -204,7 +204,7 @@ Generated by [AVA](https://avajs.dev). line: 37, message: 'Use of deprecated property \'MessageType\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -212,7 +212,7 @@ Generated by [AVA](https://avajs.dev). line: 39, message: 'Use of deprecated API \'MessageType\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -220,7 +220,7 @@ Generated by [AVA](https://avajs.dev). line: 40, message: 'Use of deprecated API \'MessageType\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -228,7 +228,7 @@ Generated by [AVA](https://avajs.dev). line: 43, message: 'Use of deprecated API \'mt\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -236,7 +236,7 @@ Generated by [AVA](https://avajs.dev). line: 44, message: 'Use of deprecated API \'MessageType\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -244,7 +244,7 @@ Generated by [AVA](https://avajs.dev). line: 47, message: 'Use of deprecated property \'Date\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -252,7 +252,7 @@ Generated by [AVA](https://avajs.dev). line: 50, message: 'Call to deprecated function \'storeInnerAppState\' of class \'NavigationHandler\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -276,7 +276,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Import of deprecated module \'sap/m/DateTimeInput\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -284,7 +284,7 @@ Generated by [AVA](https://avajs.dev). line: 3, message: 'Import of deprecated module \'sap/base/util/includes\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -292,7 +292,7 @@ Generated by [AVA](https://avajs.dev). line: 5, message: 'Use of deprecated API \'MessageType\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -300,7 +300,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Import of deprecated module \'sap/ui/generic/app/navigation/service/NavigationHandler\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -308,7 +308,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Import of deprecated module \'sap/ui/core/Configuration\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -316,7 +316,7 @@ Generated by [AVA](https://avajs.dev). line: 15, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -324,7 +324,7 @@ Generated by [AVA](https://avajs.dev). line: 16, message: 'Use of deprecated property \'tap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -332,7 +332,7 @@ Generated by [AVA](https://avajs.dev). line: 19, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -340,7 +340,7 @@ Generated by [AVA](https://avajs.dev). line: 24, message: 'Use of deprecated property \'plugins\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -348,7 +348,7 @@ Generated by [AVA](https://avajs.dev). line: 27, message: 'Use of deprecated property \'groupBy\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -356,7 +356,7 @@ Generated by [AVA](https://avajs.dev). line: 30, message: 'Call to deprecated function \'includes\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -364,7 +364,7 @@ Generated by [AVA](https://avajs.dev). line: 32, message: 'Call to deprecated function \'getCompatibilityVersion\' of class \'Configuration\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -372,7 +372,7 @@ Generated by [AVA](https://avajs.dev). line: 33, message: 'Call to deprecated function \'getCompatibilityVersion\' of class \'Configuration\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -380,7 +380,7 @@ Generated by [AVA](https://avajs.dev). line: 35, message: 'Use of deprecated property \'webview\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -388,7 +388,7 @@ Generated by [AVA](https://avajs.dev). line: 36, message: 'Use of deprecated property \'webview\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -396,7 +396,7 @@ Generated by [AVA](https://avajs.dev). line: 38, message: 'Use of deprecated property \'AnimationMode\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -404,7 +404,7 @@ Generated by [AVA](https://avajs.dev). line: 42, message: 'Use of deprecated property \'Date\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -412,7 +412,7 @@ Generated by [AVA](https://avajs.dev). line: 45, message: 'Call to deprecated function \'storeInnerAppState\' of class \'NavigationHandler\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -451,7 +451,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Usage of deprecated variant of \'sap/ui/core/theming/Parameters.get\'', messageDetails: 'Parameters.get (https://ui5.sap.com/1.120/#/api/sap.ui.core.theming.Parameters%23methods/sap.ui.core.theming.Parameters.get)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -459,7 +459,7 @@ Generated by [AVA](https://avajs.dev). line: 12, message: 'Usage of deprecated variant of \'sap/ui/core/theming/Parameters.get\'', messageDetails: 'Parameters.get (https://ui5.sap.com/1.120/#/api/sap.ui.core.theming.Parameters%23methods/sap.ui.core.theming.Parameters.get)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -467,7 +467,7 @@ Generated by [AVA](https://avajs.dev). line: 13, message: 'Usage of deprecated variant of \'sap/ui/core/theming/Parameters.get\'', messageDetails: 'Parameters.get (https://ui5.sap.com/1.120/#/api/sap.ui.core.theming.Parameters%23methods/sap.ui.core.theming.Parameters.get)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -475,7 +475,7 @@ Generated by [AVA](https://avajs.dev). line: 22, message: 'Usage of deprecated variant of \'sap/ui/core/theming/Parameters.get\'', messageDetails: 'Parameters.get (https://ui5.sap.com/1.120/#/api/sap.ui.core.theming.Parameters%23methods/sap.ui.core.theming.Parameters.get)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -483,7 +483,7 @@ Generated by [AVA](https://avajs.dev). line: 25, message: 'Usage of deprecated value for parameter \'bAsync\' of \'sap/ui/model/json/JSONModel#loadData\'', messageDetails: 'Parameter \'bAsync\' must be either omitted or set to true. See API reference (https://ui5.sap.com/1.120/#/api/sap.ui.model.json.JSONModel%23methods/loadData)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -491,7 +491,7 @@ Generated by [AVA](https://avajs.dev). line: 26, message: 'Usage of deprecated value for parameter \'bCache\' of \'sap/ui/model/json/JSONModel#loadData\'', messageDetails: 'Parameter \'bCache\' must be either omitted or set to true. See API reference (https://ui5.sap.com/1.120/#/api/sap.ui.model.json.JSONModel%23methods/loadData)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -499,7 +499,7 @@ Generated by [AVA](https://avajs.dev). line: 29, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\'', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -507,7 +507,7 @@ Generated by [AVA](https://avajs.dev). line: 32, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\'', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -515,7 +515,7 @@ Generated by [AVA](https://avajs.dev). line: 40, message: 'Usage of deprecated parameter \'batchGroupId\' in \'sap/ui/model/odata/v2/ODataModel#createEntry\'', messageDetails: 'Use parameter \'groupId\' instead. See API reference (https://ui5.sap.com/1.120/#/api/sap.ui.model.odata.v2.ODataModel%23methods/createEntry)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -523,7 +523,7 @@ Generated by [AVA](https://avajs.dev). line: 41, message: 'Usage of deprecated value for parameter \'properties\' in \'sap/ui/model/odata/v2/ODataModel#createEntry\'', messageDetails: 'Passing a list of property names is deprecated. Pass the initial values as an object instead. See API reference (https://ui5.sap.com/1.120/#/api/sap.ui.model.odata.v2.ODataModel%23methods/createEntry)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -531,7 +531,7 @@ Generated by [AVA](https://avajs.dev). line: 53, message: 'Usage of deprecated value for parameter \'async\' of \'sap/ui/core/Component#createComponent\'', messageDetails: 'Property \'async\' must be either omitted or set to true. See API reference (https://ui5.sap.com/1.120/#/api/sap.ui.core.Component%23methods/createComponent)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -539,7 +539,7 @@ Generated by [AVA](https://avajs.dev). line: 68, message: 'Usage of deprecated value for parameter \'oConfig.async\' of constructor \'sap/ui/core/Router\'', messageDetails: 'Parameter \'oConfig.async\' must be set to true. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/core/routing/Router#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -547,7 +547,7 @@ Generated by [AVA](https://avajs.dev). line: 69, message: 'Usage of deprecated value for parameter \'oConfig.async\' of constructor \'sap/ui/core/Router\'', messageDetails: 'Parameter \'oConfig.async\' must be set to true. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/core/routing/Router#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -555,7 +555,7 @@ Generated by [AVA](https://avajs.dev). line: 73, message: 'Usage of deprecated value for parameter \'homeIcon\' of \'sap/ui/util/Mobile#init\'', messageDetails: 'Parameter \'homeIcon\' must be either omitted or set to true. See API reference (https://ui5.sap.com/1.120/#/api/sap.ui.util.Mobile%23methods/init)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -563,7 +563,7 @@ Generated by [AVA](https://avajs.dev). line: 74, message: 'Usage of deprecated value for parameter \'homeIconPrecomposed\' of \'sap/ui/util/Mobile#init\'', messageDetails: 'Parameter \'homeIconPrecomposed\' must be either omitted or set to true. See API reference (https://ui5.sap.com/1.120/#/api/sap.ui.util.Mobile%23methods/init)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, ], @@ -587,7 +587,7 @@ Generated by [AVA](https://avajs.dev). line: 10, message: 'Call to deprecated function \'setVisibleRowCount\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -611,7 +611,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Import of deprecated module \'sap/m/DateTimeInput\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -619,7 +619,7 @@ Generated by [AVA](https://avajs.dev). line: 8, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -627,7 +627,7 @@ Generated by [AVA](https://avajs.dev). line: 10, message: 'Use of deprecated property \'groupBy\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -635,7 +635,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Use of deprecated property \'plugins\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -643,7 +643,7 @@ Generated by [AVA](https://avajs.dev). line: 17, message: 'Use of deprecated property \'tap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -651,7 +651,7 @@ Generated by [AVA](https://avajs.dev). line: 17, message: 'Use of deprecated property \'buttons\' of class \'SegmentedButton\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -675,7 +675,7 @@ Generated by [AVA](https://avajs.dev). line: 7, message: 'Import of deprecated module \'sap/m/DateTimeInput\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -683,7 +683,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -691,7 +691,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Use of deprecated property \'groupBy\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -699,7 +699,7 @@ Generated by [AVA](https://avajs.dev). line: 12, message: 'Use of deprecated property \'plugins\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -707,7 +707,7 @@ Generated by [AVA](https://avajs.dev). line: 18, message: 'Use of deprecated property \'tap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -715,7 +715,7 @@ Generated by [AVA](https://avajs.dev). line: 18, message: 'Use of deprecated property \'buttons\' of class \'SegmentedButton\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -739,28 +739,28 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Usage of native HTML in XML Views/Fragments is deprecated', messageDetails: 'Using Native HTML in XML Views (deprecated) (https://ui5.sap.com/#/topic/be54950cae1041f59d4aa97a6bade2d8)', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 1, line: 8, message: 'Usage of SVG in XML Views/Fragments is deprecated', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 2, line: 9, message: 'Usage of SVG in XML Views/Fragments is deprecated', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 3, line: 10, message: 'Usage of SVG in XML Views/Fragments is deprecated', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -784,7 +784,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Import of deprecated module \'sap/ui/core/Message\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -808,7 +808,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Import of deprecated module \'sap/ui/core/Message\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -816,7 +816,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Import of deprecated module \'sap/ui/model/odata/ODataModel\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -840,7 +840,7 @@ Generated by [AVA](https://avajs.dev). line: 7, message: 'Import of deprecated module \'sap/m/DateTimeInput\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -848,7 +848,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -856,7 +856,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Use of deprecated property \'groupBy\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -864,7 +864,7 @@ Generated by [AVA](https://avajs.dev). line: 12, message: 'Use of deprecated property \'plugins\' of class \'Table\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -872,7 +872,7 @@ Generated by [AVA](https://avajs.dev). line: 18, message: 'Use of deprecated property \'tap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -880,7 +880,7 @@ Generated by [AVA](https://avajs.dev). line: 18, message: 'Use of deprecated property \'buttons\' of class \'SegmentedButton\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -904,7 +904,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Use of deprecated property \'device\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -912,7 +912,7 @@ Generated by [AVA](https://avajs.dev). line: 3, message: 'Use of deprecated property \'os\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, { @@ -920,7 +920,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Use of deprecated property \'os\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-property', + ruleId: 'no-deprecated-property', severity: 2, }, ], @@ -963,7 +963,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Call to deprecated function \'control\' of module \'JQuery\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1042,7 +1042,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Use of deprecated API \'jQuery.sap.properties\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1050,7 +1050,7 @@ Generated by [AVA](https://avajs.dev). line: 5, message: 'Use of deprecated API \'jQuery.sap\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1058,7 +1058,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Use of deprecated API \'jQuery.sap\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1066,7 +1066,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of deprecated API \'importedJQuery.sap.properties\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1074,7 +1074,7 @@ Generated by [AVA](https://avajs.dev). line: 10, message: 'Use of deprecated API \'jQuery.sap\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1082,7 +1082,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Use of deprecated API \'jQuery.sap\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1090,7 +1090,7 @@ Generated by [AVA](https://avajs.dev). line: 14, message: 'Use of deprecated API \'importedJQuerySapProperties.sap.properties\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1098,7 +1098,7 @@ Generated by [AVA](https://avajs.dev). line: 15, message: 'Use of deprecated API \'jQuery.sap\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1106,7 +1106,7 @@ Generated by [AVA](https://avajs.dev). line: 16, message: 'Use of deprecated API \'jQuery.sap\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1130,7 +1130,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1138,7 +1138,7 @@ Generated by [AVA](https://avajs.dev). line: 10, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1146,7 +1146,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1154,63 +1154,63 @@ Generated by [AVA](https://avajs.dev). line: 14, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { column: 4, line: 17, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 18, message: 'Use of deprecated library \'sap.ui.suite\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 19, message: 'Use of deprecated library \'sap.ui.ux3\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 20, message: 'Use of deprecated library \'sap.ui.vtm\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 21, message: 'Use of deprecated library \'sap.uiext.inbox\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 22, message: 'Use of deprecated library \'sap.webanalytics.core\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 23, message: 'Use of deprecated library \'sap.zen.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 24, message: 'Use of deprecated library \'sap.zen.crosstab\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { @@ -1218,7 +1218,7 @@ Generated by [AVA](https://avajs.dev). line: 28, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1226,7 +1226,7 @@ Generated by [AVA](https://avajs.dev). line: 31, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1234,7 +1234,7 @@ Generated by [AVA](https://avajs.dev). line: 34, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1242,63 +1242,63 @@ Generated by [AVA](https://avajs.dev). line: 37, message: 'Call to Library.init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { column: 4, line: 39, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 40, message: 'Use of deprecated library \'sap.ui.suite\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 41, message: 'Use of deprecated library \'sap.ui.ux3\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 42, message: 'Use of deprecated library \'sap.ui.vtm\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 43, message: 'Use of deprecated library \'sap.uiext.inbox\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 44, message: 'Use of deprecated library \'sap.webanalytics.core\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 45, message: 'Use of deprecated library \'sap.zen.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 46, message: 'Use of deprecated library \'sap.zen.crosstab\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { @@ -1306,63 +1306,63 @@ Generated by [AVA](https://avajs.dev). line: 52, message: 'Call to LibInit() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { column: 4, line: 54, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 55, message: 'Use of deprecated library \'sap.ui.suite\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 56, message: 'Use of deprecated library \'sap.ui.ux3\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 57, message: 'Use of deprecated library \'sap.ui.vtm\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 58, message: 'Use of deprecated library \'sap.uiext.inbox\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 59, message: 'Use of deprecated library \'sap.webanalytics.core\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 60, message: 'Use of deprecated library \'sap.zen.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 61, message: 'Use of deprecated library \'sap.zen.crosstab\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { @@ -1370,63 +1370,63 @@ Generated by [AVA](https://avajs.dev). line: 67, message: 'Call to init() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { column: 4, line: 69, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 70, message: 'Use of deprecated library \'sap.ui.suite\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 71, message: 'Use of deprecated library \'sap.ui.ux3\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 72, message: 'Use of deprecated library \'sap.ui.vtm\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 73, message: 'Use of deprecated library \'sap.uiext.inbox\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 74, message: 'Use of deprecated library \'sap.webanalytics.core\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 75, message: 'Use of deprecated library \'sap.zen.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 76, message: 'Use of deprecated library \'sap.zen.crosstab\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { @@ -1434,63 +1434,63 @@ Generated by [AVA](https://avajs.dev). line: 82, message: 'Call to intRenames() must be declared with property {apiVersion: 2}', messageDetails: 'Lib.init (https://ui5.sap.com/1.120/#/api/sap.ui.core.Lib)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { column: 4, line: 84, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 85, message: 'Use of deprecated library \'sap.ui.suite\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 86, message: 'Use of deprecated library \'sap.ui.ux3\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 87, message: 'Use of deprecated library \'sap.ui.vtm\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 88, message: 'Use of deprecated library \'sap.uiext.inbox\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 89, message: 'Use of deprecated library \'sap.webanalytics.core\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 90, message: 'Use of deprecated library \'sap.zen.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 91, message: 'Use of deprecated library \'sap.zen.crosstab\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], @@ -1528,133 +1528,133 @@ Generated by [AVA](https://avajs.dev). column: 17, line: 47, message: 'Use of deprecated library \'sap.ca.scfld.md\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 48, message: 'Use of deprecated library \'sap.ca.ui\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 49, message: 'Use of deprecated library \'sap.fe.common\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 50, message: 'Use of deprecated library \'sap.fe.plugins\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 51, message: 'Use of deprecated library \'sap.fe.semantics\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 52, message: 'Use of deprecated library \'sap.landvisz\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 53, message: 'Use of deprecated library \'sap.makit\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 54, message: 'Use of deprecated library \'sap.me\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 55, message: 'Use of deprecated library \'sap.sac.grid\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 56, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 57, message: 'Use of deprecated library \'sap.ui.suite\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 58, message: 'Use of deprecated library \'sap.ui.ux3\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 59, message: 'Use of deprecated library \'sap.ui.vtm\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 60, message: 'Use of deprecated library \'sap.uiext.inbox\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 61, message: 'Use of deprecated library \'sap.webanalytics.core\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 62, message: 'Use of deprecated library \'sap.zen.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 63, message: 'Use of deprecated library \'sap.zen.crosstab\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 64, message: 'Use of deprecated library \'sap.zen.dsh\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 17, line: 67, message: 'Use of deprecated component \'sap.zen.dsh.fioriwrapper\'', - ruleId: 'ui5-linter-no-deprecated-component', + ruleId: 'no-deprecated-component', severity: 2, }, { @@ -1662,7 +1662,7 @@ Generated by [AVA](https://avajs.dev). line: 79, message: 'Use of deprecated property \'sap.ui5/resources/js\'', messageDetails: 'As of version 1.94, the usage of js resources is deprecated. Please use regular dependencies instead.', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1670,7 +1670,7 @@ Generated by [AVA](https://avajs.dev). line: 92, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\' (model: \'odata-v4\')', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1678,7 +1678,7 @@ Generated by [AVA](https://avajs.dev). line: 98, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\' (model: \'odata-v4-via-dataSource\')', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1686,7 +1686,7 @@ Generated by [AVA](https://avajs.dev). line: 102, message: 'Use of deprecated class \'sap.ui.model.odata.ODataModel\'', messageDetails: 'sap.ui.model.odata.ODataModel (https://ui5.sap.com/1.120/#/api/sap.ui.model.odata.ODataModel)', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1722,14 +1722,14 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Call to deprecated function \'jsview\' (sap.ui.jsview)', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 1, line: 1, message: 'Access of global variable \'sap\' (sap.ui.jsview)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, ], @@ -1753,7 +1753,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Use of deprecated property \'tap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1777,7 +1777,7 @@ Generated by [AVA](https://avajs.dev). line: 3, message: 'Use of deprecated property \'tap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1800,21 +1800,21 @@ Generated by [AVA](https://avajs.dev). column: 7, line: 11, message: 'Use of deprecated library \'sap.landvisz\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 7, line: 12, message: 'Use of deprecated library \'themelib_sap_belize\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 7, line: 13, message: 'Use of deprecated library \'themelib_sap_bluecrystal\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], diff --git a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap index d5337c774..d07b6a4b8 100644 Binary files a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap and b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap differ diff --git a/test/lib/linter/rules/snapshots/NoGlobals.ts.md b/test/lib/linter/rules/snapshots/NoGlobals.ts.md index 4b4412283..b64aa4aaa 100644 --- a/test/lib/linter/rules/snapshots/NoGlobals.ts.md +++ b/test/lib/linter/rules/snapshots/NoGlobals.ts.md @@ -110,77 +110,77 @@ Generated by [AVA](https://avajs.dev). column: 8, line: 8, message: 'Access of global variable \'sap\' (sap.m.Button)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 19, line: 11, message: 'Access of global variable \'sap\' (sap.m)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 14, message: 'Access of global variable \'sap\' (sap.ui.requireSync)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 15, message: 'Access of global variable \'sap\' (window)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 16, message: 'Access of global variable \'sap\' (window.sap.ui.requireSync)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 17, message: 'Access of global variable \'sap\' (globalThis.sap.ui.requireSync)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 20, message: 'Access of global variable \'sap\' (self.sap.ui.requireSync)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 22, message: 'Access of global variable \'sap\' (that.sap.ui.requireSync)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 27, message: 'Access of global variable \'sap\' (window)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 29, message: 'Access of global variable \'jQuery\' (jQuery.ajax)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { column: 4, line: 30, message: 'Access of global variable \'jQuery\' (jQuery)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, { @@ -188,7 +188,7 @@ Generated by [AVA](https://avajs.dev). line: 31, message: 'Use of deprecated API \'jQuery.sap.require\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], diff --git a/test/lib/linter/rules/snapshots/NoGlobals.ts.snap b/test/lib/linter/rules/snapshots/NoGlobals.ts.snap index 8f31ccfdf..7595265c8 100644 Binary files a/test/lib/linter/rules/snapshots/NoGlobals.ts.snap and b/test/lib/linter/rules/snapshots/NoGlobals.ts.snap differ diff --git a/test/lib/linter/rules/snapshots/NoPseudoModules.ts.md b/test/lib/linter/rules/snapshots/NoPseudoModules.ts.md index 6e3670ef2..b1fe218e3 100644 --- a/test/lib/linter/rules/snapshots/NoPseudoModules.ts.md +++ b/test/lib/linter/rules/snapshots/NoPseudoModules.ts.md @@ -20,7 +20,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Deprecated access to enum pseudo module \'sap/ui/core/BarColor\'', messageDetails: 'Migrating Access to Pseudo Modules (https://ui5.sap.com/#/topic/00737d6c1b864dc3ab72ef56611491c4)', - ruleId: 'ui5-linter-no-pseudo-modules', + ruleId: 'no-pseudo-modules', severity: 2, }, { @@ -28,7 +28,7 @@ Generated by [AVA](https://avajs.dev). line: 3, message: 'Deprecated access to enum pseudo module \'sap/m/ListSeparators\'', messageDetails: 'Migrating Access to Pseudo Modules (https://ui5.sap.com/#/topic/00737d6c1b864dc3ab72ef56611491c4)', - ruleId: 'ui5-linter-no-pseudo-modules', + ruleId: 'no-pseudo-modules', severity: 2, }, { @@ -36,7 +36,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Deprecated access to DataType pseudo module \'sap/ui/core/CSSSize\'', messageDetails: 'Migrating Access to Pseudo Modules (https://ui5.sap.com/#/topic/00737d6c1b864dc3ab72ef56611491c4)', - ruleId: 'ui5-linter-no-pseudo-modules', + ruleId: 'no-pseudo-modules', severity: 2, }, ], diff --git a/test/lib/linter/rules/snapshots/NoPseudoModules.ts.snap b/test/lib/linter/rules/snapshots/NoPseudoModules.ts.snap index 154e9d1ae..b0c42d586 100644 Binary files a/test/lib/linter/rules/snapshots/NoPseudoModules.ts.snap and b/test/lib/linter/rules/snapshots/NoPseudoModules.ts.snap differ diff --git a/test/lib/linter/snapshots/linter.ts.md b/test/lib/linter/snapshots/linter.ts.md index 84fc3c569..3ae6677ec 100644 --- a/test/lib/linter/snapshots/linter.ts.md +++ b/test/lib/linter/snapshots/linter.ts.md @@ -138,7 +138,7 @@ Generated by [AVA](https://avajs.dev). line: 15, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -146,7 +146,7 @@ Generated by [AVA](https://avajs.dev). line: 17, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -170,7 +170,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -178,7 +178,7 @@ Generated by [AVA](https://avajs.dev). line: 12, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -186,7 +186,7 @@ Generated by [AVA](https://avajs.dev). line: 18, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -210,7 +210,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -218,7 +218,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -242,7 +242,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -250,7 +250,7 @@ Generated by [AVA](https://avajs.dev). line: 13, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -274,7 +274,7 @@ Generated by [AVA](https://avajs.dev). line: 14, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -282,7 +282,7 @@ Generated by [AVA](https://avajs.dev). line: 16, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -329,7 +329,7 @@ Generated by [AVA](https://avajs.dev). column: 7, line: 11, message: 'Use of deprecated library \'sap.landvisz\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], @@ -361,7 +361,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Deprecated access to enum pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Migrating Access to Pseudo Modules (https://ui5.sap.com/#/topic/00737d6c1b864dc3ab72ef56611491c4)', - ruleId: 'ui5-linter-no-pseudo-modules', + ruleId: 'no-pseudo-modules', severity: 2, }, { @@ -369,7 +369,7 @@ Generated by [AVA](https://avajs.dev). line: 10, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -399,7 +399,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -407,7 +407,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -447,7 +447,7 @@ Generated by [AVA](https://avajs.dev). column: 17, line: 47, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { @@ -455,7 +455,7 @@ Generated by [AVA](https://avajs.dev). line: 59, message: 'Use of deprecated property \'sap.ui5/resources/js\'', messageDetails: 'As of version 1.94, the usage of js resources is deprecated. Please use regular dependencies instead.', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -463,7 +463,7 @@ Generated by [AVA](https://avajs.dev). line: 72, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\' (model: \'odata-v4\')', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -471,7 +471,7 @@ Generated by [AVA](https://avajs.dev). line: 78, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\' (model: \'odata-v4-via-dataSource\')', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -479,7 +479,7 @@ Generated by [AVA](https://avajs.dev). line: 82, message: 'Use of deprecated class \'sap.ui.model.odata.ODataModel\'', messageDetails: 'sap.ui.model.odata.ODataModel (https://ui5.sap.com/1.120/#/api/sap.ui.model.odata.ODataModel)', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -645,7 +645,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Call to deprecated function \'attachInit\' of class \'Core\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -653,14 +653,14 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Call to deprecated function \'getCore\' (sap.ui.getCore)', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 1, line: 4, message: 'Access of global variable \'sap\' (sap.ui.getCore)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, ], @@ -736,7 +736,7 @@ Generated by [AVA](https://avajs.dev). line: 12, message: 'Use of unsafe inline script', messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', - ruleId: 'ui5-linter-csp-unsafe-inline-script', + ruleId: 'csp-unsafe-inline-script', severity: 1, }, ], @@ -782,7 +782,7 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Call to deprecated function \'attachInit\' of class \'Core\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -790,14 +790,14 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Call to deprecated function \'getCore\' (sap.ui.getCore)', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 1, line: 6, message: 'Access of global variable \'sap\' (sap.ui.getCore)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, ], @@ -822,7 +822,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Import of deprecated module \'sap/m/MessagePage\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -830,7 +830,7 @@ Generated by [AVA](https://avajs.dev). line: 22, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -853,14 +853,14 @@ Generated by [AVA](https://avajs.dev). column: 36, line: 1, message: 'Deprecated access to enum pseudo module \'sap/m/BackgroundDesign\'', - ruleId: 'ui5-linter-no-pseudo-modules', + ruleId: 'no-pseudo-modules', severity: 2, }, { column: 24, line: 10, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -876,14 +876,14 @@ Generated by [AVA](https://avajs.dev). column: 5, line: 9, message: 'Use of deprecated property \'blocked\' of class \'Button\'', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 8, line: 11, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -906,21 +906,21 @@ Generated by [AVA](https://avajs.dev). column: 4, line: 25, message: 'Use of deprecated library \'sap.ca.scfld.md\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 28, message: 'Use of deprecated library \'sap.ca.scfld.md\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 31, message: 'Use of deprecated library \'sap.ca.ui\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], @@ -1015,7 +1015,7 @@ Generated by [AVA](https://avajs.dev). line: 27, message: 'Call to deprecated function \'getLibraryResourceBundle\' of class \'Core\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1032,7 +1032,7 @@ Generated by [AVA](https://avajs.dev). line: 15, message: 'Call to deprecated function \'initLibrary\' of class \'Core\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1040,14 +1040,14 @@ Generated by [AVA](https://avajs.dev). line: 15, message: 'Call to deprecated function \'getCore\' (sap.ui.getCore)', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 2, line: 15, message: 'Access of global variable \'sap\' (sap.ui.getCore)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, ], @@ -1064,7 +1064,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1100,7 +1100,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Import of deprecated module \'sap/ui/model/odata/ODataModel\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1116,7 +1116,7 @@ Generated by [AVA](https://avajs.dev). column: 7, line: 15, message: 'Use of deprecated library \'sap.landvisz\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], @@ -1139,21 +1139,21 @@ Generated by [AVA](https://avajs.dev). column: 4, line: 25, message: 'Use of deprecated library \'sap.ca.scfld.md\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 28, message: 'Use of deprecated library \'sap.ca.scfld.md\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { column: 4, line: 31, message: 'Use of deprecated library \'sap.ca.ui\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], @@ -1248,7 +1248,7 @@ Generated by [AVA](https://avajs.dev). line: 27, message: 'Call to deprecated function \'getLibraryResourceBundle\' of class \'Core\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1265,7 +1265,7 @@ Generated by [AVA](https://avajs.dev). line: 15, message: 'Call to deprecated function \'initLibrary\' of class \'Core\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1273,14 +1273,14 @@ Generated by [AVA](https://avajs.dev). line: 15, message: 'Call to deprecated function \'getCore\' (sap.ui.getCore)', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 2, line: 15, message: 'Access of global variable \'sap\' (sap.ui.getCore)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, ], @@ -1296,7 +1296,7 @@ Generated by [AVA](https://avajs.dev). column: 7, line: 15, message: 'Use of deprecated library \'sap.landvisz\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], @@ -1328,7 +1328,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Import of deprecated module \'sap/f/Avatar\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1336,7 +1336,7 @@ Generated by [AVA](https://avajs.dev). line: 5, message: 'Import of deprecated module \'sap/m/DateTimeInput\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1376,7 +1376,7 @@ Generated by [AVA](https://avajs.dev). line: 2, message: 'Import of deprecated module \'sap/ui/suite/TaskCircle\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1384,7 +1384,7 @@ Generated by [AVA](https://avajs.dev). line: 3, message: 'Import of deprecated module \'sap/m/DateTimeInput\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1407,7 +1407,7 @@ Generated by [AVA](https://avajs.dev). column: 7, line: 11, message: 'Use of deprecated library \'sap.landvisz\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, ], @@ -1439,7 +1439,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Deprecated access to enum pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Migrating Access to Pseudo Modules (https://ui5.sap.com/#/topic/00737d6c1b864dc3ab72ef56611491c4)', - ruleId: 'ui5-linter-no-pseudo-modules', + ruleId: 'no-pseudo-modules', severity: 2, }, { @@ -1447,7 +1447,7 @@ Generated by [AVA](https://avajs.dev). line: 10, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1477,7 +1477,7 @@ Generated by [AVA](https://avajs.dev). line: 9, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1485,7 +1485,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Call to deprecated function \'attachTap\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1525,7 +1525,7 @@ Generated by [AVA](https://avajs.dev). column: 17, line: 47, message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'ui5-linter-no-deprecated-library', + ruleId: 'no-deprecated-library', severity: 2, }, { @@ -1533,7 +1533,7 @@ Generated by [AVA](https://avajs.dev). line: 59, message: 'Use of deprecated property \'sap.ui5/resources/js\'', messageDetails: 'As of version 1.94, the usage of js resources is deprecated. Please use regular dependencies instead.', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1541,7 +1541,7 @@ Generated by [AVA](https://avajs.dev). line: 72, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\' (model: \'odata-v4\')', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1549,7 +1549,7 @@ Generated by [AVA](https://avajs.dev). line: 78, message: 'Usage of deprecated parameter \'synchronizationMode\' of constructor \'sap/ui/model/odata/v4/ODataModel\' (model: \'odata-v4-via-dataSource\')', messageDetails: 'As of version 1.110.0, parameter \'synchronizationMode\' is obsolete and must be omitted. See API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', - ruleId: 'ui5-linter-no-deprecated-parameter', + ruleId: 'no-deprecated-parameter', severity: 2, }, { @@ -1557,7 +1557,7 @@ Generated by [AVA](https://avajs.dev). line: 82, message: 'Use of deprecated class \'sap.ui.model.odata.ODataModel\'', messageDetails: 'sap.ui.model.odata.ODataModel (https://ui5.sap.com/1.120/#/api/sap.ui.model.odata.ODataModel)', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], @@ -1597,7 +1597,7 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Call to deprecated function \'attachInit\' of class \'Core\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1605,14 +1605,14 @@ Generated by [AVA](https://avajs.dev). line: 4, message: 'Call to deprecated function \'getCore\' (sap.ui.getCore)', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 1, line: 4, message: 'Access of global variable \'sap\' (sap.ui.getCore)', - ruleId: 'ui5-linter-no-globals', + ruleId: 'no-globals', severity: 2, }, ], @@ -1637,7 +1637,7 @@ Generated by [AVA](https://avajs.dev). line: 11, message: 'Import of deprecated module \'sap/m/MessagePage\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1645,7 +1645,7 @@ Generated by [AVA](https://avajs.dev). line: 22, message: 'Use of deprecated property \'blocked\' of class \'Button\'', messageDetails: 'Deprecated test message', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ], diff --git a/test/lib/linter/snapshots/linter.ts.snap b/test/lib/linter/snapshots/linter.ts.snap index 5b329b26d..6ecc9e770 100644 Binary files a/test/lib/linter/snapshots/linter.ts.snap and b/test/lib/linter/snapshots/linter.ts.snap differ diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md index ca49b159a..82d3e3fcd 100644 --- a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md +++ b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md @@ -702,28 +702,28 @@ Generated by [AVA](https://avajs.dev). line: 6, message: 'Usage of native HTML in XML Views/Fragments is deprecated', messageDetails: 'Using Native HTML in XML Views (deprecated) (https://ui5.sap.com/#/topic/be54950cae1041f59d4aa97a6bade2d8)', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 1, line: 8, message: 'Usage of SVG in XML Views/Fragments is deprecated', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 2, line: 9, message: 'Usage of SVG in XML Views/Fragments is deprecated', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 3, line: 10, message: 'Usage of SVG in XML Views/Fragments is deprecated', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'no-deprecated-api', severity: 2, }, ] diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap index f3e34aec8..ed91765cd 100644 Binary files a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap and b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap differ