mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 15:02:21 +02:00
chore(analysis): analyze hand-written l10n files and correct the lint comment
Only the generated app_localizations*.dart files need excluding; l10n.dart and supported_locales.dart are hand-written. The unreachable_from_main comment now states what the lint actually checks.
This commit is contained in:
1 parent
7cef0700cc
commit
f8f911c920
1 file changed
+5
-3
@@ -9,7 +9,7 @@ analyzer:
|
||||
- .dart_tool/**
|
||||
- docs/internal/**
|
||||
- lib/**/*.g.dart
|
||||
- lib/l10n/*.dart
|
||||
- lib/l10n/app_localizations*.dart
|
||||
- android/**
|
||||
- ios/**
|
||||
- web/**
|
||||
@@ -31,6 +31,8 @@ linter:
|
||||
type_annotate_public_apis: true
|
||||
cancel_subscriptions: true
|
||||
close_sinks: true
|
||||
# Catches dead cross-layer chains (Dart wrapper kept alive only by its own
|
||||
# declaration) before they accumulate into another dedup campaign.
|
||||
# Reports top-level declarations unreachable from the `main` of an
|
||||
# analyzed executable library (the app entry point and test files). It does
|
||||
# not detect unused public members of library files, such as services or
|
||||
# providers, which have no `main` of their own.
|
||||
unreachable_from_main: true
|
||||
Reference in new issue
Block a user