Who it is forA tech lead adopting code quality checks on an existing Laravel or PHP codebase with years of history.
The problemA first scan returns hundreds of findings, and blocking every build on old debt stops the team from merging anything.
The outcomeExisting findings are accepted into a baseline, and pull requests get annotations only for findings the branch introduced.
What you need first
- PHP 8.3 or newer
- Composer
- A PHP project with source roots listed in composer.json
- Git, for diff and review commands
Steps
- Run
composer require --dev heyosseus/sloppyin the repository. - Run
vendor/bin/sloppy baselineto accept the debt that already exists. (inferred, check the README) - Run
vendor/bin/sloppy cilocally to see what the pipeline would report. (inferred, check the README) - Add the GitHub Action to the workflow with
uses: heyosseus/sloppy-action@v1anddiff-branch: main.
Prompt for your agent
In the Heyosseus/sloppy project, set up a baseline for the PHP repository at <project path> by running the baseline command, then run the CI command. Output the number of accepted baseline entries and the CI result. Verify that the CI command reports no findings on the unchanged branch.
Caveat. The README says baseline entries are keyed on class and member rather than line numbers, but a team still has to commit and maintain the baseline file as the codebase changes.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Heyosseus/sloppy and "Gate CI on new PHP debt only"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer