static code analysis fixes

This commit is contained in:
Dennis Eichhorn 2022-04-05 20:04:47 +02:00
parent d126f13b60
commit f1c3abe2db
2 changed files with 4 additions and 47 deletions

View File

@ -22,6 +22,7 @@
"history": "readonly",
"screen": "readonly",
"Image": "readonly",
"Blob": "readonly",
"Notification": "readonly",
"XMLHttpRequest": "readonly",
"HTMLElement": "readonly",
@ -147,52 +148,6 @@
"error",
"consistent"
],
"indent": [
"warn",
4,
{
"SwitchCase": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"MemberExpression": 1,
"FunctionDeclaration": {
"parameters": 1,
"body": 1
},
"FunctionExpression": {
"parameters": 1,
"body": 1
},
"CallExpression": {
"arguments": "off"
},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
"ignoreComments": false,
"ignoredNodes": [
"TemplateLiteral *",
"JSXElement",
"JSXElement > *",
"JSXAttribute",
"JSXIdentifier",
"JSXNamespacedName",
"JSXMemberExpression",
"JSXSpreadAttribute",
"JSXExpressionContainer",
"JSXOpeningElement",
"JSXClosingElement",
"JSXFragment",
"JSXOpeningFragment",
"JSXClosingFragment",
"JSXText",
"JSXEmptyExpression",
"JSXSpreadChild"
],
"offsetTernaryExpressions": true
}
],
"key-spacing": [
"error",
{

View File

@ -8,7 +8,7 @@ parameters:
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
treatPhpDocTypesAsCertain: false
excludes_analyse:
excludePaths:
- *.tpl.php
- */tests/*
- */Modules/Media/Files/*
@ -43,6 +43,8 @@ parameters:
- */Modules/Organization/Controller/BackendController.php
- *Model/CoreSettings.php
ignoreErrors:
- '#[.]*tag @var for constant .* is not subtype of value array[.]*#'
- '#[.]*Offset .* on array.* always exists[.]*#'
- '#[.]*separator of function explode expects non-empty-string[.]*#'
- '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#'
- '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#'