Repo X-Ray · 05 December 2026, 05:37 · read in 1.2s · nothing was executed

ripgrep

/srv/xela/workspace/.xray-oss/ripgrep

How to run itWhat the code isWhere the risk isWhat the tests cannot seeDead weightDependenciesSecretsMethod and limits
58,565
lines of code
90
source files
17
test files
63%
modules a test can reach
400
commits read
10 days ago
last commit

How to run it

CI steps

and 7 more.

What the code is

LanguageFilesLines
Rust10558,530
Shell3849
Ruby123
Lua112

What to read first

The fewest files that are the only import route into 94% of the code — 74 of 79 files. This is not a ranking, it is a cover: nothing in those 74 files can be reached by an import without passing through one of the entrances below. Each row also names the files the rest of that region depends on most, which is the vocabulary you will be reading it in.

Read this, then what it leads toFiles it opensLines in that regionA test reaches it
1. crates/core/main.rs
where the program starts
  crates/core/flags/defs.rs ← 1 files, 8,153 lines
  crates/core/flags/hiargs.rs ← 1 files, 1,658 lines
  crates/core/flags/lowargs.rs ← 1 files, 786 lines
1713,376no
2. crates/printer/src/lib.rs
where the program starts
  crates/printer/src/standard.rs ← 1 files, 4,016 lines
  crates/printer/src/hyperlink/mod.rs ← 1 files, 1,205 lines
  crates/printer/src/summary.rs ← 1 files, 1,159 lines
139,523no
3. crates/searcher/src/lib.rs
where the program starts
  crates/searcher/src/searcher/glue.rs ← 1 files, 1,641 lines
  crates/searcher/src/searcher/mod.rs ← 1 files, 1,155 lines
  crates/searcher/src/line_buffer.rs ← 1 files, 965 lines
106,703yes
4. crates/regex/src/lib.rs
where the program starts
  crates/regex/src/literal.rs ← 1 files, 1,016 lines
  crates/regex/src/matcher.rs ← 1 files, 692 lines
  crates/regex/src/config.rs ← 1 files, 366 lines
92,814no
5. crates/ignore/src/lib.rs
where the program starts
  crates/ignore/src/walk.rs ← 1 files, 3,051 lines
  crates/ignore/src/dir.rs ← 1 files, 1,726 lines
  crates/ignore/src/incremental.rs ← 1 files, 1,363 lines
99,303yes
6. crates/cli/src/lib.rs
where the program starts
  crates/cli/src/decompress.rs ← 1 files, 739 lines
  crates/cli/src/process.rs ← 1 files, 316 lines
  crates/cli/src/pattern.rs ← 1 files, 181 lines
82,073no
7. crates/globset/src/lib.rs
where the program starts
  crates/globset/src/glob.rs ← 1 files, 1,936 lines
  crates/globset/src/pathutil.rs ← 1 files, 141 lines
  crates/globset/src/serde_impl.rs ← 1 files, 128 lines
53,697yes
8. crates/pcre2/src/lib.rs
where the program starts
  crates/pcre2/src/matcher.rs ← 1 files, 505 lines
  crates/pcre2/src/error.rs ← 1 files, 48 lines
3569no

The modules everything else leans on

Imported by the most files: the load-bearing walls, where a change reaches furthest.

ModuleImported byLinesA test reaches it
crates/cli/src/decompress.rs1739yes
crates/cli/src/escape.rs1159yes
crates/cli/src/hostname.rs186yes
crates/cli/src/human.rs1148yes
crates/cli/src/pattern.rs1181yes
crates/cli/src/process.rs1316no
crates/cli/src/wtr.rs1149no
crates/core/flags/complete/bash.rs1107no
crates/core/flags/complete/fish.rs175no
crates/core/flags/complete/mod.rs111no
crates/core/flags/complete/nushell.rs178no
crates/core/flags/complete/powershell.rs185no

Where the risk is

Churn multiplied by size. A big file that never changes is usually fine; a big file that changes constantly is where the bugs and the arguments live.

FileCommitsLinesMostly written byTested
crates/core/flags/defs.rs298,153Author A 34%yes
crates/ignore/src/walk.rs213,051Author A 29%yes
crates/globset/src/lib.rs221,462Author A 18%yes
crates/core/flags/hiargs.rs201,658Author A 50%no
crates/ignore/src/default_types.rs38393Author G 8%yes
crates/ignore/src/dir.rs181,726Author A 28%yes
crates/globset/src/glob.rs141,936Author X 7%yes
crates/printer/src/standard.rs94,016Author Q 11%yes
crates/ignore/src/gitignore.rs171,091Author A 29%yes
crates/searcher/src/searcher/mod.rs91,155Author A 33%yes
crates/searcher/src/searcher/glue.rs71,641Author A 57%yes
crates/core/main.rs11496Author A 45%no

The busiest test file is tests/regression.rs (31 commits) - kept out of the table above so the code that ships comes first.

Active in the last 90 days: Author A (17), Author C (8), Author D (5), Author H (3), Author I (2), Author J (2)

History read: 400 commits, 2 years ago to 10 days ago. Top committer overall: Author A 49%.

What the tests cannot see

The import graph covers Python and JavaScript/TypeScript only. 1 Lua, 1 Ruby files in this repository were inventoried, and counted in the languages, churn, ownership, secrets and TODO findings - but they are left out of the reach figure and the dead-code list, because this tool did not read their imports and will not guess.

50 of 79 shipped modules are reachable from a test file by import (63%).

9 further files under examples, docs, scripts or benchmarks are not test-reachable either. They are counted apart from the number above, because demo code dragging a healthy repository down tells you nothing.

Reachable means a test imports it, directly or through another module. It is the floor, not coverage: a module can be reachable and still have none of its behaviour exercised. The modules below are the other case - nothing a test loads can even see them, so a green suite says nothing about them.

Dead weight

The import graph covers Python and JavaScript/TypeScript only. 1 Lua, 1 Ruby files in this repository were inventoried, and counted in the languages, churn, ownership, secrets and TODO findings - but they are left out of the reach figure and the dead-code list, because this tool did not read their imports and will not guess.

Nothing unreachable found.

506 TODO / FIXME / HACK markers

FileCount
CHANGELOG.md473
.github/ISSUE_TEMPLATE/bug_report.yml3
README.md3
crates/printer/src/standard.rs3
FAQ.md2
crates/matcher/src/interpolate.rs2

Dependencies

Read from Cargo.toml, cli/Cargo.toml, globset/Cargo.toml, grep/Cargo.toml, ignore/Cargo.toml, matcher/Cargo.toml, pcre2/Cargo.toml, printer/Cargo.toml, regex/Cargo.toml, searcher/Cargo.toml, fuzz/Cargo.toml.

Declared but never imported

Dead weight in the install, or a tool that is run rather than imported (formatters, type stubs, test plugins). Check before removing.

tikv-jemallocator lexopt textwrap libc arbitrary glob grep-cli grep-pcre2 grep-printer same-file crossbeam-channel regex encoding-rs libfuzzer-sys

Secrets

No committed credentials matched the patterns checked.

Patterns covered: AWS keys, private key blocks, GitHub, Slack, Stripe, Google, OpenAI and Anthropic keys, JSON web tokens, and passwords assigned in code. A secret in a format not listed here would not be found, and this does not read the git history.

Method and limits

More measured notes on coding agents: alexenabled.github.io