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(linter): Extend project initialization fallbacks
Enhance compatibility for legacy UI5 projects that do not include a ui5.yaml and do not use current best practice directory structures like 'webapp' for apps and 'src'/'test' for libraries. In addition to those directories we now also check and eventually use the following directories: Applications: * src/main/webapp * WebContent Libraries: * src/main/jslib (+ src/test/jslib) * src/main/uilib (+ src/test/uilib) * src/main/js (+ src/test/js)
- Loading branch information
1 parent
702c258
commit f9b0f96
Showing
7 changed files
with
266 additions
and
21 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
7 changes: 7 additions & 0 deletions
7
test/fixtures/linter/projects/legacy-dirs/legacy.app.a/WebContent/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,7 @@ | ||
{ | ||
"_version": "1.12.0", | ||
"sap.app": { | ||
"id": "com.app", | ||
"type": "application" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/linter/projects/legacy-dirs/legacy.app.b/src/main/webapp/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,7 @@ | ||
{ | ||
"_version": "1.12.0", | ||
"sap.app": { | ||
"id": "com.app", | ||
"type": "application" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/linter/projects/legacy-dirs/legacy.lib.a/src/main/jslib/.library
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,7 @@ | ||
<?xml version="1.0" ?> | ||
<library xmlns="http://www.sap.com/sap.ui.library.xsd"> | ||
<name>library.with.custom.paths</name> | ||
<vendor>SAP SE</vendor> | ||
<version>${version}</version> | ||
<copyright>${copyright}</copyright> | ||
</library> |
7 changes: 7 additions & 0 deletions
7
test/fixtures/linter/projects/legacy-dirs/legacy.lib.b/src/main/uilib/.library
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,7 @@ | ||
<?xml version="1.0" ?> | ||
<library xmlns="http://www.sap.com/sap.ui.library.xsd"> | ||
<name>library.with.custom.paths</name> | ||
<vendor>SAP SE</vendor> | ||
<version>${version}</version> | ||
<copyright>${copyright}</copyright> | ||
</library> |
7 changes: 7 additions & 0 deletions
7
test/fixtures/linter/projects/legacy-dirs/legacy.lib.c/src/main/js/.library
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,7 @@ | ||
<?xml version="1.0" ?> | ||
<library xmlns="http://www.sap.com/sap.ui.library.xsd"> | ||
<name>library.with.custom.paths</name> | ||
<vendor>SAP SE</vendor> | ||
<version>${version}</version> | ||
<copyright>${copyright}</copyright> | ||
</library> |
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