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

Add Export Report option to IDE #597

Open
arunpradhan opened this issue Jan 3, 2024 · 3 comments
Open

Add Export Report option to IDE #597

arunpradhan opened this issue Jan 3, 2024 · 3 comments
Labels
backlog enhancement VSCode Related to the VS Code extension

Comments

@arunpradhan
Copy link

arunpradhan commented Jan 3, 2024

Is your feature request related to a problem? Please describe.
There were no options to export the consolidated report of the project within Microsoft Visual Code. The report will help in so many cases for marking of solution status.
Currently I can view the report with JSON and table format but there was no option to export that report apart from copy paste functionality for one-by-one file.
JFYI, I am using PHP language for application.

@gfs gfs added the VSCode Related to the VS Code extension label Jan 3, 2024
@gfs
Copy link
Contributor

gfs commented Jan 3, 2024

@arunpradhan thanks for the feedback. There is currently no capability in the IDE extension to export a sarif/json of the results. If you want a standalone report you can use the CLI to generate one. In the simplest case (which should match the default behavior in the ide for issues surfaced) install the CLI (https://github.com/microsoft/DevSkim/wiki/Command-Line-Interface) and then run devskim analyze --source-code /path/to/src --output-file out.sarif to generate a sarif report of detected issues.

@arunpradhan
Copy link
Author

Hi @gfs,
Thanks for the help, I am able to generate the report.

@gfs gfs changed the title Export Report option is missing Add Export Report option to IDE Jan 8, 2024
@gfs
Copy link
Contributor

gfs commented Jan 8, 2024

Changed the title of this issue to reflect a feature request for this. I'm not sure of the feasibility, as the IDE extensions operate on only open files, and do not have access to files that aren't opened so it would be difficult to generate a holistic report. Considering arun was satisfied with the workaround of using the CLI to generate a portable report I'll leave this open for feedback but we aren't actively pursuing adding this at this time.

@gfs gfs added the backlog label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement VSCode Related to the VS Code extension
Projects
None yet
Development

No branches or pull requests

2 participants