mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 21:27:14 +01:00
sync_settings_widget.dart 68 — the public StatefulWidget and its callbacks sync_settings_sections.dart 132 — the two sections the screen composes sync_settings_screen.dart 192 — the State: loading, connecting, build Uses `part`/`part of`, not imports: _FirebaseSection and _BackupSection are library-private, so a sibling file cannot import them at all — extracting them as ordinary files would not compile. Two shapes tried and rejected on the way: an `extension _BackupActions` on the State (an extension cannot call the protected setState), and moving build() out of the class (it is an @override and has to stay). Both reverted from HEAD rather than patched around. flutter analyze clean, 29 tests pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG
39 lines
993 B
YAML
39 lines
993 B
YAML
include: package:very_good_analysis/analysis_options.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
strict-inference: true
|
|
strict-raw-types: true
|
|
errors:
|
|
# Promote key lints to errors so they fail CI, not just warn.
|
|
missing_required_param: error
|
|
unnecessary_null_comparison: error
|
|
dead_code: error
|
|
invalid_annotation_target: error
|
|
exclude:
|
|
- build/**
|
|
- "**/*.g.dart"
|
|
- "**/*.freezed.dart"
|
|
- "test/**"
|
|
- android/**
|
|
- ios/**
|
|
- web/**
|
|
- windows/**
|
|
- macos/**
|
|
- linux/**
|
|
|
|
linter:
|
|
rules:
|
|
# very_good_analysis enables most rules; add extras it doesn't include.
|
|
always_use_package_imports: true
|
|
avoid_print: true
|
|
avoid_relative_lib_imports: true
|
|
cancel_subscriptions: true
|
|
close_sinks: true
|
|
comment_references: false # conflicts with typical Flutter API docs style
|
|
directives_ordering: true
|
|
lines_longer_than_80_chars: true
|
|
public_member_api_docs: true
|
|
unawaited_futures: true
|