Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

[BUG] avoid-redundant-async false positive #1223

Open
1 task
praxa-enzo opened this issue Apr 18, 2023 · 0 comments
Open
1 task

[BUG] avoid-redundant-async false positive #1223

praxa-enzo opened this issue Apr 18, 2023 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@praxa-enzo
Copy link

praxa-enzo commented Apr 18, 2023

Environment and configuration

DCM version: 5.7.2
Dart SDK version: 2.19.6

Configuration
include: package:lints/recommended.yaml

analyzer:
  plugins:
    - dart_code_metrics

dart_code_metrics:
  rules:
  - avoid-redundant-async

What did you do?

Future<void> foo() async {
  await for (final value in Stream.fromIterable([0, 1, 2])) {
    print(value);
  }
}

What did you expect to happen?

No warnings.

What actually happened?

Linter warning: 'async' keyword is redundant, consider removing it.

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

@praxa-enzo praxa-enzo added the type: bug Something isn't working label Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants