-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb87cab
commit db5af4b
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
local util = require("conform.util") | ||
|
||
---@type conform.FileFormatterConfig | ||
return { | ||
meta = { | ||
url = "https://phpqa.io/projects/phpcbf.html", | ||
description = "PHP Code Beautifier and Fixer fixes violations of a defined coding standard.", | ||
}, | ||
command = util.find_executable({ | ||
"vendor/bin/phpcbf", | ||
}, "phpcbf"), | ||
args = { "-q", "--stdin-path=", "$FILENAME", "-" }, | ||
stdin = true, | ||
-- 0: no errors found | ||
-- 1: errors found | ||
-- 2: fixable errors found | ||
-- 3: processing error | ||
exit_codes = { 0, 1, 2 }, | ||
} |