diff --git a/src/linter/messages.ts b/src/linter/messages.ts index 95657621b..454eb9423 100644 --- a/src/linter/messages.ts +++ b/src/linter/messages.ts @@ -10,6 +10,7 @@ const RULES = { "no-deprecated-theme": "no-deprecated-theme", "no-globals": "no-globals", "no-pseudo-modules": "no-pseudo-modules", + "no-redundancy": "no-redundancy", "parsing-error": "parsing-error", "ui5-class-declaration": "ui5-class-declaration", } as const; @@ -283,7 +284,7 @@ export const MESSAGE_INFO = { [MESSAGE.DUPLICATE_BOOTSTRAP_PARAM]: { severity: LintMessageSeverity.Warning, - ruleId: RULES["no-deprecated-api"], + ruleId: RULES["no-redundancy"], message: ({name, value}: {name: string; value: string}) => `Duplicate bootstrap parameter '${name}' with value '${value}'`, diff --git a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md index c17db1388..a69a4b645 100644 --- a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md +++ b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md @@ -322,7 +322,7 @@ Generated by [AVA](https://avajs.dev). column: 3, line: 15, message: 'Duplicate bootstrap parameter \'data-sap-ui-on-init\' with value \'data-sap-ui-onInit\'', - ruleId: 'no-deprecated-api', + ruleId: 'no-redundancy', severity: 1, }, { @@ -351,7 +351,7 @@ Generated by [AVA](https://avajs.dev). column: 3, line: 19, message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'data-sap-ui-xx-bindingsyntax\'', - ruleId: 'no-deprecated-api', + ruleId: 'no-redundancy', severity: 1, }, { @@ -365,7 +365,7 @@ Generated by [AVA](https://avajs.dev). column: 3, line: 20, message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'data-sap-ui-xx-binding-syntax\'', - ruleId: 'no-deprecated-api', + ruleId: 'no-redundancy', severity: 1, }, { @@ -386,7 +386,7 @@ Generated by [AVA](https://avajs.dev). column: 3, line: 22, message: 'Duplicate bootstrap parameter \'data-sap-ui-preload\' with value \'data-sap-ui-xx-preload\'', - ruleId: 'no-deprecated-api', + ruleId: 'no-redundancy', severity: 1, }, { diff --git a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap index d9d1177f1..f03f00d63 100644 Binary files a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap and b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap differ