# woshiccm/Pecker

CodePecker is a tool to detect unused Swift code.

Repository: https://github.com/woshiccm/Pecker
Canonical: https://ross.abutalabs.com/products/pecker
Language: Swift
License: MIT
License Family: permissive
Last push: 2022-04-08T07:21:31+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2465, "days_push": 1608, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1459, forks 63 (observed 2026-08-28T04:04:47.292374+00:00)

## What it is
Pecker is a command-line tool that detects unused Swift code such as classes, structs, enums, protocols, functions, typealiases, and operators. It is built on IndexStoreDB and SwiftSyntax and integrates into Xcode build phases or CI pipelines.

## Use cases
- find unused swift classes and functions
- detect dead code in an ios project
- clean up unused protocols and typealiases in swift
- add unused code warnings to xcode build
- run static dead code analysis on a swift codebase
- identify unused swift code in ci

## When to choose
- you maintain a growing Swift or iOS codebase and want to find dead code
- you want unused-code checks integrated into Xcode or CocoaPods build phases
- you prefer an accurate index-based analysis over regex-based linters

## When to avoid
- your project is not written in Swift
- you need analysis for Objective-C or mixed-language codebases
- you need a tool with frequent updates, since the latest release dates to 2022

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: linter, static-site-generator, developer-tools
- domain: developer-tools, apple-ecosystem
- platform: cli
- tags: swift, unused-code-detection, swiftsyntax, indexstoredb, code-quality, xcode, command-line, macos

## Member repositories
- woshiccm/Pecker (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:47.292374+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:28.843832+00:00, confidence not recorded.
  - readme: https://github.com/woshiccm/Pecker (fetched 2026-08-28T04:04:47.292374+00:00, sha e4abc4e9a28c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
