Skip to content

Add canonical analysis_options.yaml and fix resulting lints - #57

Merged
kevmoo merged 1 commit into
mainfrom
repo-align-lints
Oct 3, 2026
Merged

kevmoo merged 1 commit into
mainfrom
repo-align-lints

Conversation

@kevmoo

@kevmoo kevmoo commented Oct 3, 2026

Copy link
Copy Markdown
Owner
  • Add root analysis_options.yaml (dart_flutter_team_lints + strict mode),
    governing all workspace members.
  • Add dart_flutter_team_lints to tool/pubspec.yaml dev_dependencies and
    sort dependencies.
  • Fix ~115 resulting findings: cascades, 80-col wraps, typed JSON /
    vm_service access, unawaited, Future<void>.delayed.
  • packages/dash_discover/test/fixtures/analysis_options.yaml disables
    four rules the fixtures deliberately violate; fixture sources untouched.
  • package_facts.dart: drop an unreachable on ArgumentError guard
    (parseString(throwIfDiagnostics: false) never throws it).

- Add root `analysis_options.yaml` (dart_flutter_team_lints + strict mode),
  governing all workspace members.
- Add `dart_flutter_team_lints` to `tool/pubspec.yaml` dev_dependencies and
  sort dependencies.
- Fix ~115 resulting findings: cascades, 80-col wraps, typed JSON /
  vm_service access, `unawaited`, `Future<void>.delayed`.
- `packages/dash_discover/test/fixtures/analysis_options.yaml` disables
  four rules the fixtures deliberately violate; fixture sources untouched.
- `package_facts.dart`: drop an unreachable `on ArgumentError` guard
  (`parseString(throwIfDiagnostics: false)` never throws it).
@kevmoo
kevmoo merged commit 9a15167 into main Oct 3, 2026
9 checks passed
@kevmoo
kevmoo deleted the repo-align-lints branch October 3, 2026 20:00
kevmoo added a commit that referenced this pull request Oct 3, 2026
- `path_package/negative/lib/idiomatic.dart` imports `package:path`; the
  fixture pubspec now says so (`path: ^1.9.0`).
- Drop the `depend_on_referenced_packages` exemption from
  `test/fixtures/analysis_options.yaml` added in #57 to paper over this.
- `PathPackageRule` never reads fixture pubspecs, so rule behavior is
  unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant