cli-generate-stuffs

Clone or download

Read-only

story #19388 Have a pre-commit hook

The pre-commit hook will automatically run phpcs, psalm and unit tests scripts before commited changes. If the exit code of any of these scripts fails, the commit command is blocked. It will help developers to prevent committing incomplete or unverified code. How to test: run `git commit` and messages related to the three differents running scripts will be displayed. Change-Id: I69e94f913c87f1737462d32f421c2a837ad5f711

Modified Files

Name
M README.md +10 −1 Go to diff View file
A tools/githooks/pre-commit +34 −0 Go to diff View file