Buat yg blm tau, jd setelah kasus kmaren legacy code yg gk beres dr software house. Sy berencana utk melakukan quality control secara otomatis di project yg baru nantinya.
Untuk itu kita bisa pakai tools namanya grumphp, cara kerjanya (lnjt)
Linknya dibawah 👇
📝#PHP Code Quality Tips📝
Are you into PHP & using GrumPHP? - That's Great 👍
"Grumphp is a composer plugin that can be set as a Git pre-commit hook to inspect code quality before committing the code."
Running Grumphp is as simple as shown in the screenshot 👇
Git hooks to improve code quality (grumphp, phpcs, phpcpd and phpstan) ift.tt/3twpK9h
This article is part of series that we created to have a common knowledge/rule base among our IT teams
Continue reading on Medium »
@heiglandreas@tnolte@jon_bossenger@twigpress Grumphp approves this message!
You must always run GrumPHP in a CI flow as well!
Local validation is just a sanity check for yourself!
Just discovered @GrumPhp thanks to @twigpress, what an amazing tool. Currently running commit message checks, phpcs, phpstan/larastan AND phpunit every time I commit some code.
@jon_bossenger@heiglandreas@twigpress@CaptainHookPHP We've put a big effort in making grumphp more flexible in the past year.
Most of it is in the configurable options or tasks.
Let us know if there is something else we can do in order to make it even more flexible!