lib/cc/cli/config_generator.rb in codeclimate-0.11.0 vs lib/cc/cli/config_generator.rb in codeclimate-0.13.0
- old
+ new
@@ -15,18 +15,26 @@
def initialize(filesystem, engine_registry)
@filesystem = filesystem
@engine_registry = engine_registry
end
+ def can_generate?
+ true
+ end
+
def eligible_engines
return @eligible_engines if @eligible_engines
engines = engine_registry.list
@eligible_engines = engines.each_with_object({}) do |(name, config), result|
if engine_eligible?(config)
result[name] = config
end
end
+ end
+
+ def errors
+ []
end
def exclude_paths
AUTO_EXCLUDE_PATHS.select { |path| filesystem.exist?(path) }
end