mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-12 09:08:40 +00:00
static code analysis fixes
This commit is contained in:
parent
d126f13b60
commit
f1c3abe2db
|
|
@ -22,6 +22,7 @@
|
||||||
"history": "readonly",
|
"history": "readonly",
|
||||||
"screen": "readonly",
|
"screen": "readonly",
|
||||||
"Image": "readonly",
|
"Image": "readonly",
|
||||||
|
"Blob": "readonly",
|
||||||
"Notification": "readonly",
|
"Notification": "readonly",
|
||||||
"XMLHttpRequest": "readonly",
|
"XMLHttpRequest": "readonly",
|
||||||
"HTMLElement": "readonly",
|
"HTMLElement": "readonly",
|
||||||
|
|
@ -147,52 +148,6 @@
|
||||||
"error",
|
"error",
|
||||||
"consistent"
|
"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": [
|
"key-spacing": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ parameters:
|
||||||
checkMissingIterableValueType: false
|
checkMissingIterableValueType: false
|
||||||
checkGenericClassInNonGenericObjectType: false
|
checkGenericClassInNonGenericObjectType: false
|
||||||
treatPhpDocTypesAsCertain: false
|
treatPhpDocTypesAsCertain: false
|
||||||
excludes_analyse:
|
excludePaths:
|
||||||
- *.tpl.php
|
- *.tpl.php
|
||||||
- */tests/*
|
- */tests/*
|
||||||
- */Modules/Media/Files/*
|
- */Modules/Media/Files/*
|
||||||
|
|
@ -43,6 +43,8 @@ parameters:
|
||||||
- */Modules/Organization/Controller/BackendController.php
|
- */Modules/Organization/Controller/BackendController.php
|
||||||
- *Model/CoreSettings.php
|
- *Model/CoreSettings.php
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
|
- '#[.]*tag @var for constant .* is not subtype of value array[.]*#'
|
||||||
|
- '#[.]*Offset .* on array.* always exists[.]*#'
|
||||||
- '#[.]*separator of function explode expects non-empty-string[.]*#'
|
- '#[.]*separator of function explode expects non-empty-string[.]*#'
|
||||||
- '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#'
|
- '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#'
|
||||||
- '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#'
|
- '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user