You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A script to run [PHP Coding Standards Fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer) before committing code.
3
+
A script to run [PHP Coding Standards Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) before committing code.
4
4
5
-
PHP Coding Standards Fixer is run quietly to avoid unnecessary noise when
6
-
committing code. If there are standards violations it is run again in verbose
7
-
mode to provide more information about the violations and stop the commit.
5
+
The fixer is run **quietly** to avoid unnecessary noise when committing code. If there are violations it is run again in verbose mode to provide more information about the violations in the commit.
8
6
9
-
You can bypass the `pre-commit` with `git commit --no-verify`.
7
+
A full check is executed if the configuration or the Composer lock file has changed, otherwise only changed files since the last commit are checked.
10
8
11
-
A full check is done if the PHP Coding Standards configuration or the Composer
12
-
dependencies lock file has changed, otherwise only changed files since the last
13
-
commit are checked.
9
+
This hook is invoked by git-commit, and [can be bypassed](https://git-scm.com/docs/githooks#_pre_commit) with the --no-verify option.
10
+
11
+
```
12
+
git commit --no-verify
13
+
```
14
14
15
15
## Installation
16
16
@@ -26,6 +26,8 @@ Make sure the file is executable:
26
26
27
27
chmod 744 ~/.githooks/pre-commit
28
28
29
-
Configure Git to use the hooks:
29
+
Configure the Git [hooks path](https://git-scm.com/docs/git-config#Documentation/git-config.txt-corehooksPath):
0 commit comments