Skip to content

Commit 833ba07

Browse files
committed
TASK: Add analyse composer script
1 parent faadc89 commit 833ba07

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
analyse::
2-
./vendor/bin/phpstan analyse -c phpstan.neon
3-
41
test::
52
./vendor/bin/phpunit \
63
--enforce-time-limit \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ or, alternatively, directly via:
1616

1717
| script-name | description |
1818
|-|-|
19+
| `analyse` | Run static code analysis with [phpstan](https://phpstan.org/) |
1920

2021
## License
2122

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "packagefactory/componentengine",
33
"type": "library",
44
"license": "GPL-3.0-or-later",
5+
"scripts": {
6+
"analyse": "./scripts/analyse"
7+
},
58
"require": {
69
"php": ">=8.1"
710
},

scripts/analyse

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/env bash
2+
3+
##
4+
## Usage (plain):
5+
## ./scripts/analyse
6+
##
7+
## Usage (composer):
8+
## composer analyse
9+
##
10+
11+
./vendor/bin/phpstan analyse -c phpstan.neon

0 commit comments

Comments
 (0)