crap4java is a standalone tool that analyzes Java projects to compute CRAP scores combining code complexity and test coverage, helping identify methods needing improvement.
How It Works
You hear about a simple tool called crap4java that spots overly complicated parts of your Java code that aren't well tested.
Download the project and prepare the checker app so it's ready to use on your computer.
Navigate to the folder containing your Java project that you want to analyze.
Scan all Java files in your project's source folder.
Focus just on the files you recently modified.
Target particular files or entire folders you choose.
Run the tool and watch it automatically freshen up test results and dive into your code.
Get a neat report listing methods by their CRAP score, from highest to lowest, with complexity and coverage details.
Spot trouble spots easily and get warned if any score is too high, so you can simplify and test better.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.