20 Commits

Author SHA1 Message Date
John Paul E. Balandan, CPA
4edba3ae9e
Call composer cs instead of individual calls 2024-07-25 23:00:24 +08:00
John Paul E. Balandan, CPA
f91db3bcb8
Fix admin/pre-commit 2024-07-23 20:58:51 +08:00
Lonnie Ezell
bd3420b6ef
chore: remove php-stan from the precommit hook 2023-06-26 23:16:13 -05:00
ddevsr
ab7b0ad1b1
fix: turn off Xdebug note when running PHPStan 2022-11-14 11:40:05 +07:00
Denny Septian Panggabean
338d288ee3
fix: make faster phpstan with XDebug 2022-11-13 20:33:55 +07:00
kenjis
70af24e461
chore: rename php-cs-fixer config files
The php-cs-fixer configuration files are all in one place and easy to find.
2022-04-05 17:21:12 +09:00
kenjis
e7095469ef
chore: add checking on user guide PHP coding style 2022-03-08 18:54:17 +09:00
John Paul E. Balandan, CPA
b2cd58bee2
Add tab detector to workflows 2021-10-05 22:19:09 +08:00
kenjis
55183fc10f
chore: remove unintended dead code
fixes #5107
2021-09-24 11:07:08 +08:00
kenjis
3ab742eb6a
chore: remove --using-cache=no from php-cs-fixer 2021-09-15 17:42:02 +08:00
John Paul E. Balandan, CPA
31bfbbaa51
Fix notice in pre-commit hook 2021-07-28 23:26:40 +08:00
John Paul E. Balandan, CPA
a037b50012
Update pre-commit to lint code (#4960) 2021-07-24 17:01:13 +08:00
John Paul E. Balandan, CPA
2a3eeca6aa
Update indentation to spaces 2021-06-06 23:45:23 +08:00
Najdanović Ivan
3cc32dedcd
Fix Pre-Commit on windows
Attempt to Fix #3920
2020-11-26 19:19:17 +01:00
Najdanović Ivan
e111f04d74 pre-commit hook does not work with alias
In some workflows like  MAMP on OSX default php version is set using alias in bash profile

alias php='/Applications/MAMP/bin/php/php7.4.2/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php7.4.2.ini"'

In such case when phpstan and codesniffer are executed via git hoot it will run them using the default system php instead of using the alias.

Prefixing the method call with php triggers the alias and solves the issue.
2020-11-17 13:22:31 +01:00
John Paul E. Balandan, CPA
71a32f832e
Add phpstan to pre-commit 2020-09-02 20:23:58 +08:00
John Paul E. Balandan, CPA
b9435d5fe0
Enclose file paths in double quotes to capture spaces 2020-04-20 23:28:48 +08:00
Lonnie Ezell
21003dae0c
Don't exit from pre-commit on phpcbf exit errors. 2018-10-30 21:22:45 -05:00
Lonnie Ezell
4b702274a0
Fix pre-commit message 2018-10-29 23:26:31 -05:00
Lonnie Ezell
8e86564b0d
Auto-install pre-commit git hook that runs phpcs and fixes any fixable styles. 2018-10-29 23:22:30 -05:00