diff options
| author | Ellis KenyĆ <elken@users.noreply.github.com> | 2022-05-12 00:26:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-11 16:26:33 -0700 |
| commit | 982df5a2e0c1695e87069b1e4a54ed90d7b2026c (patch) | |
| tree | 1e657bb56341aaca672d5988815e716955335435 /scripts | |
| parent | 83179060f21befac63b92210b8425638a61467ae (diff) | |
Add phpcs & introduce scripts/formatters (#87)
* feat: add phpcs & introduce scripts/formatters
Add phpcs as a supported formatter, and include support for
apheleia-defined scripts for more troublesome formatters
* Revert Emacs version requirement
* More quoting
* Adjust language in documentation
* Thanks checkdoc, lol
Co-authored-by: Radon Rosborough <radon.neon@gmail.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/formatters/apheleia-phpcs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/formatters/apheleia-phpcs b/scripts/formatters/apheleia-phpcs new file mode 100755 index 0000000..1d8a0e8 --- /dev/null +++ b/scripts/formatters/apheleia-phpcs @@ -0,0 +1,6 @@ +#!/bin/sh + +phpcbf "$@" +if [ "$?" -eq 1 ]; then + exit 0 +fi |
