diff options
author | VirtualTam <tamisier.aurelien@gmail.com> | 2015-07-31 16:08:32 +0200 |
---|---|---|
committer | VirtualTam <tamisier.aurelien@gmail.com> | 2015-07-31 16:08:32 +0200 |
commit | 96db105e4c0833324f7168edb5673278de8ccd54 (patch) | |
tree | 2f8f51870cda0f5d043d9d564ff484ae0e5cb4a8 | |
parent | a421aeea66894febffc8d47fea39b8a41f3786a1 (diff) | |
parent | 3e25f245f95bdaeb9db2e6e0540189d5378ad05d (diff) | |
download | Shaarli-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
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -36,6 +36,10 @@ static_analysis_summary: code_sniffer_source copy_paste mess_detector_summary | |||
36 | 36 | ||
37 | code_sniffer: code_sniffer_full | 37 | code_sniffer: code_sniffer_full |
38 | 38 | ||
39 | ### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend... | ||
40 | PHPCS_%: | ||
41 | @$(BIN)/phpcs $(PHP_SOURCE) --report-full --report-width=200 --standard=$* | ||
42 | |||
39 | ### - errors by Git author | 43 | ### - errors by Git author |
40 | code_sniffer_blame: | 44 | code_sniffer_blame: |
41 | @$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame | 45 | @$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame |