From: VirtualTam Date: Fri, 31 Jul 2015 14:08:32 +0000 (+0200) Subject: Merge pull request #276 from virtualtam/tools/phpcs X-Git-Tag: v0.5.1~8 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=96db105e4c0833324f7168edb5673278de8ccd54;hp=a421aeea66894febffc8d47fea39b8a41f3786a1;p=github%2Fshaarli%2FShaarli.git Merge pull request #276 from virtualtam/tools/phpcs Add a generic rule to run PHPCS against different coding standards --- diff --git a/Makefile b/Makefile index 28353587..d69fac46 100644 --- a/Makefile +++ b/Makefile @@ -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