Slopscout

•
1
•

Analyzes Java code for design smells and calculates a weighted quality score to guide coding agents and developers.

Slopscout provides coding agents with a measurable forcing function for Java design smells, ranking production files by a weighted design-debt score. It aggregates complex PMD signals like cognitive, cyclomatic, and NPath complexity, nesting, coupling, and God Class findings into a simple, actionable score. This stateless tool automatically identifies Maven and Gradle Java projects, infers language versions, and offers a clear goal: lower the score and maintain files below a target, effectively shifting quality checks left in the development pipeline.

主要功能

01Automatically discovers Maven/Gradle project structures and infers Java versions
021 GitHub stars
03Calculates a weighted design-debt score for Java files based on PMD signals
04Supports multiple analysis modes: entire projects, specific directories, or individual files, with various output formats (text, JSON)
05Provides an optional MCP server exposing `rank_java_files` and `score_java_files` tools for AI agents
06Integrates with GitHub Actions to enforce quality gates on pull requests and pushes

使用案例

01Automate quality checks in CI/CD pipelines to prevent high-scoring 'slop' from being merged into the main branch.
02Provide a simple, measurable quality goal for AI coding agents during feature development or refactoring tasks.
03Identify and prioritize specific files or modules within a Java project that require cleanup or simplification efforts by developers or dedicated cleanup agents.