rubocop
https://github.com/bbatsov/rubocop
Ruby
A Ruby static code analyzer, based on the community Ruby style guide.
RuboCop::TargetFinder#target_files_in_dir
Finds all Ruby source files under the current or other supplied directory. A Ruby source file is defined as a file with the `.rb` extension or a file with no extension that has a ruby shebang line as its first line. It is possible to specify includes and excludes using the config file, so you can include other Ruby files like Rakefiles and gemspecs.
Edit
git clone [email protected]:bbatsov/rubocop.git
cd rubocop
open lib/rubocop/target_finder.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RuboCop--TargetFinder-target_files_in_dir-for-pr
# Commit to gitgit add lib/rubocop/target_finder.rbgit commit -m "better docs for RuboCop::TargetFinder#target_files_in_dir"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RuboCop--TargetFinder-target_files_in_dir-for-pr
hub pull-request
# Celebrate!