Skip to content

Commit 1ee3bb0

Browse files
committed
Configure rules
1 parent 83909cf commit 1ee3bb0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@
2626
"phpbench/phpbench": "^1.0",
2727
"squizlabs/php_codesniffer": "^3.6",
2828
"phpmd/phpmd": "^2.10"
29+
},
30+
"scripts": {
31+
"tests": "./vendor/bin/phpunit",
32+
"rules": "./vendor/bin/phpcs && ./vendor/bin/psalm && ./vendor/bin/phpstan && ./vendor/bin/phpmd src text phpmd.ruleset.xml"
2933
}
3034
}

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
>
88
<projectFiles>
99
<directory name="src" />
10-
<directory name="tests" />
1110
<ignoreFiles>
11+
<directory name="tests" />
1212
<directory name="vendor" />
1313
</ignoreFiles>
1414
</projectFiles>

0 commit comments

Comments
 (0)