-
Notifications
You must be signed in to change notification settings - Fork 397
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
Silencing analyzer warnings #625
Comments
@kevmoo I just tried the build.yaml and I now see this.
Is there a specific version of build_runner/source_gen this feature was added in? |
I found it.. |
👍
…On Sun, Mar 29, 2020, 10:44 Simon Lightfoot ***@***.***> wrote:
I found it.. source_gen: 0.9.5
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#625 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEFCS6VWTHLZNL4L45BKDRJ6CJRANCNFSM4LV2GGDA>
.
|
Thanks for the pointer @kevmoo and @slightfoot. I'm up and running now... Even with the nudge in the right direction, I must admit I wasn't sure exactly what I needed to do... the way I read the source_gen doc, it looks like the So, just in case anyone else has this problem, the fix I ended up doing was as follows:
Note also: don't confuse |
For how we found out how to do this, see: google/json_serializable.dart#625
For how we found out how to do this, see: google/json_serializable.dart#625
The generated code from
3.3.0
causes some output that violates a couple of the analyzer rules. Sadly, though, I don't seem to be able to ignore generated files in my flutter project due to dart-lang/sdk#25551I've confirmed that if I manually add an
ignore_for_file
line in the generated file, the warnings go away.Happy to create a PR if someone can give me a nudge in the right direction of which file is the likely best place. Thanks
Flutter version
The text was updated successfully, but these errors were encountered: