You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing ui5lint with a specified file path pattern, it should report findings the same findings as the linter would detect when executed in the specified directory.
ui5lint my/path/* and (cd my/path/ && ui5lint) should report the same results.
Current Behavior
ui5lint test/sap/ui/core/demokit/tutorial/mockserver/01/* shows an error
Error Message:
Specified file patterns 'test/sap/ui/core/demokit/tutorial/mockserver/01/Component.js', 'test/sap/ui/core/demokit/tutorial/mockserver/01/manifest.json', 'test/sap/ui/core/demokit/tutorial/mockserver/01/package.json', 'test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml', 'test/sap/ui/core/demokit/tutorial/mockserver/01/webapp' did not match any resource
Just a note: The case described in the issue is rather special and we need to make it clear that there will be certain limitations and exceptions. The test/sap/ui/core/demokit/tutorial/mockserver/01/ path in sap.ui.core is a project itself within the sap.ui.core library (main project).
The results in such case would indeed differ when the user lints the project from sap.ui.core or CDs into test/sap/ui/core/demokit/tutorial/mockserver/01/.
The reason is that the linter searches for certain files like ui5.yaml only in the root folder of the project. And in the case of linting from sap.ui.core, the root would be sap.ui.core and ui5.yaml in test/sap/ui/core/demokit/tutorial/mockserver/01/ would be skipped
Expected Behavior
When executing
ui5lint
with a specified file path pattern, it should report findings the same findings as the linter would detect when executed in the specified directory.ui5lint my/path/*
and(cd my/path/ && ui5lint)
should report the same results.Current Behavior
ui5lint test/sap/ui/core/demokit/tutorial/mockserver/01/*
shows an errorSteps to Reproduce the Issue
src/sap.ui.core/
ui5lint test/sap/ui/core/demokit/tutorial/mockserver/01/*
(cd test/sap/ui/core/demokit/tutorial/mockserver/01/* ui5lint)
the findings are correctly reportedContext
v1.0.1
v22.9.0
v10.8.9
macos15
The text was updated successfully, but these errors were encountered: