Skip to content

Exciting News: Semgrep Now Experimentally Supports Swift!

Original Post: Announcing Semgrep's experimental support of Swift

Semgrep, a static analysis tool designed to support every programming language, has announced that Swift has achieved experimental status. Semgrep’s Swift parse rate is 94%, surpassing the 90% requirement for experimental status. Basic features such as metavariables are functioning correctly. This milestone was largely achieved through the work of Alex Pinkus and his Swift Tree-sitter grammar.

Although there are currently no predefined Swift rules in the registry, users can write custom rules to start analyzing Swift code. Users can scan their Swift code by adding their project to the Semgrep App for automatic scans on PRs/MRs or by upgrading to Semgrep v0.111.0 or higher and running semgrep --config=auto from the command line.

For contributions or bug reports related to Swift rules, users are encouraged to check the documentation. Questions can be directed to the community via the Semgrep Slack channel.

Go here to read the Original Post

Leave a Reply

Your email address will not be published. Required fields are marked *