Skip to content

Commit 6d14be2

Browse files
committed
chore: Add style guide to gemini.md
1 parent 0bd7666 commit 6d14be2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

sdk-platform-java/GEMINI.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,21 @@ Showcase integration tests are run against a local server that implements the Sh
131131
cd java-showcase
132132
mvn verify -P enable-integration-tests
133133
```
134-
135-
## 5. Dependency Management
134+
## 5. Style Guide
135+
136+
1. Minimize scope; avoid `public` unless necessary.
137+
2. Use short names over fully qualified names.
138+
3. Avoid `@ObsoleteApi` or `@Deprecated` methods unless necessary.
139+
4. Avoid unnecessary formatting changes to keep diffs clean.
140+
5. Use `mvn` for everything other than the `test/integration` folder.
141+
142+
## 6. Dependency Management
136143

137144
- Try not to bump any external dependency version unless there is a known CVE (security or vulnerability issue) or a critical bug fix.
138145
- Try to avoid introducing new external dependencies. If a new dependency is required, please state the reason.
139146
- Prefer to use features from the Java standard library, then try to use features from any existing dependencies (preferably from Google managed dependencies).
140147

141-
## 6. Contribution Guidelines
148+
## 7. Contribution Guidelines
142149

143150
- **Commits:** Commit messages should follow the [Conventional Commits](https://www.conventionalcommits.org/)
144151
specification. The format is `<type>: <description>`. The type should be one of the following: fix, feat,

0 commit comments

Comments
 (0)