Skip to content

Commit be41f59

Browse files
authored
Merge pull request #230 from cakephp/3.x-stan-setup
3.x: new stan setup
2 parents cabacfa + fa6ef63 commit be41f59

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ end_of_line = crlf
1616
[*.yml]
1717
indent_size = 2
1818

19+
[phars.xml]
20+
indent_size = 2
21+
1922
[*.neon]
2023
indent_style = tab

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/composer.lock
44
/phpunit.xml
55
/tmp
6+
/tools
67
/vendor
78
.phpunit.result.cache
89

.phive/phars.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phive xmlns="https://phar.io/phive">
3+
<phar name="phpstan" version="1.9.12" installed="1.9.12" location="./tools/phpstan" copy="false"/>
4+
<phar name="psalm" version="5.4.0" installed="5.4.0" location="./tools/psalm" copy="false"/>
5+
</phive>

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,18 @@
5858
"scripts": {
5959
"check": [
6060
"@cs-check",
61+
"@stan",
6162
"@test"
6263
],
64+
"phpstan": "tools/phpstan analyse",
65+
"psalm": "tools/psalm --show-info=false",
66+
"stan": [
67+
"@phpstan",
68+
"@psalm"
69+
],
70+
"stan-baseline": "tools/phpstan --generate-baseline",
71+
"psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml",
72+
"stan-setup": "phive install",
6373
"cs-check": "phpcs --colors -p src/ tests/",
6474
"cs-fix": "phpcbf --colors -p src/ tests/",
6575
"test": "phpunit",

0 commit comments

Comments
 (0)