diff --git a/vulture.conf b/vulture.conf new file mode 100644 index 000000000..22ba44643 --- /dev/null +++ b/vulture.conf @@ -0,0 +1,35 @@ +# vulture.conf - 死代码检测配置 +# 仓库: xiaoxia/xiaoxia-saas +# 用途: 检测未使用的函数、变量、导入、类、方法、属性 + +# 扫描目录(空格分隔) +path = alembic apps packages scripts + +# 排除路径(每个路径一行,相对于仓库根目录) +exclude = + tests + test + */tests + */test + site-packages + node_modules + migrations + .gitea + docs + scripts/check_*.py + scripts/init_*.py + +# 最低置信度 (%) +# 0 = 报告所有可能的未使用代码 +# 100 = 只报告确定未使用的代码 +# 推荐从 80% 开始,逐步调高 +min-confidence = 80 + +# 输出格式: string, json, yaml +format = text + +# 按置信度排序 +sort-by-size = False + +# 显示置信度 +show-uncertain = True