square/leakcanary

GitHub
https://github.com/square/leakcanary

A memory leak detection library for Android.

  • android
  • java
  • kotlin
  • kotlin-android
  • leak-canary
  • leak-trace
  • leakcanary
  • memory-leak
  • outofmemory
  • outofmemoryerror
Stars:
30k
Language:
Kotlin
Default branch:
main
Last scored:
Overall

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

Pick an AI agent

Showing fixes for Claude Code

  1. 1
    Test suite
    Add a tests/ (or test/, __tests__/, spec/) directory with runnable tests. Document how to run them in AGENTS.md.
    +13.2 pts
  2. 2
    Linter / formatter config
    Configure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint) and commit the config.
    +7.9 pts
  3. 3
    Pre-commit / git hooks
    Set 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 →

GPT-5 Codex
#262 of 401
68.7
  • AGENTS.md / CLAUDE.md
  • README
  • Test suite
Devin
#279 of 401
67.1
  • Reproducible dev env
  • Dependency manifest
  • Test suite
Kimi CLI
#273 of 401
66.2
  • AGENTS.md / CLAUDE.md
  • Test suite
  • Dependency manifest
Claude Code
#272 of 401
66.1
  • AGENTS.md / CLAUDE.md
  • Test suite
  • Reproducible dev env
Pi
#285 of 401
63.5
  • AGENTS.md / CLAUDE.md
  • Test suite
  • Linter / formatter config
OpenHands
#282 of 401
60.9
  • CI configuration
  • Dependency manifest
  • Reproducible dev env
Cursor
#278 of 401
59.9
  • Cursor rules (.cursor/rules)
  • README
  • Type configuration
Gemini CLI
#288 of 401
59.3
  • GEMINI.md
  • README
  • Test suite
Aider
#351 of 401
47.7
  • .aider.conf.yml
  • Linter / formatter config
  • Test suite

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

Substantive (9,766 characters)
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
5 GitHub Actions workflows
No .cursor/rules/*.mdc or .cursorrules
Manifest present
Has gradlew
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 100% pass
License present
No linter/formatter config found
No .openhands/setup.sh
No pre-commit / husky / lefthook found
README· 70% pass
README present (817 characters)
Manageable size· 80% pass
916 files
Test suite· 0% pass
No test directory or test files found
Type configuration· 100% pass
Typed language (Java/Kotlin)

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.

All Kotlin repos →

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/square/leakcanary
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/square/leakcanary.svg)](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.