dsh-code-smell
代码气味雷达(Code Smell Radar):静态扫描仓库的 TODO/FIXME 债务、超长行、大文件、重复代码块与未实现桩,按严重度输出修复建议。全程只读,不执行测试/构建。
AI Analysis
用于对本地仓库进行代码质量静态扫描。适合需要排查技术债、重复代码和超长行的开发者。全程只读,无需执行构建或测试。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lucky8197/dsh-code-smellREADME
Read the full README ↗配置(cordis 配置节)
- insert:
- id: code-smell
name: 'dsh-code-smell'
config:
includeExts: ["ts", "tsx", "js", "py", "cs", "go", "rs"] # 参与扫描的扩展名
ignorePaths: [".git", "bin", "obj", "node_modules", "dist", "lib", ".dsh"]
maxLineLen: 120 # 超长行阈值(字符)
maxFileBytes: 262144 # 大文件阈值(字节)
hardReadCap: 524288 # 单文件读取硬上限(字节),超限跳过
minBlockLines: 3 # 重复块最少行数