Analyse the Contents of Swift Files With SourceKitten

Inspecting the content of a Swift source file in Swift

David Piper
Better Programming
Published in
6 min readApr 12, 2020

--

Photo by Sereja Ris on Unsplash

SourceKitten is an open-source project to parse the content of and get detailed information about a Swift file. It’s used in many tools you may use regularly, like SwiftLint and Jazzy.

--

--