Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
After sleeping on it, I realized there was a simpler (less code) and slightly faster version of the previous #8806. By _recursively_ getting all directories and then at each directory level testing Rubocop Exclude on directories. Once directories are found at all levels, we search for files. In addition, I replaced many of the `base_dir` string concatenations with the safer `File#join`. Benchmarks on a large project removes an additional 500+ milliseconds.
- Loading branch information
Showing
1 changed file
with
15 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters