Easier Lint Authoring with Semantic Search and (...)
summary
ELP (Erlang Language Platform) adds lints by matching AST shapes with SSR (structural search and replace) backed by a tree‑sitter grammar, running in VS Code/Emacs/Neovim or CLI and emitting JSON for CI. A concrete example: a diagnostic W0051 (weak warning, one of 51 existing) detects binary strings and offers an automatic fix to sigil syntax; implementation is Rust code that produces a ranged diagnostic plus a replace edit and can apply changes in place producing a diff.
AI-written summary · about
chapters (9)
- 0:00ELP introduction
- 3:14ELP diagnostics and lints
- 7:46Adding new diagnostics
- 10:12Diagnostic checker function
- 13:22Structural search and replace
- 16:30SSR placeholders
- 17:55Diagnostic fixes
- 19:03Community inspiration
- 19:47Q&A








