Skip to content

The best Infer alternatives

3 tools that do a similar job to Infer, 3 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

Infer

A static analyzer that scans Java, C, C++, and Objective-C code for bugs without running it.

  1. 1

    PHPStan

    Open source · MIT · ★ 14.1k

    A PHP static analysis tool that finds bugs in code without running it.

    Best for: PHP developers who want to catch bugs earlier than tests alone allow; Teams maintaining large PHP codebases

  2. 2

    SwiftLint

    Open source · MIT · ★ 19.8k

    A command-line tool that checks Swift code against common style rules.

    Best for: iOS and macOS developers who want consistent Swift style across a team; Teams that want style checks to run automatically in builds or Xcode

  3. 3

    Super-Linter

    Open source · MIT · ★ 10.6k

    A bundle of many code linters that runs as a GitHub Action or in a container to check your code.

    Best for: Teams that want automated code checks on GitHub pull requests; Projects spanning several programming languages that need one linting entry point

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to Infer. We don't take payment for placement.