lib/cc/analyzer/formatters.rb in codeclimate-0.2.12 vs lib/cc/analyzer/formatters.rb in codeclimate-0.3.0

- old
+ new

@@ -10,10 +10,10 @@ json: JSONFormatter, text: PlainTextFormatter, }.freeze def self.resolve(name) - FORMATTERS[name.to_sym].new or raise InvalidFormatterError, "'#{name}' is not a valid formatter. Valid options are: #{FORMATTERS.keys.join(", ")}" + FORMATTERS[name.to_sym].new(ENV['FILESYSTEM_DIR']) or raise InvalidFormatterError, "'#{name}' is not a valid formatter. Valid options are: #{FORMATTERS.keys.join(", ")}" end end end end