github / github/rubocop-github
Unify controller render cops?
- Langage dominant
- Ruby
- Étoiles
- 667
- Forks
- 164
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
It looks like there are several cops which implement various approaches to recommending:
```ruby
render "path/to/template", { ... options ... }
```
Why are these cops separate? Could they be unified?
For example, one cop replaces `render action: :edit` => `render action: "edit"`, but another replaces `render action: "edit"` => `render "edit"`. So, could we jump right from `render action: :edit"` => `render "edit"`?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
The issue does not name files or tests. Start by locating the controller render cops that handle symbol and string actions, then compare their recommendations and correction behavior. Done means determining whether the cops can be unified and defining a consistent direct correction from `render action: :edit` to `render "edit"`.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- ruby
- Domaine
- tooling
- Type d'issue
- Refactorisation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100