rubocop

https://github.com/bbatsov/rubocop

Ruby

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

RuboCop::ResultCache.cleanup

Remove old files so that the cache doesn't grow too big. When the
threshold MaxFilesInCache has been exceeded, the oldest 50% of all the
files in the cache are removed. The reason for removing so much is that
cleaning should be done relatively seldom, since there is a slight risk
that some other RuboCop process was just about to read the file, when
there's parallel execution and the cache is shared.

Source | Google | Stack overflow

Edit

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

cd rubocop

open lib/rubocop/result_cache.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RuboCop--ResultCache-cleanup-for-pr


# Commit to git

git add lib/rubocop/result_cache.rbgit commit -m "better docs for RuboCop::ResultCache.cleanup"


# 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--ResultCache-cleanup-for-pr

hub pull-request


# Celebrate!