sgcop-setup - Set up sgcop RuboCop configuration
Sets up or updates sgcop RuboCop configuration, removes approved redundancies, generates a todo file, and adjusts noisy cops.
Tags
Updated: 2026-10-05Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Detect Rails or Ruby projects
- Confirm standard or strict policy
- Configure sgcop inheritance
- Merge inherited Exclude settings
- Inspect sgcop settings dynamically
- Remove approved redundant settings
- Check gem-dependent custom cops
- Generate RuboCop todo configuration
- Summarize high-noise cops
- Propose cop adjustments
- Regenerate todo after exclusions
Inputs
- Target Rails or Ruby project
- Gemfile and lockfile
- Existing .rubocop.yml
- Installed sgcop gem
- Project source code
- Standard or strict choice
- Approval for redundant setting removal
- Cop adjustment decisions
Outputs
- Updated .rubocop.yml
- Generated .rubocop_todo.yml
- Enabled custom cop settings
- Disabled or excluded cop settings
- Cop noise summary
- Setup completion summary
Requirements
- Ruby project environment
- Bundler
- RuboCop
- Installed sgcop gem
- Permission to edit project files
- Interactive user confirmation
