~/talk

Make Your Codebase More Maintainable Using custom_lint by Creating Custom Refactorings and Lint Rule

Talkat Flutter Connection 2024 · on Wednesday, 2024-04-24· [developer-experience]
links:none on file
slides:none on file

Builds a real custom_lint rule that detects Riverpod-generated subclass naming mistakes and offers an automatic fix; uses analyzer + custom_lint + custom_lint_builder, registers a plugin file, subscribes to class declarations, uses a TypeChecker to find the annotation, reports precise offsets, and implements a quick fix by extending the fix class and applying edits via changeBuilder edits. Hot reload and VM service debugging work; the rule and quick fix are implemented in ~20 minutes and function immediately.

AI-written summary · about

  1. 0:00Introduction to custom_lint
  2. 1:28Setting up the project
  3. 4:02Creating a basic lint rule
  4. 8:19Detecting class annotations
  5. 12:58Checking extends clause
  6. 15:08Adding quick fixes
  7. 18:40Editing files with fixes
  8. 20:50Debugging and testing
  9. 21:11Live coding tips
  10. 22:16Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.