feat(nvim): only run PHPCS if there is a
...phpcs.xml.dist file.
This commit is contained in:
parent
9f065ea19d
commit
f468f8aa5f
|
@ -36,7 +36,11 @@ null_ls.setup {
|
|||
}),
|
||||
diagnostics.markdownlint,
|
||||
diagnostics.php,
|
||||
diagnostics.phpcs,
|
||||
diagnostics.phpcs.with({
|
||||
condition = function(utils)
|
||||
return utils.root_has_file({ 'phpcs.xml.dist' })
|
||||
end,
|
||||
}),
|
||||
diagnostics.phpstan,
|
||||
diagnostics.shellcheck,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue