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
Alternative to extract mode for Vue / HTML files #10021
Labels
Comments
Oh, I guess the metavariable pattern could be an alternative? https://semgrep.dev/docs/writing-rules/rule-syntax/#example-match-javascript-code-inside-html |
Yes, for your use case, I believe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
We have been using the experimental extract mode which was removed with #9891 and planned on using it more.
For example: https://gitlab.com/gitlab-org/frontend/playground/gitlab-code-scanner/-/blob/0d1e562a6769281b99f995cbe6a85ced801f1772/rules/dateFormatting/dateFormatting.yml
The use case for us, is Vue single file components which are a template language (more or less HTML) which can contain
script
(and other) tags. Inside thescript
tags e.g. JavaScript and TypeScript can be used:Describe the solution you'd like
Describe alternatives you've considered
N/A?
Use case
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: