Skip to content

Commit 563e6d7

Browse files
committed
update agent.md
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
1 parent d883fdd commit 563e6d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

AGENTS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
- `make lint` – run `golangci-lint` plus Go “modernize”; auto-fixes when not in CI.
1212
- `make ut` – run unit tests: Ginkgo suites in `test/unittest` and `go test` with coverage for `pkg`.
1313

14-
## Coding Style & Naming Conventions
15-
- Follow `CODE_STYLE.md`: camelCase identifiers, keep functions short (~100 lines), return/log errors instead of discarding, and prefer `if err := ...; err != nil` patterns.
16-
- Run `make lint` to detect and fix potential lint issues.
14+
## General Coding Guidlines
15+
- Every time after editing code. MUST run `make lint` to detect and fix potential lint issues.
16+
- When modifying code, try to clean up any related code logic that is no longer needed.
17+
- Follow `CODE_STYLE.md`: camelCase identifiers, keep functions short (~100 lines), return/log errors instead of discarding, and prefer `if err := ...; err != nil` patterns.
1718

1819
## Adding a New Feature
1920
- Plan first: clarify any uncertainties and confirm the approach before making changes.

0 commit comments

Comments
 (0)