lib/cc/cli/config_generator.rb in codeclimate-0.59.0 vs lib/cc/cli/config_generator.rb in codeclimate-0.59.1

- old
+ new

@@ -35,18 +35,10 @@ result[name] = config end end end - def codeclimate_checks - @codeclimate_checks ||= engine_registry.list.each_with_object({}) do |(name, config), result| - if code_climate_check?(config) - result[name] = config - end - end - end - def errors [] end def exclude_paths @@ -70,13 +62,9 @@ def engine_eligible?(engine) engine["channels"].keys.any? { |channel| channel == "stable" } && !engine["community"] && engine["enable_regexps"].present? && files_exist?(engine) - end - - def code_climate_check?(engine) - engine["code_climate_check"] && ENV["RUN_CODECLIMATE_CHECKS"] == "true" end def files_exist?(engine) workspace_files.any? do |path| engine["enable_regexps"].any? { |re| Regexp.new(re).match(path) }