Merge pull request #276 from virtualtam/tools/phpcs

Add a generic rule to run PHPCS against different coding standards
This commit is contained in:
VirtualTam 2015-07-31 16:08:32 +02:00
commit 96db105e4c

View file

@ -36,6 +36,10 @@ static_analysis_summary: code_sniffer_source copy_paste mess_detector_summary
code_sniffer: code_sniffer_full
### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend...
PHPCS_%:
@$(BIN)/phpcs $(PHP_SOURCE) --report-full --report-width=200 --standard=$*
### - errors by Git author
code_sniffer_blame:
@$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame