DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to gate CI on new PHP debt only with Sloppy

Baseline today's findings, then fail pull requests only when a branch adds new ones.

Short answer: Run composer require --dev heyosseus/sloppy in the repository; then run vendor/bin/sloppy baseline to accept the debt that already exists; run vendor/bin/sloppy ci locally to see what the pipeline would report. All steps.

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

  1. Run composer require --dev heyosseus/sloppy in the repository.
  2. Run vendor/bin/sloppy baseline to accept the debt that already exists. (inferred, check the README)
  3. Run vendor/bin/sloppy ci locally to see what the pipeline would report. (inferred, check the README)
  4. Add the GitHub Action to the workflow with uses: heyosseus/sloppy-action@v1 and diff-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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer