Add AssignmentRules cop for enforcing TODO assignment policies #121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new RuboCop cop called
AssignmentRulesthat allows teams to enforce that all smart TODOs include specific required assignees. This helps centralize TODO notifications and ensures important TODOs don't get missed.Motivation
Teams often want to ensure that critical TODOs are visible to specific channels or stakeholders. For example, a team might want all smart TODOs to be assigned to their project channel so they can track and review them in one place.
How it works
The cop checks that all "smart" TODOs (those with events and assignees) include all required assignees specified in the configuration.
Configuration
Example
Features
Future extensibility
The
AssignmentRulesname was chosen to allow for future extensions such as:Test plan
🤖 Generated with Claude Code