feat(nvim): only run PHPCS if there is a

...phpcs.xml.dist file.
This commit is contained in:
Oliver Davies 2023-05-11 14:14:03 +01:00
parent d5428bbc0c
commit 025ec531ae

View file

@ -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,
},