Repository Analysis

spf13/cobra

A Commander for modern Go CLI interactions

2.9 Likely human-written View on GitHub
2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-04-25
Last Push
44,020
Stars
Go
Language
19,849
Lines of Code
59
Files
56
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 55

Pattern Findings

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

Over-Commented Block54 hits · 54 pts
SeverityFileLineSnippet
LOWzsh_completions_test.go1// Copyright 2013-2023 The Cobra Authors
LOWcommand.go1// Copyright 2013-2023 The Cobra Authors
LOWcommand.go41// FParseErrWhitelist configures Flag parse errors to be ignored
LOWcommand.go101 // For portability with other shells, it is recommended to instead use ValidArgsFunction
LOWcommand.go121 // * PostRun()
LOWcommand.go161 lflags *flag.FlagSet
LOWcommand.go261
LOWfish_completions.go1// Copyright 2013-2023 The Cobra Authors
LOWflag_groups.go1// Copyright 2013-2023 The Cobra Authors
LOWpowershell_completions_test.go1// Copyright 2013-2023 The Cobra Authors
LOWcommand_test.go1// Copyright 2013-2023 The Cobra Authors
LOWzsh_completions.go1// Copyright 2013-2023 The Cobra Authors
LOWzsh_completions.go41// and writes it to the passed writer.
LOWbash_completionsV2_test.go1// Copyright 2013-2023 The Cobra Authors
LOWcobra.go1// Copyright 2013-2023 The Cobra Authors
LOWcobra.go61// EnableCaseInsensitive allows case-insensitive commands names. (case sensitive by default)
LOW.golangci.yml1# Copyright 2013-2023 The Cobra Authors
LOWargs_test.go1// Copyright 2013-2023 The Cobra Authors
LOWargs.go1// Copyright 2013-2023 The Cobra Authors
LOWbash_completionsV2.go1// Copyright 2013-2023 The Cobra Authors
LOWbash_completionsV2.go201 # When there are no completion choices from the program, file completion
LOWcobra_test.go1// Copyright 2013-2023 The Cobra Authors
LOWcobra_test.go221 got := rpad(tt.inputString, tt.padding)
LOWcompletions.go1// Copyright 2013-2023 The Cobra Authors
LOWcompletions.go61 // after the completion even if there is a single completion provided.
LOWcompletions.go141// CompletionWithDesc returns a [Completion] with a description by using the TAB delimited format.
LOWcompletions.go261 // Remove all activeHelp entries if it's disabled.
LOWcompletions.go601 return []Completion{}
LOWcommand_win.go1// Copyright 2013-2023 The Cobra Authors
LOWactive_help_test.go1// Copyright 2013-2023 The Cobra Authors
LOWfish_completions_test.go1// Copyright 2013-2023 The Cobra Authors
LOWpowershell_completions.go1// Copyright 2013-2023 The Cobra Authors
LOWpowershell_completions.go221
LOWflag_groups_test.go1// Copyright 2013-2023 The Cobra Authors
LOWcommand_notwin.go1// Copyright 2013-2023 The Cobra Authors
LOWshell_completions.go1// Copyright 2013-2023 The Cobra Authors
LOWshell_completions.go41
LOWactive_help.go1// Copyright 2013-2023 The Cobra Authors
LOWbash_completions.go1// Copyright 2013-2023 The Cobra Authors
LOWcompletions_test.go1// Copyright 2013-2023 The Cobra Authors
LOWbash_completions_test.go1// Copyright 2013-2023 The Cobra Authors
LOWsite/content/completions/_index.md201
LOWsite/content/completions/_index.md221// Indicates that only directory names should be provided in file completion.
LOWdoc/man_examples_test.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/md_docs_test.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/yaml_docs_test.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/cmd_test.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/yaml_docs.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/md_docs.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/util.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/rest_docs_test.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/rest_docs.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/man_docs.go1// Copyright 2013-2023 The Cobra Authors
LOWdoc/man_docs_test.go1// Copyright 2013-2023 The Cobra Authors
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMflag_groups_test.go28 // Define lots of flags to utilize for testing.
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWzsh_completions.go187 # Check if this is an activeHelp statement (i.e., prefixed with $activeHelpMarker)