-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c20492
commit 12e8813
Showing
4 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ trim_trailing_whitespace = true | |
|
||
[*.yaml] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.PHONY: it | ||
it: coding-standards static-code-analysis tests ## Runs the coding-standards, static-code-analysis, and tests targets | ||
|
||
.PHONY: coding-standards | ||
coding-standards: vendor ## Fixes code style issues with friendsofphp/php-cs-fixer | ||
.phive/php-cs-fixer fix --diff --verbose | ||
|
||
.PHONY: dependency-analysis | ||
dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-require-checker | ||
.phive/composer-require-checker check --config-file=$(shell pwd)/composer-require-checker.json | ||
|
||
.PHONY: help | ||
help: ## Displays this list of targets with descriptions | ||
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: static-code-analysis | ||
static-code-analysis: vendor ## Runs a static code analysis with vimeo/psalm | ||
.phive/psalm --config=psalm.xml --clear-cache | ||
.phive/psalm --config=psalm.xml --show-info=false --stats | ||
|
||
.PHONY: static-code-analysis-baseline | ||
static-code-analysis-baseline: vendor ## Generates a baseline for static code analysis with vimeo/psalm | ||
.phive/psalm --config=psalm.xml --clear-cache | ||
.phive/psalm --config=psalm.xml --set-baseline=psalm-baseline.xml | ||
|
||
.PHONY: tests | ||
tests: vendor ## Runs tests with phpunit/phpunit | ||
vendor/bin/phpunit | ||
|
||
vendor: composer.json | ||
composer install --no-progress |