Turn your codebase into data with Static Code Analysis
summary
Claim: turn a codebase into queryable data by parsing ASTs as JSON and running deterministic static analysis to produce dashboards and scorecards. Tools shown include ESLint plugins, astexplorer.net, and Tree-sitter parser; a custom script replaces a token‑heavy AI approach and processes a mono repo of quarter of a million files to find every pattern. War stories: one missed git URL match triggers a deleted repo that breaks builds for a quarter or two; switching to a Postgres parser for SQL fixes complex aliasing and semantics.
AI-written summary · about
chapters (22)
- 0:00Introduction and speaker intro
- 1:36Speaker background and hiring pitch
- 2:21Codebase growth and complexity challenges
- 4:09Treating code as data with analysis
- 5:32Dynamic vs static code analysis
- 7:36Abstract syntax trees explained
- 9:02Syntax tree example and AST vs CST
- 11:27Static analyzers and linters overview
- 12:53Custom static analysis with ESLint
- 14:18Limitations of find-in-project approach
- 15:01Reports dashboards and scorecards
- 16:06Scenario one migrating to design system
- 17:33Scenario two tracking library dependencies
- 18:37War story one deleting legacy microservice
- 20:05Static analysis vs AI comparison
- 21:48War story two AI token waste in mono repo
- 24:17Combining static analysis and AI
- 25:42AI-native analysis tools and tool calls
- 26:44Useful resources and tools overview
- 27:27Tree Sitter and parser generators
- 29:13War story three SQL analysis pitfalls
- 30:39Key takeaways and closing
