做完了一部分,备份一下,防止以外删除
This commit is contained in:
@@ -50,6 +50,11 @@
|
||||
- [ ] Unified API responses via `pkg/response/`
|
||||
- [ ] All constants defined in `pkg/constants/`
|
||||
- [ ] All Redis keys managed via key generation functions (no hardcoded strings)
|
||||
- [ ] **No hardcoded magic numbers or strings (3+ occurrences must be constants)**
|
||||
- [ ] **Defined constants are used instead of hardcoding duplicate values**
|
||||
- [ ] **Code comments prefer Chinese for readability (implementation comments in Chinese)**
|
||||
- [ ] **Log messages use Chinese (Info/Warn/Error/Debug logs in Chinese)**
|
||||
- [ ] **Error messages support Chinese (user-facing errors have Chinese messages)**
|
||||
- [ ] All exported functions/types have Go-style doc comments
|
||||
- [ ] Code formatted with `gofmt`
|
||||
- [ ] Follows Effective Go and Go Code Review Comments
|
||||
|
||||
@@ -112,6 +112,11 @@
|
||||
- [ ] Unified error codes defined in `pkg/errors/`
|
||||
- [ ] Unified API responses via `pkg/response/`
|
||||
- [ ] All constants defined in `pkg/constants/` (no magic numbers/strings)
|
||||
- [ ] **No hardcoded values: 3+ identical literals must become constants**
|
||||
- [ ] **Defined constants must be used (no duplicate hardcoding)**
|
||||
- [ ] **Code comments prefer Chinese (implementation comments in Chinese)**
|
||||
- [ ] **Log messages use Chinese (logger.Info/Warn/Error/Debug in Chinese)**
|
||||
- [ ] **Error messages support Chinese (user-facing errors have Chinese text)**
|
||||
- [ ] All Redis keys managed via `pkg/constants/` key generation functions
|
||||
- [ ] Package structure is flat, organized by feature (not by layer)
|
||||
|
||||
|
||||
@@ -181,6 +181,11 @@ Foundational tasks for 君鸿卡管系统 tech stack:
|
||||
- [ ] TXXX Quality Gate: Verify database migrations work correctly
|
||||
- [ ] TXXX Quality Gate: Verify API documentation updated (if API changes)
|
||||
- [ ] TXXX Quality Gate: Verify no hardcoded constants or Redis keys (all use pkg/constants/)
|
||||
- [ ] TXXX Quality Gate: Verify no duplicate hardcoded values (3+ identical literals must be constants)
|
||||
- [ ] TXXX Quality Gate: Verify defined constants are used (no duplicate hardcoding of constant values)
|
||||
- [ ] TXXX Quality Gate: Verify code comments use Chinese (implementation comments in Chinese)
|
||||
- [ ] TXXX Quality Gate: Verify log messages use Chinese (logger Info/Warn/Error/Debug in Chinese)
|
||||
- [ ] TXXX Quality Gate: Verify error messages support Chinese (user-facing errors have Chinese text)
|
||||
- [ ] TXXX Quality Gate: Verify no Java-style anti-patterns (no getter/setter, no I-prefix, no Impl-suffix)
|
||||
- [ ] TXXX Quality Gate: Verify Go naming conventions (UserID not userId, HTTPServer not HttpServer)
|
||||
- [ ] TXXX Quality Gate: Verify error handling is explicit (no panic/recover abuse)
|
||||
|
||||
Reference in New Issue
Block a user