Skip to content

Commit 6281109

Browse files
committed
Update expectation of where the config is
We pass the top-level config for the engine, meaning that the extensions are in a `config` key.
1 parent a6853b1 commit 6281109

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/cc/engine/csslint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def csslint_xml
7777

7878
def files_to_inspect
7979
include_paths = engine_config.fetch("include_paths", ["./"])
80-
extensions = engine_config.fetch("extensions", DEFAULT_EXTENSIONS)
80+
extensions = engine_config.fetch("config", {}).fetch("extensions", DEFAULT_EXTENSIONS)
8181
extensions_glob = extensions.join(",")
8282
include_paths.flat_map do |path|
8383
if path.end_with?("/")

spec/cc/engine/csslint_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ module Engine
7979
describe "with custom extensions" do
8080
let(:engine_config) do
8181
{
82-
"extensions" => %w(.fancycss)
82+
"config" => {
83+
"extensions" => %w(.fancycss)
84+
}
8385
}
8486
end
8587

0 commit comments

Comments
 (0)