~/talk

Exploring Static Code Analysis techniques in Flutter

Talkat Fluttercon Europe 2024 · 2024-07-03..07-05· [testing, developer-experience]
links:none on file
slides:none on file

A tiny Flutter app called Magic Beast gets refactored purely by static checks run on CI using GitHub Actions, flutter format, flutter analyze and dart fix; enabling all lints surfaces about 70 then 163 issues as the analysis tightens, and Dart Code Metrics (DCM) finds duplicate widgets and unused files, collapsing five near-identical beast widgets into one reusable component; dependency and duplication checks run, some fixes are autoapplied, and a custom lint enforces the Firebase Analytics 40-char rule with an autofix.

AI-written summary · about

  1. 0:00Static analysis in Flutter
  2. 2:56Magic Beast demo app setup
  3. 4:20Code formatting checks in CI
  4. 6:04Dart and Flutter lints config
  5. 9:10Strict code quality with all lints
  6. 12:24DCM for advanced analysis
  7. 16:15Custom DCM lints
  8. 17:22Unused dependencies detection
  9. 18:28Duplicate and unused code
  10. 19:29Widget similarity analysis
  11. 22:41Custom lints for Firebase Analytics
  12. 28:19Advanced analysis techniques
  13. 29:47Automating fixes and workflows
  14. 30:08Robust analysis system summary
~/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.