Skip to content

Commit 34809e7

Browse files
authored
Document errorFormat config option
1 parent 1b56b0c commit 34809e7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

website/src/developing-extensions/error-formatters.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ vendor/bin/phpstan analyse -c phpstan.neon \
4646
src tests
4747
```
4848

49+
Or use it in your configuration file:
50+
51+
```neon
52+
parameters:
53+
errorFormat: awesome
54+
```
55+
4956
Special format for Continuous Integration (CI)
5057
---------
5158

website/src/user-guide/output-format.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ You can pass the following keywords to the `--error-format=X` CLI option of the
1616
- `gitlab`: Creates format for use Code Quality widget on GitLab Merge Request.
1717
- `teamcity`: Creates TeamCity compatible output.
1818

19+
The same options are available in configuration file:
20+
21+
```neon
22+
parameters:
23+
errorFormat: json
24+
```
25+
1926
You can also implement your own custom error formatter. [Learn how »](/developing-extensions/error-formatters)
2027

2128
You can change the default error format in the configuration. [Learn how »](/config-reference#errorformat)

0 commit comments

Comments
 (0)