From: ArthurHoaro Date: Tue, 22 Sep 2020 18:16:23 +0000 (+0200) Subject: Coding style: switch PHPCS to PSR12 X-Git-Tag: v0.12.1^2~1^2~4 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=e09bb93e18a333eff8e6a4156f5b58ba9c7d25cd Coding style: switch PHPCS to PSR12 Also temporarily ignore test code (one step at a time). Reference: https://www.php-fig.org/psr/psr-12/ Related to #95 --- diff --git a/Makefile b/Makefile index 7415887a..181b61c4 100644 --- a/Makefile +++ b/Makefile @@ -27,10 +27,6 @@ PHPCS := $(BIN)/phpcs code_sniffer: @$(PHPCS) -### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend... -PHPCS_%: - @$(PHPCS) --report-full --report-width=200 --standard=$* - ### - errors by Git author code_sniffer_blame: @$(PHPCS) --report-gitblame diff --git a/phpcs.xml b/phpcs.xml index 29b95d56..349dc566 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -5,13 +5,13 @@ index.php application plugins - tests + */*.css */*.js - - + +