We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
while cond x = 1 # これが UselessAssignment として検出されない x = 1 p x end
https://github.com/bbatsov/rubocop/blob/245155158db2d4e0d3d0da918d3e7f3bf6291e78/lib/rubocop/cop/variable_force.rb#L310
このへんを見ると、ループ内で使っている変数は問答無用で全部マークされている。
どうやって実装したらいいかは正直わからないので、ちゃんと調査する必要があると思います。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/bbatsov/rubocop/blob/245155158db2d4e0d3d0da918d3e7f3bf6291e78/lib/rubocop/cop/variable_force.rb#L310
このへんを見ると、ループ内で使っている変数は問答無用で全部マークされている。
どうやって実装したらいいかは正直わからないので、ちゃんと調査する必要があると思います。
The text was updated successfully, but these errors were encountered: