-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't enforce cops after __END__
#1541
Comments
I'm not sure RuboCop should handle this or |
Parser ignores code after
|
I think the only cops that have a problem with
Does that sound about right, @lloeki, or did you run into problems with other cops? |
Yeah, you're probably right. |
Those are the ones I encountered: Style/TrailingWhitespace:
Enabled: false
Style/Tab:
Enabled: false
Style/TrailingBlankLines:
Enabled: false |
[Fix #1541] Do not inspect after __END__
I'm running into We are using RuboCop to review third party source code where we ran into this scenario. I looks like Ruby's Could an alternative be to use Had this been our own code we could fix it by saving with different line endings. But since we use RuboCop to review third party source for extensions to our application we cannot easily do that. And since Ruby files with |
|
__END__
can be used to mark the end of a Ruby file, and the remainder can be used as raw data. Homebrew uses this to include simple patches straight inside its formulas.The text was updated successfully, but these errors were encountered: