UI5 / UI5/linter

Ignore check of unmatched patterns

Open
#373 1 comment 0 reactions 1 assignee View on GitHub

@flovogt is already working on this.

Since Aug 11, 2026.

configuration
Dominant language
TypeScript
Stars
79
Forks
13
Avg merge
19h 34m
Merged PRs (30d)
9

Description

Is your feature request related to a problem? Please describe.

It is very difficult to use the ui5linter in conjuction with lint-staged. To avoid to lint the whole project before commiting, we use lint-staged lint only files staged for commit.

The lint-staged configuration is this one:

const ui5lint = (filenames) => `ui5lint ${filenames.join(" ")}`;

export default {
  "webapp/**/*": (stagedFiles) => ui5lint(stagedFiles),
};

Depending on what is staged for commit, some files can be included in the resulting command but ui5lint is not able to process them. For example:

ui5lint webapp/test/integration/mock/metadata.xml webapp/view/Main.view.xml 

In this case, as webapp/test/integration/mock/metadata.xml cannot be processed by ui5lint, the whole command fails.

Describe the solution you'd like

Have a parameter to ignore files that cannot be processed. Similarly to Prettier --ignore-unknown for example.

Describe alternatives you've considered

Monkey patch the ui5-linter library.

Additional context

Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.