ui5-linter icon indicating copy to clipboard operation
ui5-linter copied to clipboard

feat: Support projects with type "module"

Open matz3 opened this issue 1 year ago • 3 comments

This allows linting projects that currently do not fit any other project structure of UI5 Tooling.

To lint such projects, a ui5.yaml needs to be added to the root of the project with the following content:

specVersion: "4.0"
type: module
metadata:
  name: <project-name>
resources:
  configuration:
    paths:
      /resources/<namespace>/: "<sources-folder>"

Placeholders <project-name>, <namespace> and <sources-folder> need to be replaced with the actual values.

Example: A project has its sources in a folder src and uses the namespace my.project, so for example a source file named src/my/project/util/Formatter.js would exist. In this case the placeholders would be replaced as follows:

  • <project-name>: my.project
  • <namespace>: my/project
  • <sources-folder>: src

JIRA: CPOUI5FOUNDATION-972

matz3 avatar Nov 28 '24 11:11 matz3

Open tasks

  • [ ] Tests
  • [ ] Update README

matz3 avatar Nov 28 '24 11:11 matz3

Also see https://github.com/SAP/ui5-linter/pull/148

matz3 avatar Nov 28 '24 12:11 matz3

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 23 '25 11:06 CLAassistant