aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorVirtualTam <tamisier.aurelien@gmail.com>2015-07-31 16:08:32 +0200
committerVirtualTam <tamisier.aurelien@gmail.com>2015-07-31 16:08:32 +0200
commit96db105e4c0833324f7168edb5673278de8ccd54 (patch)
tree2f8f51870cda0f5d043d9d564ff484ae0e5cb4a8 /Makefile
parenta421aeea66894febffc8d47fea39b8a41f3786a1 (diff)
parent3e25f245f95bdaeb9db2e6e0540189d5378ad05d (diff)
downloadShaarli-96db105e4c0833324f7168edb5673278de8ccd54.tar.gz
Shaarli-96db105e4c0833324f7168edb5673278de8ccd54.tar.zst
Shaarli-96db105e4c0833324f7168edb5673278de8ccd54.zip
Merge pull request #276 from virtualtam/tools/phpcs
Add a generic rule to run PHPCS against different coding standards
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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
36 36
37code_sniffer: code_sniffer_full 37code_sniffer: code_sniffer_full
38 38
39### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend...
40PHPCS_%:
41 @$(BIN)/phpcs $(PHP_SOURCE) --report-full --report-width=200 --standard=$*
42
39### - errors by Git author 43### - errors by Git author
40code_sniffer_blame: 44code_sniffer_blame:
41 @$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame 45 @$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame