phpcs, static and unit test fixes

This commit is contained in:
Dennis Eichhorn 2021-10-03 09:16:46 +02:00
parent 0373aa27e7
commit 2b6df9210e
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@
<exclude-pattern>*/Documentation/*</exclude-pattern>
<exclude-pattern>*/Hooks/*</exclude-pattern>
<exclude-pattern>*/Modules/Media/Files/*</exclude-pattern>
<exclude-pattern>*/Admin/Install/Application/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/Resources/*</exclude-pattern>
<exclude-pattern>*/Web/*</exclude-pattern>
@ -105,6 +106,7 @@
<exclude-pattern>*phpOMS/Message/Http/HttpRequest.php</exclude-pattern><!-- Multipart uses deep nesting -->
<exclude-pattern>*WebRouter.php</exclude-pattern><!-- WebRouter uses deep nesting -->
<exclude-pattern>*Mail.php</exclude-pattern><!-- Mail uses deep nesting -->
<exclude-pattern>*Exchange/Interfaces*</exclude-pattern><!-- Exchange interfaces can be deeply nested -->
</rule>
<rule ref="Generic.PHP.RequireStrictTypes"/>
<rule ref="Generic.NamingConventions.ConstructorName"/>

View File

@ -43,6 +43,7 @@ parameters:
- */Modules/Organization/Controller/BackendController.php
- *Model/CoreSettings.php
ignoreErrors:
- '#[.]*separator of function explode expects non-empty-string[.]*#'
- '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#'
- '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#'
- '#^Strict comparison using === between[.]*#'