square/leakcanary
GitHubA memory leak detection library for Android.
- Stars:
- 30k
- Language:
- Kotlin
- Default branch:
- main
- Last scored:
At a glance
- Rank
- #291 of 401
- #5 of 12 Kotlin repos
- Checks passed
- 6 of 16
- Full list below
- Best set up for
- GPT-5 Codex
- Score 68.7
- Needs most work for
- Aider
- Biggest fix: .aider.conf.yml (+14.1 pts)
What it has
What it's missing
What to fix first
Showing fixes for Claude Code
- 1Test suiteAdd a tests/ (or test/, __tests__/, spec/) directory with runnable tests. Document how to run them in AGENTS.md.+13.2 pts
- 2Linter / formatter configConfigure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint) and commit the config.+7.9 pts
- 3Pre-commit / git hooksSet up pre-commit (.pre-commit-config.yaml), husky, or lefthook to run format+lint on every commit.+5.3 pts
Score for each AI agent
Each agent looks for different things in a repo, based on its own docs. Under each score are the three checks it cares about most; the agent's name links to its leaderboard. How each agent is scored →
Does square/leakcanary have agent instructions?
An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.
- AGENTS.md / CLAUDE.md
AGENTS.md(new tab) · 9,766 characters- Agent-specific files
- None: no GEMINI.md, .cursor/rules, .openhands/setup.sh or .aider.conf.yml
- Repos that have one
- 8 of 12 Kotlin repos · 214 of 401 repos on the leaderboard · See examples →
All 16 checks · 6 passed
How square/leakcanary compares
- vs leaderboard average
- 6.7 pts below
- Average 68.9
- vs Kotlin average
- 2.1 pts above
- Average 60.1
- Stars among Kotlin repos
- #3 of 12
Missing here, and how many repos have it
- Linter / formatter config · passed by 66% of leaderboard repos, 8% of Kotlin repos
- Test suite · passed by 52% of leaderboard repos, 8% of Kotlin repos
- Pre-commit / git hooks · passed by 29% of leaderboard repos, 0% of Kotlin repos
One fix for the most agents: Test suite would raise the score for all 9 agents, by up to 14.1 points.
Similar repos
Same language and host as this repo, closest in overall score.
- Kotlin · 13.8k ★
- Kotlin · 9.3k ★
- coil-kt/coil59.9Kotlin · 11.9k ★
- Kotlin · 47.1k ★
- Kotlin · 130 ★
- mockk/mockk56.5Kotlin · 5.8k ★
Add a badge to your README
Paste this at the top of the README. It shows the score, and links back to this page.
[](https://agentfriendlycode.com/repo/github/square/leakcanary)Check the score on every pull request
A GitHub Action posts one comment per pull request with how the score changed and why.