Skip to content

Commit d69d2bd

Browse files
authored
Merge pull request #487 from wayofdev/feat/tpl-updates
docs: minor updates
2 parents 1dbb8f9 + cf97b4d commit d69d2bd

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

.github/CONTRIBUTING.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ $ make help
4141
- `make down`: Stops all running Docker containers.
4242
- `make ssh`: Logs into the running application container for command line operations.
4343
- `make lint`: Executes all linting procedures for YAML, PHP, and Composer files.
44-
- `make test`: Runs all configured tests using PHPUnit and Pest.
45-
- `make commit`: Runs Commitizen for commit message formatting in a Docker environment.
44+
- `make test`: Runs all configured tests using PHPUnit and Pest in a Dockerized environment.
45+
- `make commit`: Runs cz-git, a commitizen adapter for commit message formatting in a native environment.
4646
- `make install`: Installs project dependencies through Composer in a Dockerized environment.
4747

4848
Refer to the output of `make help` for a comprehensive list of available commands.
@@ -103,6 +103,7 @@ Our project employs [GitHub Actions](https://github.com/features/actions) for co
103103
- **Tests**: Include tests that cover any new features or bug fixes.
104104
- **Code Quality**: Utilize `make lint` for code style checks and `make lint-stan` for static analysis with [Psalm](https://psalm.dev/).
105105
- **Documentation**: Update relevant documentation to reflect your changes, ensuring other developers can understand and use your contributions effectively.
106+
- **Commits**: use Conventional Commits standard to create a commit
106107

107108
<br>
108109

@@ -155,14 +156,6 @@ $ make lint-composer
155156

156157
We use [`yamllint`](https://github.com/adrienverge/yamllint) to enforce coding standards in YAML files.
157158

158-
(Optional) If you do not have `yamllint` installed yet, run:
159-
160-
```bash
161-
$ brew install yamllint
162-
```
163-
164-
to install `yamllint`.
165-
166159
To lint yaml files run:
167160

168161
```bash
@@ -192,7 +185,7 @@ We use [`maglnet/composer-require-checker`](https://github.com/maglnet/ComposerR
192185
Run
193186

194187
```sh
195-
make lint-deps
188+
$ make lint-deps
196189
```
197190

198191
to run a dependency analysis.
@@ -206,7 +199,7 @@ We use [`infection/infection`](https://github.com/infection/infection) to ensure
206199
Xdebug support is enabled by default, when running commands through `Makefile`:
207200

208201
```sh
209-
make infect
202+
$ make infect
210203
```
211204

212205
to run mutation tests.
@@ -220,7 +213,7 @@ We use [`phpstan/phpstan`](https://github.com/phpstan/phpstan) to statically ana
220213
Run
221214

222215
```sh
223-
make lint-stan
216+
$ make lint-stan
224217
```
225218

226219
to run a static code analysis.
@@ -230,7 +223,7 @@ We also use the baseline features of [`phpstan/phpstan`](https://phpstan.org/use
230223
Run
231224

232225
```sh
233-
make lint-stan-baseline
226+
$ make lint-stan-baseline
234227
```
235228

236229
to regenerate the baselines in [`../phpstan-baseline.neon`](../phpstan-baseline.neon).
@@ -248,7 +241,7 @@ We use [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit) and [`p
248241
Run
249242

250243
```sh
251-
make tests
244+
$ make tests
252245
```
253246

254247
to run all the tests.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ hooks: ## Install git hooks from pre-commit-config
168168
pre-commit autoupdate
169169
.PHONY: hooks
170170

171-
lint: lint-yaml lint-php lint-stan ## Runs all linting commands
171+
lint: lint-yaml lint-php lint-stan lint-composer lint-audit ## Runs all linting commands
172172
.PHONY: lint
173173

174174
lint-yaml: ## Lints yaml files inside project

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@
8585
"cs:fix": "php vendor/bin/php-cs-fixer fix -v",
8686
"infect": "XDEBUG_MODE=coverage php vendor/bin/infection --min-msi=55 --min-covered-msi=55",
8787
"infect:ci": "XDEBUG_MODE=coverage php vendor/bin/infection --min-msi=55 --min-covered-msi=55 --ansi --configuration=infection.json.dist --logger-github",
88+
"refactor": "php vendor/bin/rector process --config=rector.php",
89+
"refactor:ci": "php vendor/bin/rector process --config=rector.php --dry-run --ansi",
8890
"stan": "php vendor/bin/phpstan analyse --memory-limit=2G",
89-
"stan:ci": "php vendor/bin/phpstan analyse --memory-limit=2G --error-format=github",
9091
"stan:baseline": "php vendor/bin/phpstan analyse --generate-baseline --memory-limit=2G --allow-empty-baseline",
92+
"stan:ci": "php vendor/bin/phpstan analyse --memory-limit=2G --error-format=github",
9193
"test": "XDEBUG_MODE=coverage php vendor/bin/pest",
92-
"test:cc": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --coverage-clover=.build/phpunit/logs/clover.xml",
93-
"refactor": "php vendor/bin/rector process --config=rector.php",
94-
"refactor:ci": "php vendor/bin/rector process --config=rector.php --dry-run --ansi"
94+
"test:cc": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --coverage-clover=.build/phpunit/logs/clover.xml"
9595
}
9696
}

0 commit comments

Comments
 (0)