lib/cc/cli/config_generator.rb in codeclimate-0.53.0 vs lib/cc/cli/config_generator.rb in codeclimate-0.54.0
- old
+ new
@@ -66,10 +66,13 @@
YAML.safe_load(File.read(CODECLIMATE_YAML))["languages"].present?
end
end
def engine_eligible?(engine)
- !engine["community"] && engine["enable_regexps"].present? && files_exist?(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