Java Code Analysis

Open-source Java projects categorized as Code Analysis

Top 19 Java Code Analysis Projects

Code Analysis
  1. 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.

  2. SaaSHub

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

    SaaSHub logo
  3. 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

  4. Error Prone

    Catch common Java mistakes as compile-time errors

  5. JavaParser

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

    Project mention: Onboarding Your AI Pair Programmer: From Spec-Driven Development to Kiro Powers | dev.to | 2026-07-11

    We (Kiro and me) developed this approach while contributing to JavaParser, a 6,000+ star open source project with strict architectural standards. After receiving maintainer feedback on our first PR that highlighted 8 code quality issues (not bugs — the code worked, but it bypassed project abstractions), we realized: the AI needed to be onboarded properly.

  6. 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.

  7. NullAway

    A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead

  8. Spotbugs

    SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.

  9. find-sec-bugs

    The SpotBugs plugin for security audits of Java web applications and Android applications. (Also work with Kotlin, Groovy and Scala projects)

  10. Spoon

    Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API.

    Project mention: Code generation for algorithms in Java | dev.to | 2026-02-24

    Spoon is a heavier and more powerful framework that helps read, modify, and create Java code. It's powerful enough that we built our Java static analyzer on it. It may be an overkill for our task, but it's worth mentioning.

  11. pysonar2

    PySonar2: a semantic indexer for Python with interprocedual type inference

  12. SonarJava

    :coffee: SonarSource Static Analyzer for Java Code Quality and Security

  13. FindBugs

    The new home of the FindBugs project

  14. RefactorFirst

    Identifies and prioritizes Class and Package Cycles and Anti-pattens in Java & Kotlin codebases you should refactor first.

  15. sonar-flutter

    SonarQube plugin for Flutter / Dart

  16. forbidden-apis

    Policeman's Forbidden API Checker

  17. proguard-core

    Library to read, write, analyze, and process java bytecode

  18. jQAssistant

    Your Software. Your Structures. Your Rules.

  19. umldoclet

    Automatically generate PlantUML diagrams in javadoc

  20. AndroidResourceManager

    Android Resource Manager application to manage and analyse your app resources with many features like image resize, Color, Dimens and code Analysis

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).

Java Code Analysis discussion

Log in or Post with

Java Code Analysis related posts

  • How I Choose Which Open Source Issue to Work On (After Picking Wrong Ones)

    1 project | dev.to | 5 Nov 2026
  • How I Extended a Refaster Rule in Picnic's error-prone-support (and Recovered a PR GitHub Broke)

    1 project | dev.to | 3 Nov 2026
  • How to Write a Technical Debt Remediation Plan for Non-Technical Stakeholders

    2 projects | dev.to | 14 May 2026
  • 13 Best Duplicate Code Checker Tools in 2026

    1 project | dev.to | 10 Apr 2026
  • SonarQube vs PMD: Java Static Analysis Compared (2026)

    1 project | dev.to | 8 Apr 2026
  • Code generation for algorithms in Java

    2 projects | dev.to | 24 Feb 2026
  • Solving the Billion-Dollar Mistake: Modern Java Null Safety with JSpecify and NullAway

    1 project | dev.to | 24 Sep 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 8 Nov 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 in Java? This list will help you:

# Project Stars
1 SonarQube 11,161
2 Checkstyle 9,638
3 Error Prone 7,268
4 JavaParser 6,175
5 PMD 5,525
6 NullAway 4,132
7 Spotbugs 3,966
8 find-sec-bugs 2,453
9 Spoon 1,963
10 pysonar2 1,424
11 SonarJava 1,220
12 FindBugs 780
13 RefactorFirst 548
14 sonar-flutter 498
15 forbidden-apis 373
16 proguard-core 351
17 jQAssistant 300
18 umldoclet 257
19 AndroidResourceManager 32

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

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