lib/cc/config.rb in codeclimate-0.85.27 vs lib/cc/config.rb in codeclimate-0.85.28
- old
+ new
@@ -38,13 +38,15 @@
config = ChecksAdapter.new(config).config
build(config)
end
def self.build(data)
+ prepare = Prepare.from_data(data["prepare"])
+ base_excluded_patterns = data.fetch("exclude_patterns", DefaultAdapter::EXCLUDE_PATTERNS)
new(
engines: EngineSet.new(data.fetch("plugins", {})).engines,
- exclude_patterns: data.fetch("exclude_patterns", DefaultAdapter::EXCLUDE_PATTERNS),
- prepare: Prepare.from_data(data["prepare"]),
+ exclude_patterns: base_excluded_patterns + prepare.fetch.paths,
+ prepare: prepare,
)
end
def initialize(analysis_paths: [], development: false, engines: [], exclude_patterns: [], prepare: Prepare.new)
@analysis_paths = analysis_paths