Loading...
Loading...
Compare original and translation side by side
| Debt Type | Detection Method |
|---|---|
| Duplicated code | Hash-compare function bodies |
| Similar-but-diff | Fuzzy match on structure |
| Inconsistent naming | Regex for mixed conventions |
| Dead code | Unreferenced exports/functions |
| TODO/FIXME | Grep for comment markers |
| Magic numbers | Literals outside const/config |
| Long functions | Line count > threshold |
| Deep nesting | Indentation level analysis |
| 债务类型 | 检测方法 |
|---|---|
| 重复代码 | 哈希对比函数主体 |
| 相似但有差异的代码 | 基于结构的模糊匹配 |
| 命名不一致 | 正则匹配混合命名规范 |
| 死代码 | 未被引用的导出内容/函数 |
| TODO/FIXME注释 | 搜索注释标记 |
| 魔法数字 | 常量/配置外的字面量 |
| 过长函数 | 行数超过阈值 |
| 深层嵌套 | 缩进层级分析 |
undefinedundefinedundefinedundefined