Skip to content

fix: disable deprecated lint in recommended preset - #135

Merged
riscait merged 3 commits into
mainfrom
codex/disable-unnecessary-await-in-return
Sep 30, 2026
Merged

riscait merged 3 commits into
mainfrom
codex/disable-unnecessary-await-in-return

Conversation

@riscait

@riscait riscait commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Disable the deprecated unnecessary_await_in_return rule in the recommended preset and the package's own analysis options.
  • Keep all_lint_rules.yaml aligned with Dart's generated all-rules list.
  • Update the related comments and changelog.

Dart deprecates this lint because following it everywhere can lead to unexpected errors: https://dart.dev/tools/linter-rules/unnecessary_await_in_return

Verification

  • dart analyze packages/altive_lints — no issues.
  • A focused analyzer check reports unnecessary_await_in_return with all_lint_rules.yaml (1 diagnostic) and suppresses it with altive_lints_preset.yaml (0 diagnostics).
  • git diff --check — no issues.

@riscait
riscait requested a review from a team as a code owner September 30, 2026 13:23
@riscait
riscait requested review from k-nkmr and removed request for a team September 30, 2026 13:23
@riscait riscait changed the title fix: disable deprecated unnecessary_await_in_return lint fix: disable deprecated lint in recommended preset Sep 30, 2026
@riscait
riscait merged commit d28e828 into main Sep 30, 2026
1 check passed
@riscait
riscait deleted the codex/disable-unnecessary-await-in-return branch September 30, 2026 14:24
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