generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add UI5 linter option for ui5.yaml config path (#313)
CPOUI5FOUNDATION-855
- Loading branch information
1 parent
2342d34
commit a213084
Showing
11 changed files
with
303 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/fixtures/linter/projects/com.ui5.troublesome.app/configs/ui5-custom.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
specVersion: '4.0' | ||
metadata: | ||
name: com.ui5.troublesome.app | ||
type: application | ||
framework: | ||
name: OpenUI5 | ||
version: "1.121.0" | ||
libraries: | ||
- name: sap.m | ||
- name: sap.ui.core | ||
- name: sap.landvisz | ||
resources: | ||
configuration: | ||
paths: | ||
webapp: webapp2 |
113 changes: 113 additions & 0 deletions
113
test/fixtures/linter/projects/com.ui5.troublesome.app/webapp2/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"_version": "1.12.0", | ||
|
||
"sap.app": { | ||
"id": "com.ui5.troublesome.app", | ||
"type": "application", | ||
"i18n": "i18n/i18n.properties", | ||
"title": "{{appTitle}}", | ||
"description": "{{appDescription}}", | ||
"applicationVersion": { | ||
"version": "1.0.0" | ||
}, | ||
"dataSources": { | ||
"v4": { | ||
"uri": "/api/odata-4/", | ||
"type": "OData", | ||
"settings": { | ||
"odataVersion": "4.0" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"sap.ui": { | ||
"technology": "UI5", | ||
"icons": {}, | ||
"deviceTypes": { | ||
"desktop": true, | ||
"tablet": true, | ||
"phone": true | ||
} | ||
}, | ||
|
||
"sap.ui5": { | ||
"rootView": { | ||
"viewName": "com.ui5.troublesome.app.view.App", | ||
"type": "XML", | ||
"async": true, | ||
"id": "app" | ||
}, | ||
|
||
"dependencies": { | ||
"minUI5Version": "1.119.0", | ||
"libs": { | ||
"sap.ui.core": {}, | ||
"sap.m": {}, | ||
"sap.ui.commons": {} | ||
} | ||
}, | ||
|
||
"handleValidation": true, | ||
|
||
"contentDensities": { | ||
"compact": true, | ||
"cozy": true | ||
}, | ||
|
||
"resources": { | ||
"js": [{ "uri": "path/to/thirdparty.js" }] | ||
}, | ||
|
||
"models": { | ||
"i18n": { | ||
"type": "sap.ui.model.resource.ResourceModel", | ||
"settings": { | ||
"bundleName": "com.ui5.troublesome.app.i18n.i18n" | ||
} | ||
}, | ||
"odata-v4": { | ||
"type": "sap.ui.model.odata.v4.ODataModel", | ||
"settings": { | ||
"synchronizationMode": "None" | ||
} | ||
}, | ||
"odata-v4-via-dataSource": { | ||
"dataSource": "v4", | ||
"settings": { | ||
"synchronizationMode": "None" | ||
} | ||
}, | ||
"odata": { | ||
"type": "sap.ui.model.odata.ODataModel", | ||
"settings": { | ||
"serviceUrl": "/api/odata" | ||
} | ||
} | ||
}, | ||
|
||
"routing": { | ||
"config": { | ||
"routerClass": "sap.m.routing.Router", | ||
"viewType": "XML", | ||
"viewPath": "com.ui5.troublesome.app.view", | ||
"controlId": "app", | ||
"controlAggregation": "pages", | ||
"async": true | ||
}, | ||
"routes": [ | ||
{ | ||
"pattern": "", | ||
"name": "main", | ||
"target": "main" | ||
} | ||
], | ||
"targets": { | ||
"main": { | ||
"viewId": "main", | ||
"viewName": "Main" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.