[pigeon] Tidy imports and "ignore" comments#11149
[pigeon] Tidy imports and "ignore" comments#11149srawlins wants to merge 4 commits intoflutter:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the Dart code generator for Pigeon. The changes include:
- Modifying the generated
ignore_for_filecomments to usetype=lint, which disables all lint rules for the generated files. - Removing the import of
Uint8Listfromdart:typed_datain generated files. - Changing the source of annotations (e.g.,
@immutable) from the Flutterfoundationlibrary to themetapackage.
These generator changes are reflected in the updated example and test files. The package version inpubspec.yaml,CHANGELOG.md, andgenerator_tools.darthas been updated to26.1.10.
We should make this something we can override internally for our own test generation; while we don't want to fail client analysis, we also don't want to introduce actual problems that lints would catch without our CI telling us. (E.g., if we leave out an |
|
That's a great idea! Is there one (or a few) cental spot where I could put a flag, for code generation "for/during tests"? Are there already tests that assert that new code doesn't have warnings or lints? Or is that mainly the checked-in code-generated files? |
Uint8Listappears to be no longer needed.foundation.dartwas imported was for the annotations exported by the meta package.Pre-Review Checklist
[shared_preferences]///).