# dsh-plugin-todo-scanner — DeepSeek Harness TODO 代码扫描插件 # # 用法(两种): # 1. 已发布 / 已安装为 node 模块:name 填包名 'dsh-plugin-todo-scanner' # 2. 本地源码调试:name 填相对路径 './dsh-plugin-todo-scanner/lib/index.js' # (Harness 加载器支持 .ts / .js 入口;编译产物为 ./lib/index.js) # # 将本文件内容合并进 Harness 的 cordis.yml(或引用本文件),例如: # - import: ./dsh-plugin-todo-scanner/cordis.patch.yml - insert: - id: dsh-plugin-todo-scanner name: dsh-plugin-todo-scanner config: # 插件总开关 enable: true # ---- 扫描范围(PRD §6.1 安全约束) ---- # 允许扫描的根目录白名单(绝对路径);为空时仅允许各会话的当前工作目录 scan: allowedRoots: [] # 忽略的目录名列表(默认覆盖 node_modules / 构建产物 / VCS / IDE 目录) ignoreDirs: - node_modules - dist - build - .git - .next - .nuxt - vendor - target - out - .cache - .idea - .vscode # 忽略的文件扩展名 / 文件名后缀(.min.js / .map / 二进制资源等) ignoreExtensions: - .min.js - .min.css - .map - .lock - .png - .jpg - .jpeg - .gif - .svg - .ico - .woff - .woff2 - .ttf - .eot - .pdf - .zip - .tar - .gz # 是否自动识别并应用项目根目录的 .gitignore 规则 useGitignore: true # 单文件最大扫描字节数(默认 1MB,超出跳过并计入 skippedFiles) maxFileSize: 1048576 # 单次扫描最大文件数(超出停止收集并提示缩小范围) maxFiles: 5000 # ---- 标记匹配 ---- markers: types: - TODO - FIXME - HACK - NOTE - XXX - BUG - OPTIMIZE - REVIEW # 标记匹配是否大小写敏感(false = todo/Todo/TODO 均可识别) caseSensitive: false # ---- 导出 ---- export: # 默认导出格式:by_type(按类型分组)/ by_file(按文件分组) defaultFormat: by_type # ---- UI ---- ui: # 侧边面板是否显示已忽略项 showIgnored: false # ---- 面板数据服务(本地 HTTP,仅 127.0.0.1) ---- server: enable: true # 监听端口;被占用时自动尝试 +1(最多 5 次) port: 18766