You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When action method is defined in condition block, autocorrect for Rails/ActionOrder swaps action methods without concerning whether they are conditionally defined, thus breaking semantics.
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
You can see extension cop versions (e.g. rubocop-rails, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
When action method is defined in condition block, autocorrect for Rails/ActionOrder swaps action methods without concerning whether they are conditionally defined, thus breaking semantics.
Expected behavior
(would be desirable; at least, autocorrect (or doing nothing) doesn't break semantics)
Actual behavior
Steps to reproduce the problem
rubocop -a
with following sourceRuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:You can see extension cop versions (e.g. rubocop-rails, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
The text was updated successfully, but these errors were encountered: