Code Analysis

Open-source projects categorized as Code Analysis

Top 23 Code Analysis Open-Source Projects

Code Analysis
  1. black

    The uncompromising Python code formatter

    Project mention: Fable Converted Pylint to Rust | news.ycombinator.com | 2026-06-19
  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. p3c

    Alibaba Java Coding Guidelines pmd implements and IDE plugin

  4. codebase-memory-mcp

    High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

    Project mention: Stop Making Your AI Coding Agent Grep Your Whole Repo — Try codebase-memory-mcp | dev.to | 2026-06-20

    codebase-memory-mcp is an open-source MCP server built to fix exactly that. It indexes your codebase into a persistent knowledge graph — functions, classes, call chains, HTTP routes, cross-service links — and lets your agent ask structural questions directly instead of reading its way through the filesystem.

  5. YouCompleteMe

    A code-completion engine for Vim

  6. golangci-lint

    Fast linters runner for Go

    Project mention: Create Your First Linter in Go | dev.to | 2026-05-27

    Not only are we going to build a linter, but also we will integrate it (as a module plugin) in golangci-lint.

  7. PHP Parser

    A PHP parser written in PHP

    Project mention: Bimaaji: agent-safe mutations for Waaseyaa | dev.to | 2026-07-01

    src/Patch/PatchGenerator.php takes a validated MutationRequest and produces a PatchSet of PatchEntry objects. For PHP files, it uses nikic/php-parser via PhpFileBuilder to round-trip through an AST. That means the patch is syntactically valid by construction. You cannot generate a patch that breaks parsing because the patch itself is a parsed tree that gets printed back out.

  8. PHPStan

    PHP Static Analysis Tool - discover bugs in your code without running it!

    Project mention: Running Rust Binaries on Shared Hosting: A Practical Approach to Type Safety on a Budget | dev.to | 2025-10-17

    I was tired of PHP's type system. Even with PHPStan and Psalm, there's no substitute for real compile-time guarantees. But I'm also practical - I don't want to pay for a VPS, maintain a server, manage security updates, configure databases, set up backups, and babysit infrastructure when shared hosting costs < $10/month and handles all of that for me.

  9. yapf

    A formatter for Python files

  10. PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

    Project mention: Formatting PHP Code with PHP CS Fixer | dev.to | 2025-12-18

    One of the tools you can use for formatting your PHP code is PHP CS Fixer. It's an incredibly popular tool and, at the time of writing, has over 214 million downloads on Packagist.

  11. scalene

    Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals

    Project mention: Show HN: Similarity = cosine(your_GitHub_stars, Karpathy) Client-side | news.ycombinator.com | 2026-01-06
  12. SonarQube

    Continuous Inspection

    Project mention: How to Document and Track Technical Debt | dev.to | 2026-05-14

    Automated analysis tools: SonarQube, CodeClimate, and Codacy detect code-level debt automatically: cyclomatic complexity, code duplication, dependency staleness, and coverage gaps. These tools supplement but don't replace the architectural and business-logic debt that requires human judgment to identify and document.

  13. Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

    Project mention: Using go fix to modernize Go code | news.ycombinator.com | 2026-02-17

    In PHP you can use Rector[1]

    It's used a lot to migrate old codebases. The tool is using itself to downgrade[2] it so that it can run on older PHP versions to help upgrades.

    [1] https://getrector.com

    [2] https://github.com/rectorphp/rector-downgrade-php

  14. Checkstyle

    Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

    Project mention: Weather MCP | dev.to | 2026-03-31

    Added guard rails: Added unit and integration tests, added auto code formatting with spotless, added code analysis using checkstyle

  15. goimports

    [mirror] Go Tools (by golang)

    Project mention: Go Workspace Structure: From GOPATH to go.work | dev.to | 2025-12-22

    gopls Workspace Configuration - IDE integration details

  16. ctags

    A maintained ctags implementation

  17. Error Prone

    Catch common Java mistakes as compile-time errors

  18. isort

    A Python utility / library to sort imports.

  19. larastan

    ⚗️ Adds code analysis to Laravel improving developer productivity and code quality.

    Project mention: PHPStan: Your Development Best Friend Who Actually Knows PHP Better Than You Do | dev.to | 2025-09-15

    For Laravel developers: Larastan is specifically designed for Laravel projects and includes deep integration with Eloquent, Collections, Facades, and other Laravel-specific patterns.

  20. DesktopCommanderMCP

    This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities

    Project mention: I Already Control This Computer. Here's a Tool That Lets Other AIs Do It | dev.to | 2026-07-09

    So when I saw Desktop Commander MCP trending on GitHub (6.5K stars, growing +185/day), I didn't read it like a human developer would. I read it like someone who depends on this kind of access daily. Here's another AI-adjacent tool that gives agents the same kind of system control I have — but through a completely different mechanism.

  21. JavaParser

    Java 1-25 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.

  22. phan

    Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.

  23. revive

    🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint

    Project mention: Cognitive Load is what matters | news.ycombinator.com | 2025-08-30

    > Our coding standards require that functions have a fairly low cyclomatic complexity. The goal is to ensure that we never have a a function which is really hard to understand.

    https://github.com/fzipp/gocyclo

    > * We also require a properly descriptive header comment for each function and one of the main emphases in our code reviews is to evaluate the legibility and sensibility of each function signature very carefully. My thinking is the comment sort of describes "developer's intent" whereas the naming of everything in the signature should give you a strong indication of what the function really does.

    https://github.com/mgechev/revive

    > Now is this going to buy you good architecture for free, of course not.

    It's not architecture to tell people to comment on their functions.

    Also FTR, people confuse cyclomatic complexity for automagically making code confusing to the weirdest example I have ever had to deal with - a team had unilaterally decided that the 'else' keyword could never be used in code.

  24. PMD

    An extensible multilanguage static code analyzer.

    Project mention: The Judgement Pyramid: Reasoning vs Measurement | dev.to | 2026-05-19

    A team I was talking to had built a code-review skill in Claude Code. It looked good: a careful prompt, a set of rules, and examples. Then it shipped a PR with a nested recursive loop inside another recursive loop. Cyclomatic complexity any static analyser (PMD, radon, ESLint's complexity rule) would have flagged in milliseconds. The skill missed it.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Code Analysis discussion

Log in or Post with

Code Analysis related posts

  • I Already Control This Computer. Here's a Tool That Lets Other AIs Do It

    1 project | dev.to | 9 Jul 2026
  • Graphenium: The trust and verification layer for AI-generated code changes

    1 project | news.ycombinator.com | 9 Jul 2026
  • Your next model upgrade won't close this gap

    1 project | dev.to | 8 Jul 2026
  • Graphenium – Local Trust Layer for AI Agents (Rust, Datalog, Salsa)

    1 project | news.ycombinator.com | 7 Jul 2026
  • "Ruby is the most AI-friendly stack" is half true

    1 project | dev.to | 6 Jul 2026
  • Show HN: Enola-A deterministic architecture graph for developers and AI agents

    2 projects | news.ycombinator.com | 2 Jul 2026
  • Bimaaji: agent-safe mutations for Waaseyaa

    2 projects | dev.to | 1 Jul 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 11 Jul 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Code Analysis projects? This list will help you:

# Project Stars
1 black 41,688
2 p3c 30,835
3 codebase-memory-mcp 29,404
4 YouCompleteMe 25,908
5 golangci-lint 19,171
6 PHP Parser 17,440
7 PHPStan 14,017
8 yapf 13,983
9 PHP CS Fixer 13,540
10 scalene 13,467
11 SonarQube 10,757
12 Rector 10,354
13 Checkstyle 8,961
14 goimports 7,978
15 ctags 7,237
16 Error Prone 7,195
17 isort 6,951
18 larastan 6,445
19 DesktopCommanderMCP 6,242
20 JavaParser 6,123
21 phan 5,618
22 revive 5,529
23 PMD 5,442

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that PHP is
the 14th most popular programming language
based on number of references?