-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an incorrect auto-correct for
Layout/ClassStructure
This PR fixes the following incorrect auto-correct for `Layout/ClassStructure` when heredoc constant is defined after public method. ```console % cat example.rb class Foo def foo end CONSTANT = <<~EOS.freeze str EOS end % bundle exec rubocop --only Layout/ClassStructure -a (snip) % cat example.rb class Foo CONSTANT = <<~EOS.freeze def foo end str EOS end ```
- Loading branch information
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters