Skip to content

Commit ea461f7

Browse files
[1.x] Adds --repair option documentation (laravel#9606)
* Add `with-exit-status` flag docs for Pint * Update pint.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 660a509 commit ea461f7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pint.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Pint will display a thorough list of all of the files that it updates. You can v
4747
./vendor/bin/pint -v
4848
```
4949

50-
If you would like Pint to simply inspect your code for style errors without actually changing the files, you may use the `--test` option:
50+
If you would like Pint to simply inspect your code for style errors without actually changing the files, you may use the `--test` option. Pint will return a non-zero exit code if any code style errors are found:
5151

5252
```shell
5353
./vendor/bin/pint --test
@@ -59,6 +59,12 @@ If you would like Pint to only modify the files that have uncommitted changes ac
5959
./vendor/bin/pint --dirty
6060
```
6161

62+
If you would like Pint to fix any files with code style errors but also exit with a non-zero exit code if any errors were fixed, you may use the `--repair` option:
63+
64+
```shell
65+
./vendor/bin/pint --repair
66+
```
67+
6268
<a name="configuring-pint"></a>
6369
## Configuring Pint
6470

0 commit comments

Comments
 (0)