blob: d1ed3a6c71fb9571661fe4bbb9181cfb8f0262f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
local util = require("conform.util")
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/easy-coding-standard/easy-coding-standard",
description = "ecs - Use Coding Standard with 0-knowledge of PHP-CS-Fixer and PHP_CodeSniffer.",
},
command = util.find_executable({
"vendor/bin/ecs",
}, "ecs"),
args = { "check", "$FILENAME", "--fix", "--no-interaction" },
cwd = util.root_file({
"ecs.php",
}),
require_cwd = true,
stdin = false,
}
|