File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 3
3
"type" : " project" ,
4
4
"minimum-stability" : " beta" ,
5
5
"homepage" : " https://enqueue.forma-pro.com/" ,
6
+ "scripts" : {
7
+ "cs-fix" : " bin/php-cs-fixer fix --config=.php_cs.php" ,
8
+ "cs-lint" : " bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff" ,
9
+ "phpstan" : " bin/phpstan analyse --memory-limit=512M -c phpstan.neon"
10
+ },
6
11
"require" : {
7
12
"php" : " ^7.1.3" ,
8
13
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ composer install
21
21
22
22
Once you did it you can work on a feature or bug fix.
23
23
24
+ If you need, you can also use composer scripts to run code linting and static analysis:
25
+ * For code style linting, run ` composer run cs-lint ` . Optionally add file names:
26
+ ` composer run cs-lint pkg/null/NullTopic.php ` for example.
27
+ * You can also fix your code style with ` composer run cs-fix ` .
28
+ * Static code analysis can be run using ` composer run phpstan ` . As above, you can pass specific files.
29
+
24
30
## Testing
25
31
26
32
To run tests
You can’t perform that action at this time.
0 commit comments