Sitelet https://github.com/flutter/flutter/pull/189930
Skip to content

Instruct gemini code assist not to comment on syntax error - #189930

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
chingjun:gemini-code-prompt-no-syntax
Aug 9, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
chingjun:gemini-code-prompt-no-syntax

Conversation

@chingjun

Copy link
Copy Markdown
Contributor

Gemini doesn't know new Dart syntax, and is only adding noise in that case.

@chingjun
chingjun requested a review from jtmcdole July 23, 2026 16:48
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jul 23, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Comment thread .gemini/styleguide.md
- **Search for counter-examples**: Identify scenarios or edge cases that the proposed code does not handle. If a counter-example is found, propose a test case to demonstrate the gap.
- **Suggest simplification and refactoring**: Assess whether the code can be made simpler or refactored to enhance readability and maintainability.

### What Not to Report

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.

It should still report them if the analyzer does though, right? Should we see how to teach the agent about new Dart features?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If the error would have been caught by another presubmit anyway, the comment is just adding noise. It's like having two tests that run the exact same test.

Another reason is future proof. While I agree that it would be better to teach the agent about new Dart features so that it knows when to use them (and we should definitely add that when the Dart team publishes the official skill for that), with this change at least it won't add noise on things that it has outdated information about.

@Piinks Piinks added the c: agentic-engineering Tooling, documentation, tests related to LLM use label Jul 27, 2026
@chingjun chingjun added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 7, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 7, 2026
@auto-submit

auto-submit Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/189930, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: agentic-engineering Tooling, documentation, tests related to LLM use CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants