-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update Swift #523
base: main
Are you sure you want to change the base?
Update Swift #523
Conversation
Thanks! Marking as draft while you are working on this. Please mark as ready for review once that is the case! |
@nmote No problem! I've followed the guide (although it's a little confusing in place - especially when I've never touched a lot of these technologies!). I'm unsure how to properly test that this will integrate fine with semgrep. Do you have any advice or documentation I could take a look at? I've been following this: https://semgrep.dev/docs/contributing/updating-a-grammar but of course I can't do the release part - I wanted to verify nothing has broken by updating this grammar first however. Thanks! |
Apologies, this notification must have fallen through the cracks! It's not well-documented, but you can do a dry-run release and then push the changes from the local copy of Although, this looks to be just a straightforward update to the tree sitter grammar. I'd be happy to release Please mark this ready for review to put this back in my review queue, or ping me on the community slack if you need more questions answered. I'm buried in GitHub notifications so I'm likely to miss just a comment. |
No problem!
I eventually figured this might be the way to go so I've already started - there's a fair bit to do as Swift has changed a lot and I'm learning OCaml for this so it will need a thorough review when it's ready.
Done! Thanks! |
Sounds like you're not currently blocked on this, then. I'll let you continue as-is unless you need a release of When the time comes I'll be happy to help by releasing intermediate versions of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated semgrep-swift
with these changes: semgrep/semgrep-swift@7214b84
You can now incorporate that into your Semgrep PR to make the check-submodule
job happy.
As always, please re-request review on this PR if you need something from me!
Checklist
I've opened this MR to update an aging Swift grammer. Semgrep is unable to scan most Swift files I've tried it against (because of things like freestanding
#Preview
macros).I'm not fully up to speed on item one on this list, so I've marked this as a WIP until I can figure that piece out (but I'm away from my computer from Saturday for a week - so it may take a while).
Thanks!