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
Copy file name to clipboardExpand all lines: README.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,26 +85,29 @@ The package includes powerful auto-fix functionality that can automatically reso
85
85
This behavior can be adjusted using the following parameters from git-hooks.php config file:
86
86
```php
87
87
// config/git-hooks.php
88
+
return [
89
+
...
88
90
'automatically_fix_errors' => false,
89
91
'rerun_analyzer_after_autofix' => false,
90
92
'stop_at_first_analyzer_failure' => true,
93
+
];
91
94
```
92
95
93
96
## 3️⃣ Advanced Usage
94
97
95
98
### 🐳 Laravel Sail support
96
99
97
-
If you are using Laravel Sail and maybe not lokal PHP is installed, you can adjust the following parameters in the git-hooks.php config file:
98
-
100
+
If you are using Laravel Sail and maybe not local PHP is installed, you can adjust the following parameters in the `git-hooks.php` config file.
101
+
This will force the local git hooks to use the `sail` command to execute the hooks:
99
102
```php
100
103
// config/git-hooks.php
101
104
'use_sail' => env('GITHOOKS_USE_SAIL', false),
102
105
```
103
-
This will force the local git hooks to use the `sail` command to execute the hooks.
106
+
104
107
105
108
### 🐳 Docker support
106
109
107
-
By default commands are executed locally, however this behavior can be adjusted for each hook using the parameters `run_in_docker` and `docker_container`:
110
+
By default, commands are executed locally, however this behavior can be adjusted for each hook using the parameters `run_in_docker` and `docker_container`:
108
111
109
112
```php
110
113
// config/git-hooks.php
@@ -119,11 +122,18 @@ It also provides additional configuration options for fine-tuning hook behavior.
0 commit comments