~/talk

Bespoke Artisanal Swift Static Analysis

Talkat Swift & Fika 2018 · on Monday, 2018-09-10· [swift]
slides:none on file

Shows how to build custom Swift static analysis using SourceKit requests (editor open, index, cursor info) plus SwiftLint’s analyzer pipeline to get type-checked info without forking the compiler. Implements rules to find dead code and unused imports, runs via swiftlint analyze with build log compiler args, and uncovers concrete results: about 1,400 unused imports and removal of 70 direct dependencies at Lyft. Notes limitations like missing USRs for operators and false positives for IBOutlets and protocol-only use, and uses SourceKit and SwiftLint as the core tools.

AI-written summary · about

  1. 0:00Start
  2. 0:50What Is Static Analysis
  3. 2:56Objective C
  4. 6:51The Ingredients of a Static Analysis Pipeline
  5. 8:28Swift Lint
  6. 10:12Source Kit
  7. 11:53Index Request
  8. 14:10Unique Symbol Resolution Identifier
  9. 23:16Challenges
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.