KJ

kucherenko/jscpd

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

6463 stars 品質 82 トレンド 53MIT

クチェレンコ/JSCPDは、[[T0]からインポートされたエージェントスキル候補です。

概要

クチェレンコ/JSCPDは、[[T0]からインポートされたエージェントスキル候補です。

概要(AI 翻訳)

220+言語向けの重複コード検出機能 — さらに死んだコード、複雑度ホットスポット、重複やgit履歴の健康状態傾向、そしてコードベース全体の健康スコアを1つ。Rustエンジン、自己完結型のバイナリ、AI対応でMCPサーバーとトークン効率の良いレポーターを備えています。

ドキュメント: https://jscpd.dev

jscpdは、224種類のサポート形式すべてを言語が定義する独自のコメントや文字列ルール(汎用テキストではなく)に従ってトークン化し、その後、ラビン・カープ・ハッシュでファイル間の重複トークンシーケンスを見つけます。オプトインパスは名前や値だけ異なるコピー(タイプ2)や、数行編集されたコピー(タイプ3)をキャッチし、実験的なものは同じことを異なる方法で行う関数に対してコード埋め込みモデル(タイプ4)を使用します。完全なメカニズムについては「How detection works」、全リストは「Supported formats」を参照してください。

重複以外にも、jscpdは死んだコード(--dead-code)、ファイルの複雑さでランク付け(--complexity)、git履歴の重複と健康状態の追跡(--history)、そしてそれらを一つの健康スコアにまとめる(--health)—詳細は以下の機能参照。

クイックスタート

次にプロジェクトをスキャンします:

その他のインストール方法

|方法 |コマンド |注釈 |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

jscpd

Duplicate code detector for 220+ languages — plus dead code, complexity hotspots, duplication and health trends over git history, and one health score for the whole codebase. Rust engine, self-contained binary, AI-ready with an MCP server and a token-efficient reporter.

Documentation: https://jscpd.dev

jscpd tokenizes each of its 224 supported formats the way that language defines it — its own comment and string rules, not generic text — then finds duplicated token sequences across files with a rolling Rabin-Karp hash. Opt-in passes catch copies that differ only in names or values (Type-2) or that have a few edited lines (Type-3), and an experimental one uses a code embedding model for functions that do the same thing written differently (Type-4). See How detection works for the full mechanism, and Supported formats for the full list.

Beyond duplicates, jscpd also finds dead code (--dead-code), ranks files by complexity (--complexity), tracks duplication and health over git history (--history), and rolls it all into one health score (--health) — see Features below.

Quick Start

# macOS / Linux
curl -fsSL https://jscpd.dev/install.sh | bash

# Windows (PowerShell)
irm https://jscpd.dev/install.ps1 | iex

# No install — run once with npx (Node.js)
npx jscpd .

Then scan a project:

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add kucherenko/jscpd
MCP 初心者?mcpskill.org のガイドから始めましょう →