brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
RuboCop::Cop::FormulaCop#find_every_func_call_by_name
Returns array of function call nodes matching func_name in every descendant of node
Ex. function call: foo(*args, **kwargs)
Does not match method calls: foo.bar(*args, **kwargs)
Returns every function calls if no func_name is passedEdit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/rubocops/extend/formula.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RuboCop--Cop--FormulaCop-find_every_func_call_by_name-for-pr
# Commit to gitgit add Library/Homebrew/rubocops/extend/formula.rbgit commit -m "better docs for RuboCop::Cop::FormulaCop#find_every_func_call_by_name"
# 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--FormulaCop-find_every_func_call_by_name-for-pr
hub pull-request
# Celebrate!