Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGoogle Chrome: Unfinished Projects: Solange’s Public Sculpture(21.09.2026 um 17:02 Uhr)
Windows Tipps & SecurityBlurry or pixelated video in Microsoft Teams(21.09.2026 um 14:34 Uhr)
Sicherheitslücken (CVE)USN-8791-1: Ghostscript vulnerability(21.09.2026 um 14:51 Uhr)
Sicherheitslücken (CVE)USN-8792-1: Memcached vulnerability(21.09.2026 um 15:02 Uhr)
Sichere ProgrammierungI stopped rewriting the same Electron boilerplate — so I packaged it(21.09.2026 um 17:28 Uhr)
YouTube Security VideosGoogle Chrome: Unfinished Projects: Solange’s Public Sculpture(21.09.2026 um 17:02 Uhr)
Windows Tipps & SecurityBlurry or pixelated video in Microsoft Teams(21.09.2026 um 14:34 Uhr)
Sicherheitslücken (CVE)USN-8791-1: Ghostscript vulnerability(21.09.2026 um 14:51 Uhr)
Sicherheitslücken (CVE)USN-8792-1: Memcached vulnerability(21.09.2026 um 15:02 Uhr)
Sichere ProgrammierungI stopped rewriting the same Electron boilerplate — so I packaged it(21.09.2026 um 17:28 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

fscan: Find dead code in your Flutter project from the command line

Your Flutter project probably has more dead code than you think. Dart's analyzer is great at catching type errors. It won't tell you that lib/features/onboarding/legacy_screen.dart hasn't been imported since March, or that…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Your Flutter project probably has more dead code than you think.



Dart's analyzer is great at catching type errors. It won't tell you that

lib/features/onboarding/legacy_screen.dart hasn't been imported since March,

or that assets/images/old_logo.png is still in your pubspec but never rendered.



I built fscan to solve this. It's a CLI tool written in Go that performs

static dead-code analysis across your entire Flutter/Dart project.






What it catches





  • Unused files — walks the import graph from your entry points, flags orphans


  • Unused assets — cross-references pubspec.yaml with actual usage in code


  • Unused public API — classes, functions, and widgets with no external callers


  • Unused routes — supports auto_route, go_router, and Navigator named routes


  • Maybe-unused methods — owner-class-aware matching to minimize false positives



Framework-aware

Flutter requires you to declare build(), initState(), dispose(), and

createState() — but you never call them directly. fscan skips all framework

lifecycle methods and @override annotations.



Generated file handling

.g.dart, .gen.dart, .gr.dart, .freezed.dart files are excluded from

unused-file detection. But they're still read as reference sources — so your

flutter_gen typed accessors and freezed models count as "used."



Owner-class-aware method analysis

A method named load() in BookService is tracked separately from load() in

UserService. No cross-class false positives from common method names.



Same-file self-reference detection

A public method called only within the same file (e.g., called in an event handler

above its declaration) is correctly marked as used.






Install






  brew install beobeodev/tap/fscan
# or
npm install -g @beobeodev/fscan
# or
go install github.com/beobeodev/fscan@latest









Run






  fscan scan /path/to/your/flutter/project






GitHub: https://github.com/beobeodev/fscan



Two severity levels




  • Errors = high confidence, safe to delete

  • Warnings = may be intentional (public API, dynamic routing) — review first

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten fscan: Find dead code in your Flutter project from the command line

Thematisch verwandte Begriffe: fscan, Find, dead, code · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94393 | When a user creates or edits a report inside an event, MISP can identify…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick