lib/hound/hound_config.rb in hound-cli-0.2.1 vs lib/hound/hound_config.rb in hound-cli-0.2.2
- old
+ new
@@ -6,10 +6,10 @@
def content
@@content ||= load_content
end
def enabled_for?(linter_name)
- # disabled if linter_name key does not exist in hound.yml
+ # disabled if linter_name key does not exist in .hound.yml
return false unless content.key?(linter_name)
options = options_for(linter_name)
# enabled if linter_name key exists and enabled key is not defined.
return true unless options.keys.select { |k| k.downcase === "enabled" }.any?
# enabled "enabled" or "Enabled" keys are true.