Style: enforce official ktlint formatting and unify root .editorconfig#28
Style: enforce official ktlint formatting and unify root .editorconfig#28calebareeveso wants to merge 1 commit into
Conversation
Change-Id: I3e8607d55a25a55bd3222b3f2a6d95e1a8c59aea
There was a problem hiding this comment.
Code Review
This pull request introduces a root-level .editorconfig file configured with the official ktlint code style and updates the Spotless configurations in both the ChatApp and agent build files to reference it. Consequently, various Kotlin source files, tests, and build scripts have been reformatted to comply with these styling rules, including adjustments to imports, line wrapping, and spacing. Additionally, the README.md has been updated with instructions on how to run Spotless formatting across the separate Gradle projects. There are no review comments, and I have no additional feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
What I added
.editorconfig: Enforcesktlint_code_style = ktlint_officialand ignores function naming on@Composablefunctions across all projects.agentandChatAppGradle files directly to the root.editorconfig(setEditorConfigPath) and deleted localized subfolder overrides.BuiltInAppFunctions.kttoBaseBuiltInAppFunctionService.ktandFakeAppFunctions.kttoBaseFakeAppFunctionService.ktto match the class names brought in by pulling from upstream (1.0.0-alpha10). This is becausektlint_officialthrows astandard:filenameSpotless build error when a file's name does not match the single class inside it.README.mdunder "Code Style" to explicitly clarify that Spotless must be run using individual subproject wrappers when executed from the repository root (./agent/gradlew -p agent spotlessApply && ./ChatApp/gradlew -p ChatApp spotlessApply).spotlessApplyacross all modules (agentandChatApp).