googlearchive / pedantic

How to get the most value from Dart static analysis
https://pub.dev/packages/pedantic
BSD 3-Clause "New" or "Revised" License
324 stars 56 forks source link

Getting dart analyses warning for auto generated file #48

Closed polina-c closed 4 years ago

polina-c commented 4 years ago

I am getting noisy warning Unused import: 'dart:ui'. for the file 'generated_plugin_registrant.dart'

dart:ui is really unused here, however I do not want to update an auto-generated file

srawlins commented 4 years ago

Typically code generators use // ignore_for_file: unused_import etc for generated files in which it is hard to generate perfect code. See more on suppression here.

polina-c commented 4 years ago

Yes. This generator does not do this. I guess the file 'generated_plugin_registrant.dart' is generated by flutter engine.

Submitted issue to them: https://github.com/flutter/flutter/issues/49983

Should this one be closed?

davidmorgan commented 4 years ago

Yes, I'll close it. Thanks :)