From 2944ec166faa5ab3de4856e997717a1690e52b68 Mon Sep 17 00:00:00 2001 From: NITISH-R-G <225521762+NITISH-R-G@users.noreply.github.com> Date: Tue, 25 Aug 2026 10:05:39 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Resolve=20linter=20warnings=20an?= =?UTF-8?q?d=20remove=20ignore=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add `header: ""` to `l10n.yaml` to prevent `// ignore: unused_import` generation - Exclude `lib/l10n/**` from analysis in `analysis_options.yaml` - Remove unused `_ref` fields in `family_circle_service.dart` and `webrtc_voice_call_service.dart` while retaining constructor contract - Replace `// ignore: discarded_futures` with `unawaited()` in `first_aid_screen.dart` Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- analysis_options.yaml | 4 ++++ l10n.yaml | 1 + lib/services/family_circle_service.dart | 4 ---- lib/services/webrtc_voice_call_service.dart | 5 +---- lib/ui/first_aid_screen.dart | 3 +-- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index ce0711f..20b344f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -9,6 +9,10 @@ # packages, and plugins designed to encourage good coding practices. include: package:flutter_lints/flutter.yaml +analyzer: + exclude: + - "lib/l10n/**" + linter: # The lint rules applied to this project can be customized in the # section below to disable rules from the `package:flutter_lints/flutter.yaml` diff --git a/l10n.yaml b/l10n.yaml index 15338f2..360fe44 100644 --- a/l10n.yaml +++ b/l10n.yaml @@ -1,3 +1,4 @@ arb-dir: lib/l10n template-arb-file: app_en.arb output-localization-file: app_localizations.dart +header: "" diff --git a/lib/services/family_circle_service.dart b/lib/services/family_circle_service.dart index 8ab87c7..a920e04 100644 --- a/lib/services/family_circle_service.dart +++ b/lib/services/family_circle_service.dart @@ -165,13 +165,9 @@ class FamilyCircleService extends StateNotifier { // Ref is currently unused but kept in the constructor so future work // (FCM push, profile sync) can read other providers without changing the // call-site contract. - _ref = ref; _bootstrap(); } - // ignore: unused_field - Ref? _ref; - RealtimeChannel? _peerChannel; Timer? _publishTimer; StreamSubscription? _positionSub; diff --git a/lib/services/webrtc_voice_call_service.dart b/lib/services/webrtc_voice_call_service.dart index 573d39f..a0bcc2e 100644 --- a/lib/services/webrtc_voice_call_service.dart +++ b/lib/services/webrtc_voice_call_service.dart @@ -92,13 +92,10 @@ class VoiceCallState { /// behind symmetric NAT may fail. Acceptable for hackathon demo on WiFi / /// 4G with the same operator; production should add a Coturn TURN server. class WebRtcVoiceCallService extends StateNotifier { - WebRtcVoiceCallService(this._ref) : super(const VoiceCallState()) { + WebRtcVoiceCallService(Ref ref) : super(const VoiceCallState()) { _bootstrap(); } - // ignore: unused_field - final Ref _ref; - RTCPeerConnection? _pc; MediaStream? _localStream; RealtimeChannel? _ringChannel; diff --git a/lib/ui/first_aid_screen.dart b/lib/ui/first_aid_screen.dart index e0fe1e3..b28fcd0 100644 --- a/lib/ui/first_aid_screen.dart +++ b/lib/ui/first_aid_screen.dart @@ -81,8 +81,7 @@ class _FirstAidScreenState extends ConsumerState { _result = res; }); // Side-channel: keep FirstAidStore primed (used elsewhere) — best-effort. - // ignore: discarded_futures - FirstAidStore.getVerifiedAdvice(query); + unawaited(FirstAidStore.getVerifiedAdvice(query)); } on Object { setState(() { _error = 'Could not load first-aid guidance on this device.';