-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Linter tool support for embedded SDKs. #57367
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
Comments
Perhaps the linter hasn't been updated to understand embedder files. Note that dartanalyzer will also produce lints when passed the |
Does the |
It is suppose to. I'm not sure why they're different. Does dartanalyzer report other lints enabled in the analysis options file? |
I see. We didn't have the |
👍 This is right. @yyoon : is |
@pq BTW, why are there these two separate tools in the first place, when |
cc @kevmoo |
The Having said that, I did add some display tweaks that you may miss. What specifically would you like to see continue? Maybe we can upstream those bits to |
The
whereas
It'd be nice to have the same display format in |
Thanks! Feel free to open a feature request on the cc @bwilkerson |
Just created on issue there. Thanks! |
Title updated to highlight the underlying issue (the linter tool does not know about embedded SDKs). |
Closing in favor of any follow-ups on the analyzer side. |
In our Flutter code, we use some classes / enums in
dart:ui
extended bysky_engine
.Linter seems to think these classes are undefined, which is not the case.
Steps to reproduce:
flutter create
lib/main.dart
, Modify the text widget in the sample code to useFontWeight.bold
style, which is defined indart:ui
.dartanalyzer
doesn't show any errors, but runningpub global linter .
gives the following warning:The last two are valid lint issues, but the first one is false positive.
@dvdwasibi @sethladd
The text was updated successfully, but these errors were encountered: