Skip to content

Commit 1b52e89

Browse files
authored
Configure Gemini code review (#2141)
1 parent 5e977d6 commit 1b52e89

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.gemini/config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github#custom-configurations
2+
3+
have_fun: false # We are serious people in the Dart team!
4+
code_review:
5+
disable: false
6+
comment_severity_threshold: MEDIUM
7+
max_review_comments: 100
8+
pull_request_opened:
9+
help: true
10+
summary: true
11+
code_review: true
12+
ignore_patterns: []

.gemini/styleguide.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dart Style Guide
2+
3+
This style guide outlines the coding conventions for contributions to the
4+
`dart-lang/**` repositories.
5+
6+
## Best Practices
7+
8+
- Follow [the contribution guide](CONTRIBUTING.md).
9+
- Code should be tested.
10+
- Write code follow the guidance described in [effective Dart](https://dart.dev/effective-dart).
11+
12+
## General Philosophy
13+
14+
- Optimize for readability - code is read more often than it is written.
15+
16+
## Documentation
17+
18+
- At least all public members should have documentation, answering the *why*.
19+
- Assume the reader does not know everything. Link to definitions.
20+
- Provide sample code.

0 commit comments

Comments
 (0)