nitpick 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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|
|