explicitly set phpcs standard
This commit is contained in:
parent
8beb68162f
commit
45598458e6
|
@ -1,16 +1,6 @@
|
|||
local null_ls = require("null-ls")
|
||||
|
||||
local sources = {
|
||||
-- -- prettier - using perttierd instead
|
||||
-- null_ls.builtins.formatting.prettier.with({
|
||||
-- extra_filetypes = { "php" },
|
||||
-- prefer_local = "node_modules/.bin",
|
||||
-- }),
|
||||
-- -- prettierd with php
|
||||
-- null_ls.builtins.formatting.prettierd.with({
|
||||
-- extra_filetypes = { "php" },
|
||||
-- }),
|
||||
-- prettierd without php (use phpcbf instead)
|
||||
null_ls.builtins.formatting.prettierd,
|
||||
|
||||
-- phpcs - standards wordpress
|
||||
|
@ -35,12 +25,14 @@ local sources = {
|
|||
condition = function(utils)
|
||||
return not utils.root_has_file({ "vendor/bin/phpcs" })
|
||||
end,
|
||||
args = { "--standard=PSR12", "--report=json", "-s", "-" },
|
||||
}),
|
||||
-- phpcbf
|
||||
null_ls.builtins.formatting.phpcbf.with({
|
||||
condition = function(utils)
|
||||
return not utils.root_has_file({ "vendor/bin/phpcbf" })
|
||||
end,
|
||||
args = { "--standard=PSR12", "--report=json", "-s", "-" },
|
||||
}),
|
||||
|
||||
-- black
|
||||
|
|
Loading…
Reference in New Issue