aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-07-12 23:04:43 +0200
committerVirtualTam <virtualtam@flibidi.net>2015-07-12 23:04:43 +0200
commit3e25f245f95bdaeb9db2e6e0540189d5378ad05d (patch)
tree5d7c4c2e267b81b47a0a45f9b1fd22a02dc44d80 /Makefile
parent5b0ebbc5de06b8a0e9679b78b45d0dc755db7986 (diff)
downloadShaarli-3e25f245f95bdaeb9db2e6e0540189d5378ad05d.tar.gz
Shaarli-3e25f245f95bdaeb9db2e6e0540189d5378ad05d.tar.zst
Shaarli-3e25f245f95bdaeb9db2e6e0540189d5378ad05d.zip
Makefile: add a generic rule to run PHPCS against different coding standards
Relates to #95 Usage - list available standards $ ./vendor/bin/phpcs -i - run PHPCS against a given standard $ make PHPCS_<standard> Examples $ make PHPCS_PSR1 $ make PHPCS_Zend Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 80efcfaa..5104e302 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