Repository Analysis

clap-rs/clap

A full featured, fast Command Line Argument Parser for Rust

6.1 Low AI signal View on GitHub
6.1
Adjusted Score
6.1
Raw Score
100%
Time Factor
2026-05-29
Last Push
16,415
Stars
Rust
Language
97,793
Lines of Code
468
Files
788
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 788

Pattern Findings

788 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block771 hits · 574 pts
SeverityFileLineSnippet
LOWdeny.toml1# Note that all fields that take a lint level have these possible values:
LOWdeny.toml21 # The triple can be any string, but only the target triples built in to
LOWdeny.toml41# If true, metadata will be collected with `--no-default-features`. The same
LOWdeny.toml61# The path where the advisory databases are cloned/fetched into
LOWdeny.toml101# The confidence threshold for detecting a license from license text.
LOWdeny.toml121expression = "MIT AND ISC AND OpenSSL"
LOWdeny.toml141registries = [
LOWdeny.toml161# `default` on a crate-by-crate basis if desired.
LOWdeny.toml181# List of features to allow/deny
LOWdeny.toml201# this is set there is no point setting `deny`
LOWclap_derive/src/lib.rs1// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>,
LOWclap_derive/src/item.rs1// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>,
LOWclap_derive/src/utils/doc_comments.rs1//! The preprocessing we apply to doc comments.
LOWclap_derive/src/derives/into_app.rs1// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>,
LOWclap_derive/src/derives/mod.rs1// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>,
LOWclap_derive/src/derives/subcommand.rs1// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>,
LOWclap_derive/src/derives/args.rs1// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>,
LOWclap_derive/src/derives/parser.rs1// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>,
LOWclap_complete/examples/completion-derive.rs1//! How to use value hints and generate shell completions.
LOWclap_complete/examples/completion.rs1//! Example to test arguments with different `ValueHint` values.
LOWclap_complete/src/lib.rs1// Copyright ⓒ 2015-2018 Kevin B. Knapp
LOWclap_complete/src/lib.rs21//! use std::io;
LOWclap_complete/src/lib.rs41//! let mut cmd = build_cli();
LOWclap_complete/src/engine/custom.rs21/// let Some(current) = current.to_str() else {
LOWclap_complete/src/engine/custom.rs61
LOWclap_complete/src/engine/custom.rs81 f.write_str(type_name::<Self>())
LOWclap_complete/src/engine/custom.rs121}
LOWclap_complete/src/engine/custom.rs161 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
LOWclap_complete/src/aot/mod.rs1//! Prebuilt completions
LOWclap_complete/src/aot/mod.rs21//!
LOWclap_complete/src/aot/shells/zsh.rs61 }
LOWclap_complete/src/aot/shells/zsh.rs81// (( $+functions[_rustup_commands] )) ||
LOWclap_complete/src/aot/shells/zsh.rs141}
LOWclap_complete/src/aot/shells/zsh.rs181
LOWclap_complete/src/aot/shells/zsh.rs201// ([name])
LOWclap_complete/src/aot/shells/zsh.rs301 None
LOWclap_complete/src/aot/shells/zsh.rs601}
LOWclap_complete/src/aot/shells/shell.rs101 /// Parse a shell from a path to the executable for the shell
LOWclap_complete/src/aot/shells/shell.rs121 /// If SHELL is not set, then on windows, it will default to powershell, and on
LOWclap_complete/src/aot/shells/fish.rs81 // example :
LOWclap_complete/src/aot/generator/mod.rs21 /// # Examples
LOWclap_complete/src/aot/generator/mod.rs41 ///
LOWclap_complete/src/aot/generator/mod.rs61 /// # }
LOWclap_complete/src/aot/generator/mod.rs81 /// use std::{io::{Error, Write}, fmt::write};
LOWclap_complete/src/aot/generator/mod.rs101 Ok(())
LOWclap_complete/src/aot/generator/mod.rs121/// First, it helps if we separate out our `Command` definition into a separate file. Whether you
LOWclap_complete/src/aot/generator/mod.rs141/// In our regular code, we can simply call this `build_cli()` function, then call
LOWclap_complete/src/aot/generator/mod.rs161/// clap = "*"
LOWclap_complete/src/aot/generator/mod.rs181///
LOWclap_complete/src/aot/generator/mod.rs201/// **NOTE:** Please look at the individual [shells][crate::shells]
LOWclap_complete/src/aot/generator/mod.rs261/// we can let users generate a completion script using a command:
LOWclap_lex/src/lib.rs1//! Minimal, flexible command-line parser
LOWclap_lex/src/lib.rs21//!
LOWclap_lex/src/lib.rs41//! }
LOWclap_lex/src/lib.rs61//! while let Some(arg) = raw.next(&mut cursor) {
LOWclap_lex/src/lib.rs81//! }
LOWclap_lex/src/lib.rs101//! } else {
LOWclap_lex/src/lib.rs141 ///
LOWclap_lex/src/lib.rs161 /// ```rust,no_run
LOWclap_lex/src/lib.rs361
711 more matches not shown…
Fake / Example Data14 hits · 20 pts
SeverityFileLineSnippet
LOWtests/derive/doc_comments_help.rs24 /// Lorem ipsum
LOWtests/derive/doc_comments_help.rs35Lorem ipsum
LOWtests/derive/doc_comments_help.rs51 /// Lorem ipsum
LOWtests/derive/doc_comments_help.rs53 #[command(name = "lorem-ipsum", about = "Dolor sit amet")]
LOWtests/derive/doc_comments_help.rs62Dolor sit amet
LOWtests/derive/doc_comments_help.rs98 /// Lorem ipsumclap
LOWtests/derive/doc_comments_help.rs100 #[command(name = "lorem-ipsum", about = "Dolor sit amet")]
LOWtests/derive/doc_comments_help.rs117Dolor sit amet
LOWtests/derive/doc_comments_help.rs128Dolor sit amet
LOWtests/derive/doc_comments_help.rs149 /// Lorem ipsumclap
LOWtests/derive/doc_comments_help.rs151 #[command(name = "lorem-ipsum", about = "Dolor sit amet")]
LOWtests/derive/doc_comments_help.rs172Dolor sit amet
LOWtests/derive/doc_comments_help.rs457 /// Lorem ipsum
LOWtests/derive/doc_comments_help.rs468Lorem ipsum
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/_derive/mod.rs345//! #[command(about = "I am a program and I work, just pass `-h`", long_about = None)]
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOW.github/workflows/release-notes.py4
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOW.github/workflows/release-notes.py12