Skip to content

Commit

Permalink
fix: Update texts + test samples & the respective test snapshots (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 authored Oct 2, 2024
1 parent b54f553 commit 5639a2f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/linter/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const MESSAGE_INFO = {
severity: LintMessageSeverity.Error,
ruleId: RULES["no-deprecated-api"],

message: () => `DeclarativeSupport is deprecated.`,
message: () => `DeclarativeSupport is deprecated`,
details: () =>
`Please consider using {@link sap.ui.core.mvc.XMLView XMLViews} or` +
` {@link topic:e6bb33d076dc4f23be50c082c271b9f0 Typed Views} instead. For more information,` +
Expand All @@ -173,7 +173,7 @@ export const MESSAGE_INFO = {
severity: LintMessageSeverity.Error,
ruleId: RULES["no-deprecated-api"],

message: () => `LessSupport is deprecated.`,
message: () => `LessSupport is deprecated`,
details: () =>
"Please consider using UI5 Tooling https://sap.github.io/ui5-tooling/stable/ to compile LESS to CSS on the fly.",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
data-sap-ui-theme="sap_horizon"
data-sap-ui-libs="sap.m"
data-sap-ui-async="true"
data-sap-ui-on-init="modules:sap/ui/core/plugin/DeclarativeSupport"
data-sap-ui-on-init="module:sap/ui/core/plugin/DeclarativeSupport"
>
</script>
</head>
Expand Down
16 changes: 4 additions & 12 deletions test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ Generated by [AVA](https://avajs.dev).
{
column: 24,
line: 11,
message: 'DeclarativeSupport is deprecated.',
message: 'DeclarativeSupport is deprecated',
messageDetails: 'Please consider using XMLViews (https://ui5.sap.com/1.120/#/api/sap.ui.core.mvc.XMLView) or Typed Views (https://ui5.sap.com/#/topic/e6bb33d076dc4f23be50c082c271b9f0) instead. For more information, see the documentation on View types (https://ui5.sap.com/#/topic/91f27e3e6f4d1014b6dd926db0e91070).',
ruleId: 'no-deprecated-api',
severity: 2,
},
{
column: 24,
line: 11,
message: 'LessSupport is deprecated.',
message: 'LessSupport is deprecated',
messageDetails: 'Please consider using UI5 Tooling https://sap.github.io/ui5-tooling/stable/ to compile LESS to CSS on the fly.',
ruleId: 'no-deprecated-api',
severity: 2,
Expand All @@ -112,22 +112,14 @@ Generated by [AVA](https://avajs.dev).
[
{
coverageInfo: [],
errorCount: 3,
errorCount: 2,
fatalErrorCount: 0,
filePath: 'BootstrapParameters_Deprecations3.html',
messages: [
{
column: 24,
line: 11,
message: 'Use of deprecated value \'modules:sap/ui/core/plugin/declarativesupport\' for bootstrap parameter \'data-sap-ui-on-init\'',
messageDetails: 'Configuration Options and URL Parameters (https://ui5.sap.com/#/topic/91f2d03b6f4d1014b6dd926db0e91070)',
ruleId: 'no-deprecated-api',
severity: 2,
},
{
column: 24,
line: 11,
message: 'DeclarativeSupport is deprecated.',
message: 'DeclarativeSupport is deprecated',
messageDetails: 'Please consider using XMLViews (https://ui5.sap.com/1.120/#/api/sap.ui.core.mvc.XMLView) or Typed Views (https://ui5.sap.com/#/topic/e6bb33d076dc4f23be50c082c271b9f0) instead. For more information, see the documentation on View types (https://ui5.sap.com/#/topic/91f27e3e6f4d1014b6dd926db0e91070).',
ruleId: 'no-deprecated-api',
severity: 2,
Expand Down
Binary file modified test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap
Binary file not shown.

0 comments on commit 5639a2f

Please sign in to comment.