github / github/rubocop-github

Unify controller render cops?

Aberta
#34 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Ruby
Estrelas
667
Forks
164
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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"`?

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

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"`.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
ruby
Domínio
tooling
Tipo de issue
Refatoração
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.