github / github/rubocop-github

Unify controller render cops?

未关闭
#34 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
667
派生
164
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

调研方向

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

由索引模型根据 Issue 内容生成。

评估

技术栈
ruby
领域
tooling
Issue 类型
重构
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。