This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add expect_offense mark for offense on empty line
Part of rubocop#8003 Use `^{}` to denote an offense at an empty line in `expect_offense`. Example: ```ruby expect_offense(<<~RUBY) ^{} Missing frozen string literal comment. puts 1 RUBY ``` Enable pending frozen string literal specs Correct which line the offense is added to (always the first line). As the first line is non-empty in these cases, use a normal caret `^` to mark the offense.
- Loading branch information
Showing
2 changed files
with
16 additions
and
17 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