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

JavaScript: Add support for indexing additional SAP related JSON files #19117

Merged
merged 3 commits into from
Mar 31, 2025

Conversation

lcartey
Copy link
Contributor

@lcartey lcartey commented Mar 25, 2025

This PR adds automatic extraction for a few additional JSON formatted files:

These files are used by the queries in https://github.com/advanced-security/codeql-sap-js.

@Copilot Copilot bot review requested due to automatic review settings March 25, 2025 17:13
@lcartey lcartey requested a review from a team as a code owner March 25, 2025 17:13
@github-actions github-actions bot added the JS label Mar 25, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request extends the extractor functionality to automatically index additional SAP-related JSON files.

  • Updated Javadoc comments in AutoBuild.java to document the new JSON file types.
  • Added new file filters in the setupFilters() method for xs-app.json, *.view.json, and manifest.json.
Files not reviewed (4)
  • javascript/extractor/tests/ui5/input/test.view.json: Language not supported
  • javascript/extractor/tests/ui5/output/trap/test.view.json.trap: Language not supported
  • javascript/extractor/tests/xsjs/input/xs-app.json: Language not supported
  • javascript/extractor/tests/xsjs/output/trap/xs-app.json.trap: Language not supported

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
A DCA evaluation shows some new files extracted, but definitely not an overwhelming amount.

I'm not sure why the language tests aren't running in the CI though?

Copy link
Contributor

@asgerf asgerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI checks are green

@asgerf asgerf merged commit ee867e9 into github:main Mar 31, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants