#deadcode
- (golangci-lint の) depguard
- declscope
- deadcode

だいたいこれで治安守れると思うんだよな
September 27, 2026 at 1:26 PM
🔌 deadcode: Detect dead Python code and unused variables

📦 https://github.com/jendrikseipp/deadcode

🔗 https://github.com/javimosch/supercli

#deadcode #supercli
September 22, 2026 at 7:44 PM
Listened to A big episode about tiny things | Cup o' Go Post details

> golang.org/x/tools v0.50.0 releasedBlog: Finding unreachable functions with deadcode by Alan Donovan Russ Cox leaves google, and opines on LLMs for debugging Coding agent guidelines for modern Go Jonathan's new podcast […]
Original post on jvt.me
www.jvt.me
September 18, 2026 at 5:46 PM
Thank you very much to #cupOGo for having me as a guest last Friday to talk about @tinygo.org

Check it out here:
cupogo.dev/episodes/a-b...

#golang #tinygo #embedded
Cup o' Go | A big episode about tiny things
golang.org/x/tools v0.50.0 releasedBlog: Finding unreachable functions with deadcode by Alan Donovan Russ Cox leaves google, and opines on LLMs for debugging Coding agent guidelines for modern Go J...
cupogo.dev
September 14, 2026 at 11:40 AM
i kind of want to dub deadcode au metal sonic's breakdown lowk i just gotta find the time to do it
September 8, 2026 at 7:37 PM
📦 amarucci/phpstan-laravel-deadcode v0.3.0

Teaches PHPStan's dead code detector to read the wiring Laravel calls and PHP cannot see: Livewire components and their Blade templates, Eloquent enum casts, gate abilities, and package contracts.

🔗 https://gitlab.com/aMarucci/phpstan-laravel-deadcode
September 2, 2026 at 10:18 PM
📦 amarucci/phpstan-laravel-deadcode v0.2.0

Teaches PHPStan's dead code detector to read the wiring Laravel calls and PHP cannot see: Livewire components and their Blade templates, Eloquent enum casts, gate abilities, and package contracts.

🔗 https://gitlab.com/aMarucci/phpstan-laravel-deadcode
September 2, 2026 at 9:17 PM
August 18, 2026 at 7:56 AM
AI writes dead code – the Go team's deadcode tool finds it in one command
Discussion | hackernews | Author: cheikhdev

#Go
AI writes dead code – the Go team's deadcode tool finds it in one command
How the Go team’s deadcode tool caught what the compiler never will
towardsdev.com
August 18, 2026 at 5:43 AM
Some Deadcode fanart cuz I had a neat little idea for it
(Also cuz he was a great villain last session)
#magnaforce
July 31, 2026 at 12:14 AM
I built a dead code forensics CLI because "this file is unused" is never enough
Every senior developer has stared at a file and thought: _should I delete this?_ You run `vulture`. You run `deadcode`. They both tell you the file has zero import sites. You hover over the delete key. And then you don't delete it. Because you don't actually know **why** it's there. ## The real question isn't "is it dead?" — it's "why is it dead?" Dead code falls into very different categories: **Category A** — Accidentally orphaned. A file that got left behind when the calling code was removed. Safe to delete immediately. **Category B** — Intentionally parked. "keeping this around until Q2 rollout completes." The holdback condition may or may not still apply. **Category C** — Dynamically loaded. Appears dead to static analysis but gets `importlib.import_module()`'d at runtime. Deleting it breaks production. **Category D** — Replaced but not removed. The function was superseded by a better implementation, the PR was merged, and nobody cleaned up. Safe to delete, but you need to know _what replaced it_ to be confident. Existing tools treat all four identically: "unused." That's the gap fossil fills. ## How fossil works pip install fossil-code fossil explain src/billing/legacy_processor.py fossil runs five stages in under 3 seconds: ### Stage 1: Static Analysis Python's `ast` module builds a symbol table of everything the file exports. Then it scans every other file in the repo for references — imports, calls, attribute access, dynamic patterns (`importlib`, `getattr`, `__import__`). This is not grep; it's an actual AST traversal that understands Python's import semantics. ### Stage 2: Git History Mining `GitPython` traverses `git log --follow` for the target file. It walks commits newest-to-oldest, checking at each step whether any other file in the repo was still referencing the target. The first commit where all references drop to zero is the **death commit**. ### Stage 3: Commit and PR Parsing The death commit message is parsed for PR references (`#441`, `PR 441`, `pull request 441`). If found, the PR title and merge context are extracted from the commit body or (if a GitHub token is configured) via the GitHub API. ### Stage 4: Pattern Detection The file's current content is scanned for deferred-deletion patterns: * `TODO: remove after X` * `keep for now` / `keep around until X` * `DEPRECATED` / `@deprecated` * `will be removed in version X` * `temporary` / `temp fix` For each pattern, fossil attempts to verify the condition: does a PR with that description exist and is it merged? Has a git tag for that version been created? Has the referenced date passed? ### Stage 5: Confidence Scoring 14 weighted signals are aggregated into a 0–100% score: Signal | Weight ---|--- Zero call sites | +30 No dynamic references | +20 Death commit identified | +15 Temporary hold resolved | +10 No reflection patterns | +10 File age > 90 days dead | +8 PR/migration context found | +7 Dynamic import detected | −30 Reflection detected | −20 Modified < 30 days ago | −20 Unresolved "keep for now" | −15 Language unknown (fallback) | −15 Test file references | −10 Ambiguous death commit | −10 The output is a Rich panel with every signal explained, a risk label, and a suggested action. ## Scan an entire codebase fossil scan ./src --threshold 80 Returns a ranked table of all dead files above 80% confidence, with their dead-since date and risk level. Exit code 4 means nothing above the threshold — useful for CI gates. ## Current state and roadmap **Live now (v0.2.0):** * `fossil explain` — full forensic report * `fossil scan` — directory scan with confidence threshold * `fossil clean` — prioritized deletion backlog * Python deep analysis (AST), text fallback for JS/TS/Java/Go * Pattern detection with condition verification * Local SQLite caching (cache hits < 100ms) **Coming next:** * GitHub/GitLab API integration (PR title/body fetch, `--yolo` deletion PR creation) * LLM narration for human-readable explanations * tree-sitter for deep multi-language analysis ## Install pip install fossil-code # Python 3.11+, requires git GitHub: https://github.com/iamvvekverma/fossil The confidence scoring weights are a first attempt — I'd genuinely like feedback on whether the calibration holds for your codebase. What signal should weigh more? What am I missing?
dev.to
June 20, 2026 at 1:41 PM
Dead code always annoys me so much because it sends me on false trails when I search a codebase. I'm glad that it's easy to find and clean it up in Go with the deadcode utility

#golang
May 20, 2026 at 4:44 PM
I’m pretty sure he does that in the Sonic AU called Deadcode
May 15, 2026 at 4:07 AM
Agreed. I am reminded of a pull request I saw that added AI generated unit tests to deadcode slated for removal.

Good unit tests describe the intent of code. Adding tests to code should demonstrate an understanding of what the code is meant to do.

These AI generated tests gave false significance.
May 7, 2026 at 5:54 PM
No one saw this coming - not even me. After stumbling upon an alternate universe called “DeadCode,” I just had to draw Amy, who used to be my favorite. #sonic #furryart #fanart #amyrose
April 26, 2026 at 7:53 PM
📦 oxhq/deadcode-laravel v0.1.5

Laravel dead code pruning with evidence, staged deletion, and rollback

🔗 https://github.com/oxhq/deadcode-laravel
April 25, 2026 at 11:07 PM
Lowkey really didn't wanna get into the deadcode AU because I didn't like a certain portrayal of metal, but this edit convinced me to see through their eyes. Also I like M3tamy now. These things could be related, but not really. Gonna write in me notes. Still love-hate with it but I like it now.
April 12, 2026 at 5:32 AM
📦 arafa/laravel-deadcode-detector v1.2.9

Detect and report dead / unused code in Laravel applications.

🔗 https://github.com/arafadev/laravel-deadcode-detector
April 3, 2026 at 9:04 PM
📦 arafa/laravel-deadcode-detector v1.2.8

Detect and report dead / unused code in Laravel applications.

🔗 https://github.com/arafadev/laravel-deadcode-detector
April 3, 2026 at 8:03 PM
📦 arafa/laravel-deadcode-detector v1.2.7

Detect and report dead / unused code in Laravel applications.

🔗 https://github.com/arafadev/laravel-deadcode-detector
April 3, 2026 at 7:09 PM
📦 arafa/laravel-deadcode-detector v1.2.6

Detect and report dead / unused code in Laravel applications.

🔗 https://github.com/arafadev/laravel-deadcode-detector
April 3, 2026 at 7:09 PM
📦 arafa/laravel-deadcode-detector v1.2.5

Detect and report dead / unused code in Laravel applications.

🔗 https://github.com/arafadev/laravel-deadcode-detector
April 3, 2026 at 6:04 PM
📦 arafa/laravel-deadcode-detector v1.2.4

Detect and report dead / unused code in Laravel applications.

🔗 https://github.com/arafadev/laravel-deadcode-detector
April 3, 2026 at 4:05 PM