Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI5 Linter complains about valid global APIs when they're stubbed or spied with SinonJS #249

Open
flovogt opened this issue Aug 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@flovogt
Copy link
Member

flovogt commented Aug 7, 2024

A call like sinon.stub(sap.ui, "require") is reported as invalid access to a global API, despite sap.ui.require being an allowed global name.

Example:

Note: This issue is more likely to occur in framework code, but apps or reuse libs might also stub or spy sap.ui.require etc.

Context

  • UI5 linter version: 0.2.2
  • Node.js Version: v20.11.1
  • npm Version: 10.2.4
  • OS/Platform: macOS 14.4.1
@flovogt flovogt added the bug Something isn't working label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant