aboutsummaryrefslogtreecommitdiff
path: root/phpcs.xml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-31 18:15:47 +0100
committerGravatar GitHub <noreply@github.com> 2019-10-31 18:15:47 +0100
commit3aa66f317b496ccd9a2df914bbc747c52081a7ad (patch)
tree6a3f3f74899801abdca00546e213dfdc141c53cf /phpcs.xml
parent82611c9622ed23b0e9fcf5f9f651ddffa1fd7706 (diff)
parentfcae48f313d399050cb15f37a8a73ae52fc67796 (diff)
Merge pull request #2599 from FreshRSS/dev1.15.0
FreshRSS 1.15
Diffstat (limited to 'phpcs.xml')
-rw-r--r--phpcs.xml12
1 files changed, 4 insertions, 8 deletions
diff --git a/phpcs.xml b/phpcs.xml
index c6cc44e80..9bea1f3ad 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -3,13 +3,10 @@
<description>Created with the PHP Coding Standard Generator. https://edorian.github.com/php-coding-standard-generator/</description>
<!-- to circumvent https://github.com/squizlabs/PHP_CodeSniffer/pull/1404 -->
<arg name="tab-width" value="40"/>
- <exclude-pattern>./static</exclude-pattern>
- <exclude-pattern>./vendor</exclude-pattern>
<exclude-pattern>./lib/SimplePie/</exclude-pattern>
+ <exclude-pattern>./lib/PHPMailer/</exclude-pattern>
<exclude-pattern>./lib/http-conditional.php</exclude-pattern>
- <exclude-pattern>./lib/JSON.php</exclude-pattern>
<exclude-pattern>./lib/lib_phpQuery.php</exclude-pattern>
- <exclude-pattern>./lib/password_compat.php</exclude-pattern>
<!-- Duplicate class names are not allowed -->
<rule ref="Generic.Classes.DuplicateClassName"/>
<!-- Statements must not be empty -->
@@ -29,9 +26,6 @@
<exclude-pattern>./app/install.php</exclude-pattern>
<!-- @todo remove test exclusion -->
<exclude-pattern>./tests/app/</exclude-pattern>
- <!-- @todo remove SQL exclusion -->
- <exclude-pattern>./app/SQL/install.sql.mysql.php</exclude-pattern>
- <exclude-pattern>./app/SQL/install.sql.pgsql.php</exclude-pattern>
<properties>
<property name="lineLimit" value="100"/>
<!-- needs to be large to accomodate extra large tab width to circumvent https://github.com/squizlabs/PHP_CodeSniffer/pull/1404 -->
@@ -45,7 +39,9 @@
<!-- Do not add a space before a comma -->
<!-- Add a space after a comma -->
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
- <rule ref="Generic.PHP.DisallowShortOpenTag" />
+ <rule ref="Generic.PHP.DisallowShortOpenTag">
+ <exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/>
+ </rule>
<rule ref="Generic.PHP.DeprecatedFunctions" />
<!-- Use UPPERCARE for constants -->
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>