PulseAugur
中
实时 23:33:53
English(EN) Stop counting duplicated lines: I rank copy-paste by what it costs me

新工具dry-mcp按含义而非仅按令牌对代码重复进行排名

开发人员J. Gauffin创建了一个名为dry-mcp的新工具,旨在根据代码的语义含义而非仅仅是令牌相似性来识别和排名重复的代码。与SonarQube等专注于精确令牌匹配且可能忽略重命名代码的传统工具不同,dry-mcp使用jina-embeddings-v2-base-code模型的嵌入来检测执行相似功能的代码块,即使跨越不同语言。该工具通过根据维护成本对重复进行排名来优先处理修复,并降低常见语言习语和小型、频繁重复的优先级。 AI

影响 为开发人员提供了一种更智能的代码重复管理方式,有望提高可维护性并减少错误。

排序理由 用于代码分析的新软件工具发布。

在 dev.to — MCP tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

新工具dry-mcp按含义而非仅按令牌对代码重复进行排名

报道来源 [1]

  1. dev.to — MCP tag TIER_1 English(EN) · Jonas Gauffin ·

    停止计算重复行:我根据复制粘贴的成本对其进行排名

    <p>Every CI pipeline I have worked with had a duplication report. I cannot remember the last time I read one.</p> <p>The number moves from 4.2% to 4.5%, a list of blocks shows up, and half of them are constructors, guard clauses and property mappings that look alike because that …