mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
static code analysis fixes
This commit is contained in:
parent
d126f13b60
commit
f1c3abe2db
|
|
@ -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",
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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::[.]*#'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user