{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "heyosseus-sloppy--adopt-sloppy-on-legacy-php-without-blocking-builds",
 "repo": "Heyosseus/sloppy",
 "repo_url": "https://github.com/Heyosseus/sloppy",
 "repo_slug": "heyosseus-sloppy",
 "title": "Gate CI on new PHP debt only",
 "page_title": "How to gate CI on new PHP debt only with Sloppy",
 "summary": "Baseline today's findings, then fail pull requests only when a branch adds new ones.",
 "who": "A tech lead adopting code quality checks on an existing Laravel or PHP codebase with years of history.",
 "problem": "A first scan returns hundreds of findings, and blocking every build on old debt stops the team from merging anything.",
 "outcome": "Existing findings are accepted into a baseline, and pull requests get annotations only for findings the branch introduced.",
 "steps": [
  "Run `composer require --dev heyosseus/sloppy` in the repository.",
  "Run `vendor/bin/sloppy baseline` to accept the debt that already exists. (inferred, check the README)",
  "Run `vendor/bin/sloppy ci` locally to see what the pipeline would report. (inferred, check the README)",
  "Add the GitHub Action to the workflow with `uses: heyosseus/sloppy-action@v1` and `diff-branch: main`."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "php",
 "requirements": [
  "PHP 8.3 or newer",
  "Composer",
  "A PHP project with source roots listed in composer.json",
  "Git, for diff and review commands"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/heyosseus-sloppy/adopt-sloppy-on-legacy-php-without-blocking-builds/",
 "md": "https://dedupedai.com/use-cases/heyosseus-sloppy/adopt-sloppy-on-legacy-php-without-blocking-builds/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/heyosseus-sloppy--adopt-sloppy-on-legacy-php-without-blocking-builds.json",
 "api_version": "v1"
}
