♻️ refactor(lint): simplify linter configuration by removing custom args
This commit is contained in:
1 file changed
-12
@@ -14,18 +14,6 @@ lint.linters_by_ft = {
|
||||
yaml = { 'actionlint' },
|
||||
}
|
||||
|
||||
table.insert(
|
||||
require('lint').linters.codespell.args,
|
||||
1,
|
||||
'--config=' .. vim.fs.joinpath(require('dotfyls.files').config_dir, 'codespell', '.codespellrc')
|
||||
)
|
||||
table.insert(require('lint').linters.vala_lint.args, 1, '--config=vala-lint.conf')
|
||||
table.insert(
|
||||
require('lint').linters.yamllint.args,
|
||||
1,
|
||||
'--config-file=' .. vim.fs.joinpath(require('dotfyls.files').config_dir, 'yamllint', 'config.yaml')
|
||||
)
|
||||
|
||||
local function lint(bufnr)
|
||||
local linters =
|
||||
vim.list_extend({ 'codespell', 'editorconfig-checker' }, require('lint')._resolve_linter_by_ft(vim.bo.filetype))
|
||||
|
||||
Reference in new issue
Block a user