Getting started with static analysis in Swift
summary
Introduces building a static analysis tool for Swift using SwiftSyntax. Explains how SwiftLint is not the only option, compares static-analysis benefits seen in tools like IntelliJ for Java, and demonstrates implementing and explaining a Swift-focused static analyzer to enable more advanced analyses.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:00Static analysis
- 4:19Syntax trees
- 6:08Parsing syntax trees
- 9:25Code clone detection
- 12:40Detection steps
- 15:42Variable name normalization
- 18:44Implementation example
- 19:52Summary
related talks
24mStatic Analysis: Don't Fear the Linter!
47mHow and Why I Write My Own Static Type Checker
37mKotlin on Code Quality Tools
24mTypeScript Static Analysis Hidden Gems
21mType dependence
25mStatic types in JavaScript: what, how and why
28mGoing Static, Gradually: Semantic Soundness and Telling the Truth at Scale
24mStatic Analysis and Source Code Manipulation in TypeScript
