brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

RuboCop::Cop::FormulaCop#find_instance_call

Matches receiver part of method,
EX: to match `ARGV.<whatever>()`
call `find_instance_call(node, "ARGV")`
yields to a block with parent node of receiver

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/rubocops/extend/formula.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RuboCop--Cop--FormulaCop-find_instance_call-for-pr


# Commit to git

git add Library/Homebrew/rubocops/extend/formula.rbgit commit -m "better docs for RuboCop::Cop::FormulaCop#find_instance_call"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-RuboCop--Cop--FormulaCop-find_instance_call-for-pr

hub pull-request


# Celebrate!