Layout/ClassStructure
syntax error / cloberring error auto-corrections
#9723
Labels
Layout/ClassStructure
syntax error / cloberring error auto-corrections
#9723
Layout/ClassStructure
has a bad algorithm for moving code with respect to empty lines before/after. Look for+1
in the code.Heredocs
Looks like the cop assumes that heredocs are always followed by a empty line
gets auto-corrected to:
If the config's order is switched, then
generates a cloberring error.
Defs
Defs (except
initialize
??) can create issues when not separated with empty lines. E.g.:gets auto-corrected to:
In general, it should have been clear that to swap two blocks of code and keep good empty lines is not possible with a single "cut" and "paste", but that is what the current code is attempting.
Noticed in my refactor, I'll handle it.
The text was updated successfully, but these errors were encountered: