Skip to content

[pigeon] Fixes lint error from unused codec - #12512

Merged
auto-submit[bot] merged 4 commits into
flutter:mainfrom
bparrishMines:pigeon_proxy_lints
Aug 19, 2026
Merged

auto-submit[bot] merged 4 commits into
flutter:mainfrom
bparrishMines:pigeon_proxy_lints

Conversation

@bparrishMines

Copy link
Copy Markdown
Contributor

Part of fixing flutter/flutter#183945.

Regenerating pigeon files will fix issue.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 19, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates Pigeon to version 27.3.2, modifying the Dart generator to avoid generating an unused codec variable when a proxy API only contains static host methods. It also adds a test case to verify this behavior. The review feedback points out a syntax error in the test where an enum is referenced with a leading dot shorthand instead of its full name, and a typo in the changelog entry.

name: 'method',
returnType: const TypeDeclaration.voidDeclaration(),
parameters: <Parameter>[],
location: .host,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

In Dart, enum values cannot be referenced with a leading dot shorthand like .host. It should be ApiLocation.host.

Suggested change
location: .host,
location: ApiLocation.host,

Comment thread packages/pigeon/CHANGELOG.md Outdated
@@ -1,3 +1,7 @@
## 27.3.2

* [dart] Fixes lint warning from unused codec variable in Dart proxy classesg.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo at the end of the line: classesg. should be classes..

Suggested change
* [dart] Fixes lint warning from unused codec variable in Dart proxy classesg.
* [dart] Fixes lint warning from unused codec variable in Dart proxy classes.

@bparrishMines bparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 19, 2026
@auto-submit
auto-submit Bot merged commit b33d933 into flutter:main Aug 19, 2026
13 checks passed
@bparrishMines
bparrishMines deleted the pigeon_proxy_lints branch August 20, 2026 11:50
pull Bot pushed a commit to Superoldman96/flutter that referenced this pull request Aug 20, 2026
…r#191420)

flutter/packages@fdd7d39...1785501

2026-08-20 [email protected] [material_ui]
Cleans up shader files and exposes ink_splash shader
(flutter/packages#12421)
2026-08-19 [email protected] [material_ui] Fixes
typo in code and tests (flutter/packages#12503)
2026-08-19 [email protected] [pigeon]
Fixes lint error from unused codec (flutter/packages#12512)
2026-08-19 [email protected]
[camera_android_camerax] Add explicit concurrent-futures dependency
(flutter/packages#12373)
2026-08-19 [email protected] [go_router]
migrates to material_ui and cupertino_ui (flutter/packages#12504)
2026-08-19 [email protected] [animations] Migrate to material_ui
(flutter/packages#12467)
2026-08-19 [email protected] [material_ui] Add
Material tokens (version 38.2.50) (flutter/packages#12471)
2026-08-19 [email protected] Add
`triage-design` label (flutter/packages#12488)
2026-08-19 [email protected]
[google_maps_flutter_platform_interface] Fix PinConfig code sample
(flutter/packages#12259)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: pigeon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants