fix(editorconfig): add missing root validation

(cherry picked from commit a94d35fcde)
This commit is contained in:
Bogdan Grigoruță
2023-05-03 20:21:15 +03:00
committed by github-actions[bot]
parent 62ae5f373a
commit 11cb728c35

View File

@@ -202,6 +202,7 @@ local function parse(filepath, dir)
end
elseif key ~= nil and val ~= nil then
if key == 'root' then
assert(val == 'true' or val == 'false', 'root must be either "true" or "false"')
opts.root = val == 'true'
elseif pat and pat:match_str(filepath) then
opts[key] = val