stable

Clone or download

Read-only

[Development] Enforce PSR-2 on *all* added files

This is part of request #9011: Enforce PSR-2 for Tuleap source code Previous implementation does like when there is more than one added php file in the staging area. To test: cp src/common/admin/Admin_ProjectListExporter.class.php A.php cp src/common/admin/Admin_ProjectListExporter.class.php B.php git add A.php B.php git commit # abort with an empty commit message Expected result: * phpcs stops you as the added files are not PSR-2 compliant. * there isn't any warning "pre-commit-02-phpcs: line 30: [: too many arguments" Change-Id: I498e9d13a7f8cd4e455d2b8e1e9beeb9b6fda06c

Modified Files

Name
M tools/utils/githooks/pre-commit-02-phpcs +1 −1 Go to diff View file