添加hook文件
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "Java代码风格检查",
|
||||
"description": "写 Java 代码前,提醒严格遵守 Java 端代码开发风格文档中的规范",
|
||||
"version": "1",
|
||||
"when": {
|
||||
"type": "preToolUse",
|
||||
"toolTypes": [
|
||||
"write"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"type": "askAgent",
|
||||
"prompt": "写 Java 代码前请严格遵守 back-end/.kiro/steering/代码开发风格文档.md 中的所有规范。特别注意:紧凑风格(流式语句和链式调用尽量一行)、Service 用 @Autowired 字段注入、Controller 用 @AllArgsConstructor 构造器注入、写操作加 @Transactional、Service 类注释需包含功能说明/依赖/使用表。"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user