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

New Sast Regex transformer #788

Merged
merged 2 commits into from
Aug 15, 2024
Merged

New Sast Regex transformer #788

merged 2 commits into from
Aug 15, 2024

Conversation

clavedeluna
Copy link
Contributor

Add a sast-specific regex transformer. This allows us to have the assumption that a particular line will need a particular fix, since otherwise the sast tool wouldn't have made the result.

This will partially address concerns in #603 as some codemods that use the XML parser may be able to be moved to this. I still have to figure out if we will handle the cases of "the attribute is entirely missing", instead of just match replace. But this regex sast transformer has already let me switch out two non-deterministic codemods.

Copy link

sonarcloud bot commented Aug 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@clavedeluna clavedeluna added this pull request to the merge queue Aug 15, 2024
Merged via the queue into main with commit a37e543 Aug 15, 2024
13 checks passed
@clavedeluna clavedeluna deleted the sast-regex branch August 15, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants