Skip to content

Commit

Permalink
refactor: Align messages
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Dec 17, 2024
1 parent 873a561 commit 2b8f4d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/linter/html/transpiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function checkBindingSyntaxAttr(attr: Attribute, report: HtmlReporter) {
name: attr.name.value,
messageDetails: "Only 'complex' is supported with UI5 2.x and automatically" +
" enforced by the UI5 runtime. Check all bindings whether they will be " +
"misinterpreted in 2.0 with binding syntax 'complex'.",
"misinterpreted in 2.x with binding syntax 'complex'.",
}, attr.name);
}
}
Expand Down
10 changes: 5 additions & 5 deletions test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Generated by [AVA](https://avajs.dev).
column: 3,
line: 19,
message: 'Redundant bootstrap parameter \'data-sap-ui-binding-syntax\' should be removed',
messageDetails: 'Only \'complex\' is supported with UI5 2.X and automatically enforced by the UI5 runtime. Check all bindings whether they will be misinterpreted in 2.0 with binding syntax \'complex\'.',
messageDetails: 'Only \'complex\' is supported with UI5 2.x and automatically enforced by the UI5 runtime. Check all bindings whether they will be misinterpreted in 2.x with binding syntax \'complex\'.',
ruleId: 'no-deprecated-api',
severity: 2,
},
Expand All @@ -96,7 +96,7 @@ Generated by [AVA](https://avajs.dev).
column: 3,
line: 20,
message: 'Redundant bootstrap parameter \'data-sap-ui-binding-syntax\' should be removed',
messageDetails: 'Only \'complex\' is supported with UI5 2.X and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
messageDetails: 'Only \'complex\' is supported with UI5 2.x and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand Down Expand Up @@ -464,7 +464,7 @@ Generated by [AVA](https://avajs.dev).
column: 3,
line: 18,
message: 'Redundant bootstrap parameter \'data-sap-ui-bindingsyntax\' should be removed',
messageDetails: 'Only \'complex\' is supported with UI5 2.X and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
messageDetails: 'Only \'complex\' is supported with UI5 2.x and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand All @@ -479,7 +479,7 @@ Generated by [AVA](https://avajs.dev).
column: 3,
line: 19,
message: 'Redundant bootstrap parameter \'data-sap-ui-xx-bindingsyntax\' should be removed',
messageDetails: 'Only \'complex\' is supported with UI5 2.X and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
messageDetails: 'Only \'complex\' is supported with UI5 2.x and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand All @@ -494,7 +494,7 @@ Generated by [AVA](https://avajs.dev).
column: 3,
line: 20,
message: 'Redundant bootstrap parameter \'data-sap-ui-xx-binding-syntax\' should be removed',
messageDetails: 'Only \'complex\' is supported with UI5 2.X and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
messageDetails: 'Only \'complex\' is supported with UI5 2.x and automatically enforced by the UI5 runtime. Complex binding parser supports simple binding syntax per default.',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand Down
Binary file modified test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap
Binary file not shown.

0 comments on commit 2b8f4d7

Please sign in to comment.