diff --git a/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md b/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md index b9eb4b2c5..8e1f47783 100644 --- a/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md +++ b/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.md @@ -167,6 +167,14 @@ Generated by [AVA](https://avajs.dev). ], warningCount: 0, }, + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'ParentComponent.js', + messages: [], + warningCount: 0, + }, ] ## General: Negative_06 @@ -295,6 +303,14 @@ Generated by [AVA](https://avajs.dev). ], warningCount: 0, }, + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'ParentComponent.ts', + messages: [], + warningCount: 0, + }, ] ## General: Negative_10 @@ -340,6 +356,14 @@ Generated by [AVA](https://avajs.dev). ], warningCount: 0, }, + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'ParentComponent.ts', + messages: [], + warningCount: 0, + }, ] ## General: Positive_01 diff --git a/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.snap b/test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.snap index bdcd48680..760b9d1ab 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/snapshots/linter.ts.md b/test/lib/linter/snapshots/linter.ts.md index 7095eeb41..ecb539ad6 100644 --- a/test/lib/linter/snapshots/linter.ts.md +++ b/test/lib/linter/snapshots/linter.ts.md @@ -359,7 +359,7 @@ Generated by [AVA](https://avajs.dev). { column: 36, line: 1, - message: 'Deprecated access to enum pseudo module \'sap/m/BackgroundDesign\'', + message: 'Deprecated access of enum pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Migrating Access to Pseudo Modules (https://ui5.sap.com/#/topic/00737d6c1b864dc3ab72ef56611491c4)', ruleId: 'no-pseudo-modules', severity: 2, @@ -439,7 +439,81 @@ Generated by [AVA](https://avajs.dev). }, { coverageInfo: [], - errorCount: 5, + errorCount: 0, + fatalErrorCount: 0, + filePath: 'webapp/index-cdn.html', + messages: [ + { + column: 4, + line: 15, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-resourceroots\'; should be written as \'data-sap-ui-resource-roots\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 19, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-oninit\'; should be written as \'data-sap-ui-on-init\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 21, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-compatVersion\'; should be written as \'data-sap-ui-compat-version\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 22, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-frameOptions\'; should be written as \'data-sap-ui-frame-options\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + ], + warningCount: 4, + }, + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'webapp/index.html', + messages: [ + { + column: 4, + line: 14, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-resourceroots\'; should be written as \'data-sap-ui-resource-roots\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 18, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-oninit\'; should be written as \'data-sap-ui-on-init\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 20, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-compatVersion\'; should be written as \'data-sap-ui-compat-version\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 21, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-frameOptions\'; should be written as \'data-sap-ui-frame-options\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + ], + warningCount: 4, + }, + { + coverageInfo: [], + errorCount: 8, fatalErrorCount: 0, filePath: 'webapp/manifest.json', messages: [ @@ -450,6 +524,27 @@ Generated by [AVA](https://avajs.dev). ruleId: 'no-deprecated-library', severity: 2, }, + { + column: 17, + line: 93, + message: 'Use of deprecated property \'viewPath\'.Use \'path\' instead\'', + ruleId: 'no-deprecated-api', + severity: 2, + }, + { + column: 21, + line: 107, + message: 'Use of deprecated property \'viewId\'.Use \'id\' instead\'', + ruleId: 'no-deprecated-api', + severity: 2, + }, + { + column: 21, + line: 108, + message: 'Use of deprecated property \'viewName\'.Use \'name\' instead\'', + ruleId: 'no-deprecated-api', + severity: 2, + }, { column: 13, line: 59, @@ -462,16 +557,16 @@ Generated by [AVA](https://avajs.dev). column: 21, 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: 'no-deprecated-parameter', + messageDetails: 'As of version 1.110.0, the \'synchronizationMode\' parameter is obsolete and must be omitted. See the API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 21, 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: 'no-deprecated-parameter', + messageDetails: 'As of version 1.110.0, the \'synchronizationMode\' parameter is obsolete and must be omitted. See the API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -634,6 +729,36 @@ Generated by [AVA](https://avajs.dev). messages: [], warningCount: 0, }, + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'webapp/test/integration/opaTests.qunit.html', + messages: [ + { + column: 4, + line: 13, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-resourceroots\'; should be written as \'data-sap-ui-resource-roots\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 18, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-compatVersion\'; should be written as \'data-sap-ui-compat-version\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 20, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-oninit\'; should be written as \'data-sap-ui-on-init\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + ], + warningCount: 3, + }, { coverageInfo: [], errorCount: 3, @@ -660,6 +785,7 @@ Generated by [AVA](https://avajs.dev). column: 1, line: 4, message: 'Access of global variable \'sap\' (sap.ui.getCore)', + messageDetails: 'Do not use global variables to access UI5 modules or APIs. See Best Practices for Developers (https://ui5.sap.com/#/topic/28fcd55b04654977b63dacbee0552712)', ruleId: 'no-globals', severity: 2, }, @@ -771,6 +897,37 @@ Generated by [AVA](https://avajs.dev). messages: [], warningCount: 0, }, + { + coverageInfo: [], + errorCount: 1, + fatalErrorCount: 0, + filePath: 'webapp/test/unit/unitTests.qunit.html', + messages: [ + { + column: 4, + line: 12, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-resourceroots\'; should be written as \'data-sap-ui-resource-roots\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 17, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-oninit\'; should be written as \'data-sap-ui-on-init\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 3, + line: 9, + message: 'Missing bootstrap parameter \'data-sap-ui-compat-version\'', + messageDetails: 'Compatibility Version Information (deprecated) (https://ui5.sap.com/#/topic/9feb96da02c2429bb1afcf6534d77c79)', + ruleId: 'no-deprecated-api', + severity: 2, + }, + ], + warningCount: 2, + }, { coverageInfo: [], errorCount: 3, @@ -797,6 +954,7 @@ Generated by [AVA](https://avajs.dev). column: 1, line: 6, message: 'Access of global variable \'sap\' (sap.ui.getCore)', + messageDetails: 'Do not use global variables to access UI5 modules or APIs. See Best Practices for Developers (https://ui5.sap.com/#/topic/28fcd55b04654977b63dacbee0552712)', ruleId: 'no-globals', severity: 2, }, @@ -852,7 +1010,7 @@ Generated by [AVA](https://avajs.dev). { column: 36, line: 1, - message: 'Deprecated access to enum pseudo module \'sap/m/BackgroundDesign\'', + message: 'Deprecated access of enum pseudo module \'sap/m/BackgroundDesign\'', ruleId: 'no-pseudo-modules', severity: 2, }, @@ -1047,6 +1205,7 @@ Generated by [AVA](https://avajs.dev). column: 2, line: 15, message: 'Access of global variable \'sap\' (sap.ui.getCore)', + messageDetails: 'Do not use global variables to access UI5 modules or APIs. See Best Practices for Developers (https://ui5.sap.com/#/topic/28fcd55b04654977b63dacbee0552712)', ruleId: 'no-globals', severity: 2, }, @@ -1070,6 +1229,37 @@ Generated by [AVA](https://avajs.dev). ], warningCount: 0, }, + { + coverageInfo: [], + errorCount: 1, + fatalErrorCount: 0, + filePath: 'src/test/js/Example.html', + messages: [ + { + column: 4, + line: 11, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-oninit\'; should be written as \'data-sap-ui-on-init\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 13, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-resourceroots\'; should be written as \'data-sap-ui-resource-roots\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 3, + line: 7, + message: 'Missing bootstrap parameter \'data-sap-ui-compat-version\'', + messageDetails: 'Compatibility Version Information (deprecated) (https://ui5.sap.com/#/topic/9feb96da02c2429bb1afcf6534d77c79)', + ruleId: 'no-deprecated-api', + severity: 2, + }, + ], + warningCount: 2, + }, { coverageInfo: [ { @@ -1280,6 +1470,7 @@ Generated by [AVA](https://avajs.dev). column: 2, line: 15, message: 'Access of global variable \'sap\' (sap.ui.getCore)', + messageDetails: 'Do not use global variables to access UI5 modules or APIs. See Best Practices for Developers (https://ui5.sap.com/#/topic/28fcd55b04654977b63dacbee0552712)', ruleId: 'no-globals', severity: 2, }, @@ -1437,7 +1628,7 @@ Generated by [AVA](https://avajs.dev). { column: 36, line: 1, - message: 'Deprecated access to enum pseudo module \'sap/m/BackgroundDesign\'', + message: 'Deprecated access of enum pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Migrating Access to Pseudo Modules (https://ui5.sap.com/#/topic/00737d6c1b864dc3ab72ef56611491c4)', ruleId: 'no-pseudo-modules', severity: 2, @@ -1517,7 +1708,81 @@ Generated by [AVA](https://avajs.dev). }, { coverageInfo: [], - errorCount: 5, + errorCount: 0, + fatalErrorCount: 0, + filePath: 'webapp/index-cdn.html', + messages: [ + { + column: 4, + line: 15, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-resourceroots\'; should be written as \'data-sap-ui-resource-roots\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 19, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-oninit\'; should be written as \'data-sap-ui-on-init\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 21, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-compatVersion\'; should be written as \'data-sap-ui-compat-version\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 22, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-frameOptions\'; should be written as \'data-sap-ui-frame-options\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + ], + warningCount: 4, + }, + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'webapp/index.html', + messages: [ + { + column: 4, + line: 14, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-resourceroots\'; should be written as \'data-sap-ui-resource-roots\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 18, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-oninit\'; should be written as \'data-sap-ui-on-init\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 20, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-compatVersion\'; should be written as \'data-sap-ui-compat-version\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + { + column: 4, + line: 21, + message: 'Outdated spelling of bootstrap parameter: \'data-sap-ui-frameOptions\'; should be written as \'data-sap-ui-frame-options\'', + ruleId: 'no-deprecated-api', + severity: 1, + }, + ], + warningCount: 4, + }, + { + coverageInfo: [], + errorCount: 8, fatalErrorCount: 0, filePath: 'webapp/manifest.json', messages: [ @@ -1528,6 +1793,27 @@ Generated by [AVA](https://avajs.dev). ruleId: 'no-deprecated-library', severity: 2, }, + { + column: 17, + line: 93, + message: 'Use of deprecated property \'viewPath\'.Use \'path\' instead\'', + ruleId: 'no-deprecated-api', + severity: 2, + }, + { + column: 21, + line: 107, + message: 'Use of deprecated property \'viewId\'.Use \'id\' instead\'', + ruleId: 'no-deprecated-api', + severity: 2, + }, + { + column: 21, + line: 108, + message: 'Use of deprecated property \'viewName\'.Use \'name\' instead\'', + ruleId: 'no-deprecated-api', + severity: 2, + }, { column: 13, line: 59, @@ -1540,16 +1826,16 @@ Generated by [AVA](https://avajs.dev). column: 21, 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: 'no-deprecated-parameter', + messageDetails: 'As of version 1.110.0, the \'synchronizationMode\' parameter is obsolete and must be omitted. See the API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 21, 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: 'no-deprecated-parameter', + messageDetails: 'As of version 1.110.0, the \'synchronizationMode\' parameter is obsolete and must be omitted. See the API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', + ruleId: 'no-deprecated-api', severity: 2, }, { @@ -1612,6 +1898,7 @@ Generated by [AVA](https://avajs.dev). column: 1, line: 4, message: 'Access of global variable \'sap\' (sap.ui.getCore)', + messageDetails: 'Do not use global variables to access UI5 modules or APIs. See Best Practices for Developers (https://ui5.sap.com/#/topic/28fcd55b04654977b63dacbee0552712)', ruleId: 'no-globals', severity: 2, }, @@ -1676,7 +1963,7 @@ Generated by [AVA](https://avajs.dev). }, { coverageInfo: [], - errorCount: 5, + errorCount: 8, fatalErrorCount: 0, filePath: 'webapp2/manifest.json', messages: [ @@ -1688,76 +1975,26 @@ Generated by [AVA](https://avajs.dev). severity: 2, }, { - column: 13, - 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.', + column: 17, + line: 93, + message: 'Use of deprecated property \'viewPath\'.Use \'path\' instead\'', ruleId: 'no-deprecated-api', severity: 2, }, { column: 21, - 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: 'no-deprecated-parameter', + line: 107, + message: 'Use of deprecated property \'viewId\'.Use \'id\' instead\'', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 21, - 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: 'no-deprecated-parameter', - severity: 2, - }, - { - column: 17, - 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)', + line: 108, + message: 'Use of deprecated property \'viewName\'.Use \'name\' instead\'', ruleId: 'no-deprecated-api', severity: 2, }, - ], - warningCount: 0, - }, - ] - -## lint: All files of com.ui5.troublesome.app with custom UI5 config - -> Snapshot 1 - - [ - { - coverageInfo: [], - errorCount: 1, - fatalErrorCount: 0, - filePath: 'ui5.yaml', - messages: [ - { - column: 7, - line: 11, - message: 'Use of deprecated library \'sap.landvisz\'', - ruleId: 'no-deprecated-library', - severity: 2, - }, - ], - warningCount: 0, - }, - { - coverageInfo: [], - errorCount: 5, - fatalErrorCount: 0, - filePath: 'webapp2/manifest.json', - messages: [ - { - column: 17, - line: 47, - message: 'Use of deprecated library \'sap.ui.commons\'', - ruleId: 'no-deprecated-library', - severity: 2, - }, { column: 13, line: 59, @@ -1770,16 +2007,16 @@ Generated by [AVA](https://avajs.dev). column: 21, 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: 'no-deprecated-parameter', + messageDetails: 'As of version 1.110.0, the \'synchronizationMode\' parameter is obsolete and must be omitted. See the API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', + ruleId: 'no-deprecated-api', severity: 2, }, { column: 21, 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: 'no-deprecated-parameter', + messageDetails: 'As of version 1.110.0, the \'synchronizationMode\' parameter is obsolete and must be omitted. See the API reference (https://ui5.sap.com/1.120/#/api/sap/ui/model/odata/v4/ODataModel#constructor)', + 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 16a661015..87f865cb4 100644 Binary files a/test/lib/linter/snapshots/linter.ts.snap and b/test/lib/linter/snapshots/linter.ts.snap differ