File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "type" : " project" ,
44 "minimum-stability" : " beta" ,
55 "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+ },
611 "require" : {
712 "php" : " ^7.1.3" ,
813
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ composer install
2121
2222Once you did it you can work on a feature or bug fix.
2323
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+
2430## Testing
2531
2632To run tests
You can’t perform that action at this time.
0 commit comments