fix(ci): relax extensino validation
This commit is contained in:
parent
b34ace85a5
commit
ad3cd32bac
1 changed files with 1 additions and 17 deletions
|
|
@ -139,23 +139,7 @@ function M.setup(user_config)
|
|||
return false
|
||||
end
|
||||
|
||||
for lang_name, lang_config in pairs(config) do
|
||||
if type(lang_config) == 'table' then
|
||||
if
|
||||
lang_config.extension
|
||||
and not vim.tbl_contains(
|
||||
vim.tbl_keys(constants.filetype_to_language),
|
||||
lang_config.extension
|
||||
)
|
||||
then
|
||||
return false,
|
||||
("Invalid extension '%s'. Valid extensions: %s"):format(
|
||||
lang_config.extension,
|
||||
table.concat(vim.tbl_keys(constants.filetype_to_language), ', ')
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Allow any language and extension configurations
|
||||
|
||||
return true
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue