fix(AIP-191): skip java_multiple_files for edition >= 2024#1608
fix(AIP-191): skip java_multiple_files for edition >= 2024#1608noahdietz merged 3 commits intogoogleapis:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request updates the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly updates the java_multiple_files rule to skip files using Protobuf editions 2024 or newer. My review identified a duplicate import in java_multiple_files.go that will cause a compilation failure, and an issue where the new test case in java_multiple_files_test.go doesn't properly test the new edition-checking logic due to a missing package in the test setup. My review includes suggestions to fix these issues.
java_multiple_filesoption was removed in Protobuf Edition 2024. Only execute this rule if the descriptor uses an syntax/edition value earlier than edition2024.Note: proto2/proto3 syntax are captured in the
Editionenum as "smaller" values allowing us to do a simple "less than edition 2024" check.Addresses internal bug report http://b/485818131