]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - Makefile
Merge pull request #276 from virtualtam/tools/phpcs
[github/shaarli/Shaarli.git] / Makefile
index 28353587c238dfdd91809d00d7debc751c2178e7..d69fac46b2a6fccd1a85c3b4d55e1f45c9ff88a6 100644 (file)
--- 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