Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken linter around enum and import order #55

Closed
ghost opened this issue Apr 19, 2022 · 2 comments
Closed

Broken linter around enum and import order #55

ghost opened this issue Apr 19, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 19, 2022

Hello,

I didn't find the reason, but the linter got confused around my import for no special reason (no double enum / class with the same name) and i got the following behavior which is funny :

Enum is type DownloadType (good)
Capture d’écran 2022-04-19 à 10 52 00

Enum instance variable is dynamic...
Capture d’écran 2022-04-19 à 10 52 05

When playing with import order this issue disappear but as I used this rule : directives_ordering I can't. If i remove the comma just after DownloadType downloadType, error disappear... So seems like parsing error from the linter.

@passsy
Copy link
Owner

passsy commented May 2, 2022

Thanks for taking the time to report this issue. Unfortunately, this is an analyzer issue and can't be fixed by this package. You might want to report it to https://github.com/dart-lang/sdk directly

@passsy passsy closed this as completed May 2, 2022
@ghost
Copy link
Author

ghost commented May 3, 2022

When I comment all rules inside the analysis_optins.yaml then the error disappear and come back when enabling all rules.
Issue seems be related to this package so :/

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

No branches or pull requests

1 participant