stable

Clone or download

Read-only

[Development] Enforce PSR-2 on git commit

This is part of request #9011: Enforce PSR-2 for Tuleap source code Add pre-commit hook to check if the current staging area respect PSR-2 standard. Only added files are checked for now. To test: cp src/common/admin/Admin_ProjectListExporter.class.php A.php git add A.php git commit The command `make dev-setup` checks that phpcs is available. Change-Id: If301c386588efd22c0caec92a69fdce43675cef3

Modified Files

Name
M Makefile +10 −2 Go to diff View file
M tools/utils/githooks/hook-chain +1 −1 Go to diff View file
A tools/utils/githooks/pre-commit-02-phpcs +39 −0 Go to diff View file