Skip to content

Commit

Permalink
docs: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Apr 12, 2024
1 parent 1dbb8f9 commit cf97b4d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
23 changes: 8 additions & 15 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ $ make help
- `make down`: Stops all running Docker containers.
- `make ssh`: Logs into the running application container for command line operations.
- `make lint`: Executes all linting procedures for YAML, PHP, and Composer files.
- `make test`: Runs all configured tests using PHPUnit and Pest.
- `make commit`: Runs Commitizen for commit message formatting in a Docker environment.
- `make test`: Runs all configured tests using PHPUnit and Pest in a Dockerized environment.
- `make commit`: Runs cz-git, a commitizen adapter for commit message formatting in a native environment.
- `make install`: Installs project dependencies through Composer in a Dockerized environment.

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

<br>

Expand Down Expand Up @@ -155,14 +156,6 @@ $ make lint-composer

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

(Optional) If you do not have `yamllint` installed yet, run:

```bash
$ brew install yamllint
```

to install `yamllint`.

To lint yaml files run:

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

```sh
make lint-deps
$ make lint-deps
```

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

```sh
make infect
$ make infect
```

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

```sh
make lint-stan
$ make lint-stan
```

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

```sh
make lint-stan-baseline
$ make lint-stan-baseline
```

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

```sh
make tests
$ make tests
```

to run all the tests.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ hooks: ## Install git hooks from pre-commit-config
pre-commit autoupdate
.PHONY: hooks

lint: lint-yaml lint-php lint-stan ## Runs all linting commands
lint: lint-yaml lint-php lint-stan lint-composer lint-audit ## Runs all linting commands
.PHONY: lint

lint-yaml: ## Lints yaml files inside project
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@
"cs:fix": "php vendor/bin/php-cs-fixer fix -v",
"infect": "XDEBUG_MODE=coverage php vendor/bin/infection --min-msi=55 --min-covered-msi=55",
"infect:ci": "XDEBUG_MODE=coverage php vendor/bin/infection --min-msi=55 --min-covered-msi=55 --ansi --configuration=infection.json.dist --logger-github",
"refactor": "php vendor/bin/rector process --config=rector.php",
"refactor:ci": "php vendor/bin/rector process --config=rector.php --dry-run --ansi",
"stan": "php vendor/bin/phpstan analyse --memory-limit=2G",
"stan:ci": "php vendor/bin/phpstan analyse --memory-limit=2G --error-format=github",
"stan:baseline": "php vendor/bin/phpstan analyse --generate-baseline --memory-limit=2G --allow-empty-baseline",
"stan:ci": "php vendor/bin/phpstan analyse --memory-limit=2G --error-format=github",
"test": "XDEBUG_MODE=coverage php vendor/bin/pest",
"test:cc": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --coverage-clover=.build/phpunit/logs/clover.xml",
"refactor": "php vendor/bin/rector process --config=rector.php",
"refactor:ci": "php vendor/bin/rector process --config=rector.php --dry-run --ansi"
"test:cc": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --coverage-clover=.build/phpunit/logs/clover.xml"
}
}

0 comments on commit cf97b4d

Please sign in to comment.