Home / Companies / Semgrep / Blog / Post Details
Content Deep Dive

Announcing Semgrep's experimental support of Swift

Blog post from Semgrep

Post Details
Company
Date Published
Author
Nat Mote
Word Count
280
Language
English
Hacker News Points
-
Summary

Semgrep has expanded its static analysis capabilities by reaching experimental status for the Swift programming language, achieving a 94% parse rate thanks to the Swift Tree-sitter grammar developed by Alex Pinkus. This advancement allows basic Semgrep features, such as pattern matching and metavariables, to function correctly with Swift. While no Swift-specific rules exist in the registry yet, users can write custom rules to scan their Swift code or set up Semgrep to automatically analyze codebases for changes via GitHub or GitLab integrations. Users are encouraged to contribute by creating Swift rules or reporting issues, and they can find support through the community Slack and documentation resources.