mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-10 20:27:13 +01:00
Fix flutter analyze infos for the push gate
Document the now-public ServerAddressTile.addresses field, wrap the prod DB-path ignore in a start/end block to avoid an >80-char line, and reflow a pre-existing >80-char comment in sync_service. flutter analyze is clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UWkAKQ48Jhg5iSPkzh8NsH
This commit is contained in:
parent
79c7d8d1c6
commit
a0923ce694
@ -285,6 +285,7 @@ class ServerAddressTile extends StatelessWidget {
|
||||
/// Creates a tile listing [addresses] (may be empty).
|
||||
const ServerAddressTile({required this.addresses, super.key});
|
||||
|
||||
/// LAN addresses the server is reachable at; empty when not started.
|
||||
final List<String> addresses;
|
||||
|
||||
@override
|
||||
|
||||
@ -86,7 +86,9 @@ class StorageService {
|
||||
Future<void> _open() async {
|
||||
final dbPath =
|
||||
_testDbPath ??
|
||||
p.join(await getDatabasesPath(), 'workout_app.db'); // coverage:ignore-line
|
||||
// coverage:ignore-start
|
||||
p.join(await getDatabasesPath(), 'workout_app.db');
|
||||
// coverage:ignore-end
|
||||
_db = await openDatabase(
|
||||
dbPath,
|
||||
version: 3,
|
||||
|
||||
@ -29,8 +29,8 @@ class SyncService {
|
||||
// Fallback: app-specific external directory (still ADB accessible).
|
||||
}
|
||||
|
||||
// External storage is Android-only; getExternalStorageDirectory() throws an
|
||||
// UnsupportedError (not an Exception) on other platforms, so guard the call.
|
||||
// External storage is Android-only; getExternalStorageDirectory() throws
|
||||
// an UnsupportedError (not an Exception) elsewhere, so guard the call.
|
||||
// coverage:ignore-start
|
||||
// Android-only: getExternalStorageDirectory is unavailable on the Linux
|
||||
// test host, so this block can't be exercised in CI.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user