rubocop

https://github.com/bbatsov/rubocop

Ruby

A Ruby static code analyzer, based on the community Ruby style guide.

RuboCop::TargetFinder#find_files

Search for files recursively starting at the given base directory using
the given flags that determine how the match is made. Excluded files will
be removed later by the caller, but as an optimization find_files removes
the top level directories that are excluded in configuration in the
normal way (dir/**/*).

Source | Google | Stack overflow

Edit

git clone [email protected]:bbatsov/rubocop.git

cd rubocop

open lib/rubocop/target_finder.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RuboCop--TargetFinder-find_files-for-pr


# Commit to git

git add lib/rubocop/target_finder.rbgit commit -m "better docs for RuboCop::TargetFinder#find_files"


# 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--TargetFinder-find_files-for-pr

hub pull-request


# Celebrate!