Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuboCopの Lint/FlipFlopのコメントを修正できそう #2

Open
pocke opened this issue Jul 18, 2019 · 1 comment
Open

RuboCopの Lint/FlipFlopのコメントを修正できそう #2

pocke opened this issue Jul 18, 2019 · 1 comment

Comments

@pocke
Copy link

pocke commented Jul 18, 2019

RuboCopというRubyの静的解析ツールにはflip-flopオペレータの使用を検出するLint/FlipFlopというルールがあります。
そのドキュメントコメントに

flip-flop operator is deprecated since Ruby 2.6.0.

https://github.com/rubocop-hq/rubocop/blob/3be221e4f5619e58b1f56d94b9d08d0e5524489c/lib/rubocop/cop/lint/flip_flop.rb#L7

とあります。
ですが、この警告は2.7では削除されるようです。

https://bugs.ruby-lang.org/issues/5400

なので、この1文を削除したり、もう少し説明を足したりしたほうが良いような気がします。

@koic
Copy link
Member

koic commented Jul 18, 2019

キャッチアップありがとうございます!これは元々 Style 部署にいた FlipFlop cop を Lint 部署に移動した際の理由として記したものです。
rubocop/rubocop#6636

部署を Style に戻すべきかは悩ましいですが、たしかにコメントについて更新した方が良さそうです。よければ更新をお願いできると嬉しいです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants