Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.
70 of your 77 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

Scan timing: clone 1.38s · analysis 1.51s · 1.5 MB · GitHub preflight 177ms

pallets/click

https://github.com/pallets/click · scanned 2026-05-19 23:33 UTC (3 weeks, 3 days ago) · 10 languages

236 raw signals (77 security + 159 graph) 97th percentile · Python · medium (20-100K LoC)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 3 weeks, 3 days ago · v3 · 77 actionable findings from 2 signal sources. 41 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 100.0 0.15 15.00
security_score 100.0 0.25 25.00
testing_score 100.0 0.20 20.00
documentation_score 79.0 0.15 11.85
practices_score 82.0 0.15 12.30
code_quality 49.0 0.10 4.90
Overall 1.00 89.1
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade A- (89/100). Dimensions: security 100, maintainability 100. 77 findings. 25,788 lines analyzed.

Showing 30 of 77 actionable findings. 118 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Security checks quality Quality conf 1.00 ✓ Repobility 13 occurrences `self.list_commands` used but never assigned in __init__
Method `get_command` of class `AliasedGroup` reads `self.list_commands`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
6 files, 13 locations
src/click/_winconsole.py:146, 182, 191, 208, 215, 224 (7 hits)
src/click/parser.py:309, 310 (2 hits)
examples/aliases/aliases.py:62
examples/complex/complex/cli.py:24
examples/validation/validation.py:19
tests/typing/typing_aliased_group.py:15
low Security checks quality Error handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
src/click/_winconsole.py:209
low Security checks quality Error handling conf 0.55 ✓ Repobility 13 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
4 files, 13 locations
src/click/_compat.py:122, 134, 137, 147, 155, 164, 533, 580, +1 more (9 hits)
examples/imagepipe/imagepipe.py:97, 117 (2 hits)
src/click/core.py:2631
src/click/testing.py:669
Error handlingquality
medium System graph cicd CI/CD security conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/publish.yaml CI/CD securitySupply chainGithub actions
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/click/shell_completion.py:325
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
low System graph software Dead code candidate conf 1.00 File has no detected symbols: docs/conf.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 13 places
Functions with the same first-5-line body hash: src/click/types.py:convert, src/click/types.py:convert, src/click/types.py:convert, src/click/types.py:convert This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document …
duplicatesduplication
low System graph quality Integrity conf 1.00 9 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: examples/imagepipe/imagepipe.py:processor, examples/imagepipe/imagepipe.py:processor This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
9 occurrences
repo-level (9 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: src/click/types.py:get_metavar, src/click/types.py:get_metavar, src/click/types.py:get_metavar This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're sepa…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 6 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: src/click/types.py:shell_complete, src/click/types.py:shell_complete, src/click/types.py:shell_complete, src/click/types.py:shell_complete This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygien…
6 occurrences
repo-level (6 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 8 places
Functions with the same first-5-line body hash: src/click/types.py:to_info_dict, src/click/types.py:to_info_dict, src/click/types.py:to_info_dict, src/click/types.py:to_info_dict This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Cons…
duplicatesduplication
low System graph software Dead code conf 1.00 Possibly dead Python function: add_source
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/click/core.py:2025
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_flip
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/imagepipe/imagepipe.py:178
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_rotation
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/imagepipe/imagepipe.py:165
low System graph software Dead code conf 1.00 Possibly dead Python function: list_users
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/completion/completion.py:36
low System graph software Dead code conf 1.00 Possibly dead Python function: new_func
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/click/decorators.py:116
low System graph software Dead code conf 1.00 Possibly dead Python function: readinto
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/click/_winconsole.py:132
low System graph software Dead code conf 1.00 Possibly dead Python function: show_help
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/click/decorators.py:536
low System graph software Dead code conf 1.00 Possibly dead Python function: show_item
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/termui/termui.py:56
low System graph software Dead code conf 1.00 Possibly dead Python function: sort_key
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/click/core.py:152
low System graph software Dead code conf 1.00 Possibly dead Python function: validate_count
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/validation/validation.py:6
low System graph software Dead code conf 1.00 Possibly dead Python function: wrapper
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/click/utils.py:40
low System graph software Dead code conf 1.00 Possibly dead Python function: writelines
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/click/_winconsole.py:213
low System graph quality Integrity conf 1.00 Stub function `_get_windows_console_stream` (body is just `pass`/`return`) — src/click/_compat.py:567
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `cli` (body is just `pass`/`return`) — examples/completion/completion.py:8
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `get_help_record` (body is just `pass`/`return`) — src/click/core.py:2668
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Complexity conf 1.00 Very large file: src/click/core.py (3535 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: tests/test_options.py (3441 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: tests/test_termui.py (1474 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/06b7bfba-0fb7-413a-8216-cd07ee9c4a7f/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/06b7bfba-0fb7-413a-8216-cd07ee9c4a7f/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.