rubocop
https://github.com/bbatsov/rubocop
Ruby
A Ruby static code analyzer, based on the community Ruby style guide.
RuboCop::Cop::Style::EmptyLineAfterMagicComment#last_magic_comment
Find the last magic comment in the source file. Take all comments that precede the first line of code, select the magic comments, and return the last magic comment in the file.
Edit
git clone [email protected]:bbatsov/rubocop.git
cd rubocop
open lib/rubocop/cop/style/empty_line_after_magic_comment.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RuboCop--Cop--Style--EmptyLineAfterMagicComment-last_magic_comment-for-pr
# Commit to gitgit add lib/rubocop/cop/style/empty_line_after_magic_comment.rbgit commit -m "better docs for RuboCop::Cop::Style::EmptyLineAfterMagicComment#last_magic_comment"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RuboCop--Cop--Style--EmptyLineAfterMagicComment-last_magic_comment-for-pr
hub pull-request
# Celebrate!