nitpick 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/bin/nitpick +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/bin/nitpick
CHANGED
@@ -41,7 +41,7 @@ class Module
|
|
41
41
|
# Except means don't match this
|
42
42
|
return if NitpickOptions[:except].any? {|namespace| /#{namespace}/ =~ self.to_s }
|
43
43
|
# Only means it must match one
|
44
|
-
return unless NitpickOptions[:only].find
|
44
|
+
return unless NitpickOptions[:only].find {|namespace| /#{namespace}/ =~ self.to_s } or
|
45
45
|
NitpickOptions[:only].empty?
|
46
46
|
|
47
47
|
warnings = Nitpickers.map do |nitpicker_class|
|