Skip to content

Commit 4e3ddcf

Browse files
committed
Add and document fix task
1 parent 0c0ef0d commit 4e3ddcf

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ We use automated tools to ensure that the code has a consistent style and is of
2727
composer lint
2828
```
2929

30+
## Automated Fixes
31+
32+
Some problems detected by the linting tools can be fixed automatically. Simply run the following:
33+
34+
```shell
35+
composer fix
36+
```
37+
3038
## Contributing to Gherkin Translations
3139

3240
Gherkin supports →40 different languages and you could add more! You might notice `i18n.php` file in the root of

composer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
"test": [
7575
"Composer\\Config::disableProcessTimeout",
7676
"vendor/bin/phpunit ./tests"
77+
],
78+
"fix": [
79+
"Composer\\Config::disableProcessTimeout",
80+
"vendor/bin/php-cs-fixer fix --diff --show-progress=dots"
7781
]
82+
},
83+
"config": {
84+
"allow-plugins": {
85+
"phpstan/extension-installer": false
86+
}
7887
}
7988
}

0 commit comments

Comments
 (0)