Skip to content

Commit

Permalink
Merge pull request #18 from spaze/spaze/code-checks
Browse files Browse the repository at this point in the history
Code checks, lint + phpcs
  • Loading branch information
spaze committed Sep 13, 2020
2 parents f049893 + 0d30705 commit 8ac4fea
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 7 deletions.
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
"phpstan/phpstan": "^0.12.42"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.2",
"php-parallel-lint/php-console-highlighter": "^0.5.0",
"phpunit/php-timer": "1.0.*",
"phpunit/phpunit": "4.7.*"
"phpunit/phpunit": "4.7.*",
"spaze/coding-standard": "^0.0.3"
},
"autoload": {
"psr-4": {
Expand All @@ -30,9 +33,13 @@
},
"minimum-stability": "stable",
"scripts": {
"lint": "vendor/bin/parallel-lint --colors src/ tests/",
"phpcs": "vendor/bin/phpcs src/ tests/",
"phpstan-dev": "vendor/bin/phpstan --ansi analyse --configuration phpstan.neon",
"phpunit-dev": "php vendor/phpunit/phpunit/phpunit --colors=always --verbose",
"test": [
"@lint",
"@phpcs",
"@phpstan-dev",
"@phpunit-dev"
]
Expand Down
Loading

0 comments on commit 8ac4fea

Please sign in to comment.