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 摘要。