Repository Analysis

BurntSushi/ripgrep

5.7 Low AI signal View on GitHub
5.7
Adjusted Score
5.7
Raw Score
100%
Time Factor
Last Push
Stars
Language
61,771
Lines of Code
146
Files
334
Pattern Hits
2026-05-31
Scan Date

Score History

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 9LOW 325

Pattern Findings

334 matches across 3 categories. Click a row to expand file-level details.

Over-Commented Block324 hits · 319 pts
SeverityFileLineSnippet
LOWcrates/searcher/src/line_buffer.rs1use std::io;
LOWcrates/searcher/src/line_buffer.rs41
LOWcrates/searcher/src/line_buffer.rs141 pub(crate) fn capacity(
LOWcrates/searcher/src/line_buffer.rs161 &mut self,
LOWcrates/searcher/src/line_buffer.rs241 }
LOWcrates/searcher/src/line_buffer.rs281 /// This is a convenience function for `consume(buffer.len())`.
LOWcrates/searcher/src/line_buffer.rs301 pos: usize,
LOWcrates/searcher/src/line_buffer.rs381 ///
LOWcrates/searcher/src/sink.rs61
LOWcrates/searcher/src/sink.rs81/// this, which already implements `SinkError`.
LOWcrates/searcher/src/sink.rs101/// [`sinks`] module.
LOWcrates/searcher/src/sink.rs121 /// If this returns an error, then searching is stopped immediately,
LOWcrates/searcher/src/sink.rs141 /// of the searcher.
LOWcrates/searcher/src/sink.rs161 /// `false`, then searching is stopped immediately and `finish` is called.
LOWcrates/searcher/src/sink.rs181 ///
LOWcrates/searcher/src/sink.rs201 ///
LOWcrates/searcher/src/sink.rs381 }
LOWcrates/searcher/src/sink.rs461 &self.kind
LOWcrates/searcher/src/sink.rs481 self.absolute_byte_offset
LOWcrates/searcher/src/sink.rs501/// `Sink`.
LOWcrates/searcher/src/sink.rs521
LOWcrates/searcher/src/sink.rs561 None => {
LOWcrates/searcher/src/sink.rs621 }
LOWcrates/searcher/src/lines.rs41/// This iterator avoids borrowing the bytes themselves, and instead requires
LOWcrates/searcher/src/lines.rs61 ///
LOWcrates/searcher/src/searcher/mod.rs41/// true, which is why binary detection is disabled by default.
LOWcrates/searcher/src/searcher/mod.rs61 /// This is the default.
LOWcrates/searcher/src/searcher/mod.rs81 }
LOWcrates/searcher/src/searcher/mod.rs121///
LOWcrates/searcher/src/searcher/mod.rs161 passthru: bool,
LOWcrates/searcher/src/searcher/mod.rs241/// to construct a `Searcher` from a `SearcherBuilder`.
LOWcrates/searcher/src/searcher/mod.rs361 }
LOWcrates/searcher/src/searcher/mod.rs381 /// will be used if possible and if they are enabled, which avoids using
LOWcrates/searcher/src/searcher/mod.rs421 /// Whether to enable the "passthru" feature or not.
LOWcrates/searcher/src/searcher/mod.rs441 /// * When searching using a fixed size buffer, the heap limit controls
LOWcrates/searcher/src/searcher/mod.rs461 self.config.heap_limit = bytes;
LOWcrates/searcher/src/searcher/mod.rs481 /// the memory maps.
LOWcrates/searcher/src/searcher/mod.rs521 /// transcoded using the encoding, unless a BOM is present. If a BOM is
LOWcrates/searcher/src/searcher/mod.rs541 /// Enable automatic transcoding based on BOM sniffing.
LOWcrates/searcher/src/searcher/mod.rs561 /// This is useful for searching sorted files where it is expected that all
LOWcrates/searcher/src/searcher/mod.rs581 /// By default, no limit is set.
LOWcrates/searcher/src/searcher/mod.rs601 /// public API methods, which can be queried in implementations of `Sink`
LOWcrates/searcher/src/searcher/mod.rs621 /// multi line search. In particular, multi line searches cannot be
LOWcrates/searcher/src/searcher/mod.rs861 /// Returns true if and only if this searcher is configured to perform
LOWcrates/searcher/src/searcher/mod.rs881 ///
LOWcrates/searcher/src/searcher/mmap.rs21impl Default for MmapChoice {
LOWcrates/searcher/src/searcher/mmap.rs41 /// without simultaneously negating some or all of their benefits.
LOWcrates/searcher/src/searcher/glue.rs221 let line =
LOWcrates/core/haystack.rs121 /// Returns true if and only if this entry corresponds to a haystack to
LOWcrates/core/main.rs21// allocator, which is pretty good. In particular, ripgrep does not have a
LOWcrates/core/main.rs421
LOWcrates/core/messages.rs21static MESSAGES: AtomicBool = AtomicBool::new(false);
LOWcrates/core/flags/defs.rs1861 // This checks that invalid UTF-8 can be used. This case isn't too tricky
LOWcrates/core/flags/hiargs.rs221
LOWcrates/core/flags/hiargs.rs341 ///
LOWcrates/core/flags/hiargs.rs741 builder.encoding(Some(enc.clone()));
LOWcrates/core/flags/hiargs.rs841 BufferMode::Line => grep::cli::stdout_buffered_line(color),
LOWcrates/core/flags/hiargs.rs921/// State that only needs to be computed once during argument parsing.
LOWcrates/core/flags/hiargs.rs961}
LOWcrates/core/flags/hiargs.rs1141
264 more matches not shown…
Decorative Section Separators5 hits · 21 pts
SeverityFileLineSnippet
MEDIUMcrates/core/flags/complete/rg.zsh644# ------------------------------------------------------------------------------
MEDIUMcrates/core/flags/complete/rg.zsh669# ------------------------------------------------------------------------------
MEDIUMcrates/core/flags/complete/rg.zsh671# -----------
MEDIUMcrates/core/flags/complete/rg.zsh675# ------------------------------------------------------------------------------
MEDIUMcrates/core/flags/complete/rg.zsh682# ------------------------------------------------------------------------------
AI Slop Vocabulary5 hits · 14 pts
SeverityFileLineSnippet
MEDIUMcrates/core/flags/lowargs.rs234 /// Automatically determine the binary mode to use. Essentially, when
MEDIUMcrates/core/flags/complete/rg.zsh498# comprehensive; it covers just enough of the basic structure, syntax, and
MEDIUMcrates/cli/src/decompress.rs287/// The purpose of this reader is to provide a seamless way to decompress the
MEDIUMtests/util.rs508/// how to disable it. Absolutely fucking bonkers.
LOW.github/workflows/ci.yml39 # different OS will just use normal cargo.