Ruby & Rails Code Hygiene
RuboCop debt and Active Record query, transaction, and callback hygiene.
Choose a focused Ruby & Rails recipe
This collection contains 2 bounded Ruby & Rails workflows. Choose the recipe whose objective matches the repository evidence instead of combining unrelated cleanup into one run.
- Ruby RuboCop baseline and disable debt: Use it to resolve RuboCop offenses and narrow disabled cops without broad rewrites.
- Rails query, transaction, and callback hygiene: Use it to make Active Record query count, transaction scope, and callback side effects explicit.
How to use this collection
Read the repository’s configured runtime, compiler, framework, analyzer, and test commands before selecting a workflow. Start in audit mode, record file and symbol evidence, and authorize a fix only after the candidate scope is reviewable. Preserve supported versions, public behavior, and existing tool configuration.
If the evidence is a named CVE, scanner finding, exposed secret, authorization flaw, or injection path, use the focused vulnerability-remediation playbook instead of a code-hygiene recipe. Stop when the safe result requires an owner decision about architecture, compatibility, production data, or deployment state.
Full recipe list
Ruby RuboCop baseline and disable debt
developmentRuby RuboCop baseline and disable debt: Resolve RuboCop offenses and narrow disabled cops without broad rewrites.
Rails query, transaction, and callback hygiene
developmentRails query, transaction, and callback hygiene: Make Active Record query count, transaction scope, and callback side effects explicit.