We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78515f commit c259943Copy full SHA for c259943
lib/codeclimate_diff/runner.rb
@@ -27,12 +27,12 @@ def self.calculate_changed_filenames(pattern)
27
files_and_directories_excluded = exclude_patterns.map { |exclude_pattern| Dir.glob(exclude_pattern) }.flatten
28
29
# filter out any files that match the excluded ones
30
- all_files_changed.map do |filename|
+ all_files_changed.filter do |filename|
31
next if files_and_directories_excluded.include? filename
32
33
next if files_and_directories_excluded.any? { |excluded_filename| filename.start_with?(excluded_filename) }
34
35
- filename
+ true
36
end
37
38
0 commit comments