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
Autocorrection was rewritten, which notably moves the offense for def_self style to the sclass itself, in order to properly handle each method within it without getting clobbering errors.
Autocorrection fixes:
* Handle multiple methods within class << self
* Remove extra whitespace
* Fix indentation
* Remove self << class if empty
Autocorrection was rewritten, which notably moves the offense for def_self style to the sclass itself, in order to properly handle each method within it without getting clobbering errors.
Autocorrection fixes:
* Handle multiple methods within class << self
* Remove extra whitespace
* Fix indentation
* Remove self << class if empty
Co-authored-by: Bozhidar Batsov <bozhidar@batsov.com>
I use autocorrect on a Style/ClassMethodsDefinitions issue and it wrongly restructures the code
Version rubocop (0.90.0)
Expected behavior
Actual behavior
Major issues:
def with_causation_id(causation_id)
is not removeclass << self end
empty block stay in the codeMinor Issues:
Steps to reproduce the problem
Starting code:
RuboCop version
The text was updated successfully, but these errors were encountered: