Topics / #static-code-analysis

Static-code-analysis projects on GitHub

Linters and analyzers that inspect code without running it.

As of , the most-starred Static-code-analysis projects on GitHub are ruff (51.3K stars), shellcheck (40.4K stars) and eslint (27.6K stars). GitHub.Locker tracks 17 Static-code-analysis repositories with 330.2K stars combined. The fastest-growing on November 30 was ruff, with +38 stars in a day.

17Projects
330.2KStars in total
+134Stars in a day

Hot right now

Most stars gained in a day · Nov 30

The all-time top

17 projects · by stars

  1. #1 · astral-sh/ruff

    ruff

    Ruff is an extremely fast Python linter and code formatter written in Rust, built to replace tools like Flake8, Black, isort, pydocstyle, pyupgrade, and autoflake with a single command-line tool.

    51.3K
  2. #2 · koalaman/shellcheck

    shellcheck

    ShellCheck is a free static analysis tool for shell scripts: it reads your bash/sh code and reports warnings and suggestions for problems in it.

    40.4K
  3. #3 · eslint/eslint

    eslint

    ESLint is a linter for JavaScript: a tool that identifies and reports on patterns found in ECMAScript/JavaScript code, so problems get caught before they ship.

    27.6K
  1. 4

    biome

    26.2Kbiomejs/biome · Rust

    Biome is a toolchain for web projects: one fast tool that both formats and lints JavaScript, TypeScript, JSX, JSON, CSS and GraphQL, run from the CLI or your editor via LSP.

  2. 5

    mypy

    20.7Kpython/mypy · Python

    Mypy is a static type checker for Python: you add type hints (PEP 484) to your code and it warns you when you use those types incorrectly, catching bugs without even running the program.

  3. 6

    semgrep

    18Ksemgrep/semgrep · C

    Semgrep is a fast, open-source static analysis tool that scans source code to find bugs, security issues, and enforce coding standards using rules that look like ordinary code rather than abstract syntax trees or regex.

  4. 7

    PHP-Parser

    17.5Knikic/PHP-Parser · PHP

    A parser written in PHP that turns PHP code into an abstract syntax tree (AST). Its purpose is to simplify static code analysis and manipulation of PHP code.

  5. 8

    ast-grep

    16.6Kast-grep/ast-grep · Rust

    ast-grep (sg) is a CLI tool for structural search, linting and rewriting of source code — like grep, but matching the abstract syntax tree instead of raw text.

  6. 9

    typescript-eslint

    16.5Ktypescript-eslint/typescript-eslint · TypeScript

    typescript-eslint is the monorepo that provides the tooling enabling ESLint to understand and lint TypeScript code, including the parser and plugin rules.

  7. 10

    infer

    15.8Kmeta/infer · OCaml

    Infer is a static analysis tool that finds bugs in Java, C, C++, and Objective-C code by analyzing it without running it. It lives under Facebook's GitHub and is written in OCaml.

  8. 11

    pyright

    15.8Kmicrosoft/pyright · Python

    Pyright is a full-featured, standards-based static type checker for Python, built by Microsoft for speed on large codebases.

  9. 12

    static-analysis

    14.9Kanalysis-tools-dev/static-analysis · Rust

    A curated list of static analysis (SAST) tools, linters and formatters for all programming languages, config files and build tools, focused on tools that improve code quality.

  10. 13

    phpstan

    14.2Kphpstan/phpstan · PHP

    PHPStan is a static analysis tool for PHP that finds bugs in your code without actually running it, catching whole classes of errors before you even write tests.

  11. 14

    rubocop

    12.9Krubocop/rubocop · Ruby

    RuboCop is a static code analyzer (linter) and code formatter for Ruby that enforces the community Ruby Style Guide out of the box, and it is also configurable to enforce your own style.

  12. 15

    rector

    10.5Krectorphp/rector · PHP

    Rector is a PHP tool that instantly upgrades and refactors PHP codebases: it automates upgrades from PHP 5.3 up to 8.5 plus framework migrations, and can keep code quality high continuously via CI.

  13. 16

    psalm

    5.9Kvimeo/psalm · PHP

    Psalm is a static analysis tool that scans PHP code to find errors and security vulnerabilities without running the application.

  14. 17

    fallow

    5.4Kfallow-rs/fallow · Rust

    Fallow is a Rust-based codebase intelligence tool for TypeScript/JavaScript that builds one dependency graph of a repository and reports unused code, circular dependencies, duplication, complexity hotspots, architecture boundary violations, and design-system styling drift.

Often tagged together