Skip to content

Commit

Permalink
feat(quality): 添加AutoDev修复示例以展示AI辅助代码改进
Browse files Browse the repository at this point in the history
在 `aise-quality.md` 文件中添加了一个Kotlin代码示例,展示了AutoDev如何自动修复代码中的潜在问题,例如去除未使用的lambda参数,以提升代码质量和可读性。
  • Loading branch information
phodal committed Aug 13, 2024
1 parent 466547c commit a63802d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/aise-quality.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ GitClear将代码变更分为七个类别(研究中涉及前六种):

SaaS 服务:Codacy、CodeScene、Code Climate

AutoDev 修复示例:

```Kotlin
if (templateText != null) {
ActionListener { ignore: ActionEvent? ->
invokeAction(
analyzeCurrentFileAction,
dataContext, CurrentFilePanel.SONARLINT_TOOLWINDOW_ID, null, null
)
}
}

// - SonarLint: Use "_" instead of this unused lambda parameter "ignore".
```

### CodeScene 示例

[CodeScene](https://codescene.com/blog/use-guardrails-for-ai-assisted-coding) 构建的 AI
Expand Down

0 comments on commit a63802d

Please sign in to comment.