Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for glob patterns in style exclusions

  • Loading branch information...
commit 0a008c45609e8571fe7ecc8a9f00fab146a26e36 1 parent c03edbb
@marten marten authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/cane/style_check.rb
View
4 lib/cane/style_check.rb
@@ -72,7 +72,9 @@ def map_lines(file_path, &block)
end
def exclusions
- @exclusions ||= opts.fetch(:style_exclude, []).flatten.to_set
+ @exclusions ||= opts.fetch(:style_exclude, []).flatten.map do |i|
+ Dir[i]
+ end.flatten.to_set
end
def excluded?(file)
Please sign in to comment.
Something went wrong with that request. Please try again.