Hacker ApprovedDepartments

The best static analyzers, according to hackers

12 static analyzers were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 3 earn the Hacker Approved badge.

Top picks

The three most recommended static analyzers with the badge. Each figure is one person. RecommendsCriticizes One comment

  1. zizmor

    19 recommend, 1 criticize, 95% approval

    Ranked 1 of 12 by recommenders

    Static analysis for GitHub Actions security

    Free static analyzer for GitHub Actions that catches security issues such as template injection. Critics say it produces many false positives.

  2. clang-tidy

    14 recommend, 4 criticize, 78% approval

    Shares rank 2 of 12 by recommenders

    Catches common C and C++ mistakes

    Free C and C++ linter that catches common bugs and is widely recommended alongside sanitizers and compiler warnings. Critics say it struggles with lifetime checks and produces false positives.

  3. PHPStan

    11 recommend, 0 criticize, 100% approval

    Ranked 4 of 12 by recommenders

    Handles type definitions well

    Free open-source static analysis tool for PHP that people say catches most issues before runtime and handles type definitions well.

All 12 static analyzers, ranked

Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.

Static analyzers ranked by the number of people who recommend them
Rank
1zizmor19195%6—Approved
Tied 2Semgrep141058%7——
Tied 2clang-tidy14478%6—Approved
4PHPStan110100%7—Approved
5SonarQube101343%6——
6CodeQL91047%3——
7Coverity7654%4——
Tied 8Roslyn analyzers60100%5——
Tied 8NilAway by Uber60100%5——
Tied 10Dialyzer5645%4——
Tied 10Frama-C50100%4——
Tied 10NullAway5183%3——

How we rank

Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same static analyzer in five threads counts once.

The badge goes to static analyzers that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.

Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.