Files
CdsConnector/qodana.sarif.json
T
Marko c6bc1776bd
continuous-integration/drone/push Build is failing
add fixed export
2023-12-13 12:53:31 +01:00

46887 lines
1.9 MiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$schema": "https://raw.githubusercontent.com/schemastore/schemastore/master/src/schemas/json/sarif-2.1.0-rtm.5.json",
"version": "2.1.0",
"runs": [
{
"tool": {
"driver": {
"name": "PS",
"fullName": "Qodana",
"version": "232.10072.32",
"rules": [],
"taxa": [
{
"id": "Shopware 6",
"name": "Shopware 6"
},
{
"id": "Shopware 6/Store check",
"name": "Store check",
"relationships": [
{
"target": {
"id": "Shopware 6",
"index": 0,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP",
"name": "PHP"
},
{
"id": "PHP/Code smell",
"name": "Code smell",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/PHPDoc",
"name": "PHPDoc",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Code style",
"name": "Code style",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Naming conventions",
"name": "Naming conventions",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shell script",
"name": "Shell script"
},
{
"id": "PHP/General",
"name": "General",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript",
"name": "JavaScript and TypeScript"
},
{
"id": "JavaScript and TypeScript/Unit testing",
"name": "Unit testing",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Probable bugs",
"name": "Probable bugs",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MySQL",
"name": "MySQL"
},
{
"id": "Symfony",
"name": "Symfony"
},
{
"id": "Symfony/Twig",
"name": "Twig",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Control flow",
"name": "Control flow",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/PHPDoc/Code style",
"name": "Code style",
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/PhpClean",
"name": "PhpClean",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Sass/SCSS",
"name": "Sass/SCSS"
},
{
"id": "HTML",
"name": "HTML"
},
{
"id": "Cucumber",
"name": "Cucumber"
},
{
"id": "JavaScript and TypeScript/Unused symbols",
"name": "Unused symbols",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Flow type checker",
"name": "Flow type checker",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Data flow",
"name": "Data flow",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "EditorConfig",
"name": "EditorConfig"
},
{
"id": "PHP/PHPUnit",
"name": "PHPUnit",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "CSV",
"name": "CSV"
},
{
"id": "PostCSS",
"name": "PostCSS"
},
{
"id": "JavaScript and TypeScript/Bitwise operation issues",
"name": "Bitwise operation issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Type compatibility",
"name": "Type compatibility",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/General",
"name": "General",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Undefined symbols",
"name": "Undefined symbols",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/ES2015 migration aids",
"name": "ES2015 migration aids",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "DotEnv",
"name": "DotEnv"
},
{
"id": "General",
"name": "General"
},
{
"id": "HTML/Accessibility",
"name": "Accessibility",
"relationships": [
{
"target": {
"id": "HTML",
"index": 19,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/React",
"name": "React",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Validity issues",
"name": "Validity issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Potentially confusing code constructs",
"name": "Potentially confusing code constructs",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "CSS",
"name": "CSS"
},
{
"id": "CSS/Invalid elements",
"name": "Invalid elements",
"relationships": [
{
"target": {
"id": "CSS",
"index": 39,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SQL",
"name": "SQL"
},
{
"id": "JavaScript and TypeScript/Try statement issues",
"name": "Try statement issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YAML",
"name": "YAML"
},
{
"id": "HTTP Client",
"name": "HTTP Client"
},
{
"id": "PHP/Unused symbols",
"name": "Unused symbols",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Ignore",
"name": "Ignore"
},
{
"id": "PHP/Composer",
"name": "Composer",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "XML",
"name": "XML"
},
{
"id": "JavaScript and TypeScript/Control flow issues",
"name": "Control flow issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Potentially undesirable code constructs",
"name": "Potentially undesirable code constructs",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "OpenAPI specifications",
"name": "OpenAPI specifications"
},
{
"id": "CSS/Code style issues",
"name": "Code style issues",
"relationships": [
{
"target": {
"id": "CSS",
"index": 39,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony/Asset",
"name": "Asset",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Less",
"name": "Less"
},
{
"id": "JavaScript and TypeScript/Probable bugs",
"name": "Probable bugs",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Attributes",
"name": "Attributes",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "XSLT",
"name": "XSLT"
},
{
"id": "PHP/Annotation",
"name": "Annotation",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony/Route",
"name": "Route",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Dockerfile",
"name": "Dockerfile"
},
{
"id": "RegExp",
"name": "RegExp"
},
{
"id": "Shopware 6/Script",
"name": "Script",
"relationships": [
{
"target": {
"id": "Shopware 6",
"index": 0,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Code style issues",
"name": "Code style issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Assignment issues",
"name": "Assignment issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Joomla!",
"name": "Joomla!"
},
{
"id": "Symfony/Service",
"name": "Service",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Refactoring opportunities",
"name": "Refactoring opportunities",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Angular",
"name": "Angular"
},
{
"id": "JavaScript and TypeScript/TypeScript",
"name": "TypeScript",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "CSS/Probable bugs",
"name": "Probable bugs",
"relationships": [
{
"target": {
"id": "CSS",
"index": 39,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Switch statement issues",
"name": "Switch statement issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/DOM issues",
"name": "DOM issues",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Async code and promises",
"name": "Async code and promises",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Code Coverage",
"name": "Code Coverage"
},
{
"id": "Proofreading",
"name": "Proofreading"
},
{
"id": "PHP/Behat",
"name": "Behat",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Imports and dependencies",
"name": "Imports and dependencies",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Markdown",
"name": "Markdown"
},
{
"id": "Ini files",
"name": "Ini files"
},
{
"id": "Symfony/Translation",
"name": "Translation",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Code style/PSR-12",
"name": "PSR-12",
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Psalm",
"name": "Psalm",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Naming conventions",
"name": "Naming conventions",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Code quality tools",
"name": "Code quality tools",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Blade files",
"name": "Blade files"
},
{
"id": "PHP/PHP strict standards",
"name": "PHP strict standards",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Regular expressions",
"name": "Regular expressions",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware 6/PHP",
"name": "PHP",
"relationships": [
{
"target": {
"id": "Shopware 6",
"index": 0,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PHP/Quality tools",
"name": "Quality tools",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript and TypeScript/Function metrics",
"name": "Function metrics",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Security",
"name": "Security"
},
{
"id": "JSON and JSON5",
"name": "JSON and JSON5"
},
{
"id": "JSONPath",
"name": "JSONPath"
},
{
"id": "PHP/Error handling",
"name": "Error handling",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SASS/SCSS",
"name": "SASS/SCSS"
},
{
"id": "SASS/SCSS/Code quality tools",
"name": "Code quality tools",
"relationships": [
{
"target": {
"id": "SASS/SCSS",
"index": 95,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "XPath",
"name": "XPath"
},
{
"id": "Docker-compose",
"name": "Docker-compose"
},
{
"id": "Oracle",
"name": "Oracle"
},
{
"id": "Internationalization",
"name": "Internationalization"
},
{
"id": "MongoJS",
"name": "MongoJS"
},
{
"id": "Vue",
"name": "Vue"
},
{
"id": "Version control",
"name": "Version control"
},
{
"id": "Makefile",
"name": "Makefile"
},
{
"id": "Structural search",
"name": "Structural search"
},
{
"id": "Phing",
"name": "Phing"
},
{
"id": "JavaScript and TypeScript/Node.js",
"name": "Node.js",
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript",
"index": 9,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "RELAX NG",
"name": "RELAX NG"
},
{
"id": "PHP/Replaceable assignments",
"name": "Replaceable assignments",
"relationships": [
{
"target": {
"id": "PHP",
"index": 2,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony/Template",
"name": "Template",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony/Yaml",
"name": "Yaml",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "CSS/Code quality tools",
"name": "Code quality tools",
"relationships": [
{
"target": {
"id": "CSS",
"index": 39,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PostgreSQL",
"name": "PostgreSQL"
},
{
"id": "Symfony/Form",
"name": "Form",
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "JavaScript",
"name": "JavaScript"
},
{
"id": "JavaScript/Code quality tools",
"name": "Code quality tools",
"relationships": [
{
"target": {
"id": "JavaScript",
"index": 115,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SQL server",
"name": "SQL server"
},
{
"id": "Qodana",
"name": "Qodana"
},
{
"id": "File Watchers",
"name": "File Watchers"
},
{
"id": "Shopware 6/Administration",
"name": "Administration",
"relationships": [
{
"target": {
"id": "Shopware 6",
"index": 0,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
}
],
"language": "en-US",
"contents": [
"localizedData",
"nonLocalizedData"
],
"isComprehensive": false
},
"extensions": [
{
"name": "de.shyim.shopware6",
"version": "0.0.40",
"rules": [
{
"id": "Shopware6PluginStoreMissingManufacturerLink",
"shortDescription": {
"text": "Composer.json: missing extra.manufacturerLink"
},
"fullDescription": {
"text": "For the Shopware Store the manufacturerLink attribute is required.",
"markdown": "For the Shopware Store the manufacturerLink attribute is required."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6PluginStoreMissingManufacturerLink",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Store check",
"index": 1,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6PluginStoreMissingExtraDescription",
"shortDescription": {
"text": "Composer.json: missing extra.description"
},
"fullDescription": {
"text": "For the Shopware Store the description attribute is required.",
"markdown": "For the Shopware Store the description attribute is required."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6PluginStoreMissingExtraDescription",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Store check",
"index": 1,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6AppScriptPermissionMissing",
"shortDescription": {
"text": "Permission is missing in manifest.xml"
},
"fullDescription": {
"text": "Check for missing app permissions in your app scripts",
"markdown": "Check for missing app permissions in your app scripts"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6AppScriptPermissionMissing",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Script",
"index": 62,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6CriteriaIdMisused",
"shortDescription": {
"text": "Criteria IDs set by filter instead of constructor"
},
"fullDescription": {
"text": "The DAL does 2 queries to fetch entities. First it queries for the IDs and then fetches the entity's. When we know already the ids, we can pass it in the constructor to let the DAL to fetch directly the entities.",
"markdown": "The DAL does 2 queries to fetch entities. First it queries for the IDs and then fetches the entity's. When we know already the ids, we can pass it in the constructor to let the DAL to fetch directly the entities."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6CriteriaIdMisused",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/PHP",
"index": 88,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6AppScriptServiceNotAvailable",
"shortDescription": {
"text": "Requested service is not available in this scope"
},
"fullDescription": {
"text": "Check for invalid service usage in App Scripts",
"markdown": "Check for invalid service usage in App Scripts"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6AppScriptServiceNotAvailable",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Script",
"index": 62,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6AbstractClassInspection",
"shortDescription": {
"text": "Class used instead of abstract class"
},
"fullDescription": {
"text": "Typeing the implementation instead of the abstract class breaks the decoration pattern of this class. Check for correct decoration usage in constructor",
"markdown": "Typeing the implementation instead of the abstract class breaks the decoration pattern of this class.\n\nCheck for correct decoration usage in constructor"
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "Shopware6AbstractClassInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/PHP",
"index": 88,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6PluginStoreMissingRequire",
"shortDescription": {
"text": "Composer.json: missing require.shopware/core"
},
"fullDescription": {
"text": "The plugin should always require the shopware/core and specify the compatible versions.",
"markdown": "The plugin should always require the shopware/core and specify the compatible versions."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6PluginStoreMissingRequire",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Store check",
"index": 1,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6PluginStoreMissingSupportLink",
"shortDescription": {
"text": "Composer.json: missing extra.supportLink"
},
"fullDescription": {
"text": "For the Shopware Store the supportLink attribute is required.",
"markdown": "For the Shopware Store the supportLink attribute is required."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6PluginStoreMissingSupportLink",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Store check",
"index": 1,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6PluginStoreMissingExtraLabel",
"shortDescription": {
"text": "Composer.json: missing extra.label"
},
"fullDescription": {
"text": "Any Shopware Plugin must have a label in the extra part of the composer.json",
"markdown": "Any Shopware Plugin must have a label in the extra part of the composer.json"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6PluginStoreMissingExtraLabel",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Store check",
"index": 1,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Shopware6AdministrationSnippetMissing",
"shortDescription": {
"text": "Snippet translation is missing"
},
"fullDescription": {
"text": "Checks for missing Administration translations",
"markdown": "Checks for missing Administration translations"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Shopware6AdministrationSnippetMissing",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Shopware 6/Administration",
"index": 120,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
}
],
"language": "en-US",
"contents": [
"localizedData",
"nonLocalizedData"
],
"isComprehensive": false
},
{
"name": "com.jetbrains.php",
"version": "232.10072.32",
"rules": [
{
"id": "PhpLoopCanBeReplacedWithStrRepeatInspection",
"shortDescription": {
"text": "Loop can be replaced with 'str_repeat'"
},
"fullDescription": {
"text": "Reports the 'for' loops that can be safely replaced with 'str_repeat()' calls.",
"markdown": "Reports the `for` loops that can be safely replaced with `str_repeat()` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLoopCanBeReplacedWithStrRepeatInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDocDuplicateTypeInspection",
"shortDescription": {
"text": "Type already exists in PHPDoc tag"
},
"fullDescription": {
"text": "Reports duplicate types in PHPDoc comments.",
"markdown": "Reports duplicate types in PHPDoc comments."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDocDuplicateTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryCurlyVarSyntaxInspection",
"shortDescription": {
"text": "Unnecessary curly braces syntax for variable"
},
"fullDescription": {
"text": "Reports unnecessary '{' and '}' used for interpolating variables in string literals. See Variable parsing (php.net) for details.",
"markdown": "Reports unnecessary `{` and `}` used for interpolating variables in string literals.\n\n\nSee [Variable parsing (php.net)](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryCurlyVarSyntaxInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFunctionNamingConventionInspection",
"shortDescription": {
"text": "Function name is not following coding convention"
},
"fullDescription": {
"text": "Reports the functions' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for functions. Use the inspection options to specify minimum/maximum length and the regular expression expected for functions' names. To ignore the names' length, specify 0. To learn more about regular expressions, refer to the Quick Start guide (regular-expressions.info).",
"markdown": "Reports the functions' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for functions.\n\n\nUse the inspection options to specify minimum/maximum length and the regular expression expected for functions' names.\nTo ignore the names' length, specify **0**.\n\n\nTo learn more about regular expressions, refer to the [Quick Start guide (regular-expressions.info)](https://www.regular-expressions.info/quickstart.html)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpFunctionNamingConventionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Naming conventions",
"index": 6,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayFillCanBeConvertedToLoopInspection",
"shortDescription": {
"text": "'array_fill' can be converted to loop"
},
"fullDescription": {
"text": "Reports the 'array_fill()' calls that can be replaced with 'foreach' loops.",
"markdown": "Reports the `array_fill()` calls that can be replaced with `foreach` loops."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayFillCanBeConvertedToLoopInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIssetCanBeReplacedWithCoalesceInspection",
"shortDescription": {
"text": "'isset' can be replaced with coalesce"
},
"fullDescription": {
"text": "Reports the conditions using 'isset' that can be safely replaced with expressions using the '??' null coalesce operator. See Null coalesce operator (php.net) for details.",
"markdown": "Reports the conditions using `isset` that can be safely replaced with expressions using the `??` null coalesce operator.\n\n\nSee [Null coalesce operator (php.net)](https://wiki.php.net/rfc/isset_ternary) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIssetCanBeReplacedWithCoalesceInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNestedTernaryExpressionUsageInspection",
"shortDescription": {
"text": "Nested ternary operator usage"
},
"fullDescription": {
"text": "Reports nested ternary expressions, which are deprecated starting from PHP 7.4.",
"markdown": "Reports nested ternary expressions, which are deprecated starting from PHP 7.4."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpNestedTernaryExpressionUsageInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpVoidFunctionResultUsedInspection",
"shortDescription": {
"text": "Invalid function result used"
},
"fullDescription": {
"text": "Reports the usages of a 'void' or 'never' function's return value. Since 'void' functions do not have a return value and 'never' functions terminate execution or throw an exception, such usages are most likely a programming mistake.",
"markdown": "Reports the usages of a `void` or `never` function's return value.\n\n\nSince `void` functions do not have a return value and `never` functions terminate execution or throw an exception, such usages are most likely a programming mistake."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpVoidFunctionResultUsedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConstantNamingConventionInspection",
"shortDescription": {
"text": "Constant name is not following coding convention"
},
"fullDescription": {
"text": "Reports the constants' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for constants. Use the inspection options to specify minimum/maximum length and the regular expression expected for constants' names. To ignore the names' length, specify 0. To learn more about regular expressions, refer to the Quick Start guide (regular-expressions.info).",
"markdown": "Reports the constants' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for constants.\n\n\nUse the inspection options to specify minimum/maximum length and the regular expression expected for constants' names.\nTo ignore the names' length, specify **0**.\n\n\nTo learn more about regular expressions, refer to the [Quick Start guide (regular-expressions.info)](https://www.regular-expressions.info/quickstart.html)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpConstantNamingConventionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Naming conventions",
"index": 6,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTernaryExpressionCanBeReducedToShortVersionInspection",
"shortDescription": {
"text": "Ternary expression can be replaced with short version"
},
"fullDescription": {
"text": "Reports the '?:' ternary expressions in which the condition and the 'true' statement are matching.",
"markdown": "Reports the `?:` ternary expressions in which the condition and the `true` statement are matching."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpTernaryExpressionCanBeReducedToShortVersionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCatchWithInstanceOfCanBeReplacedWithSpecificCatchesInspection",
"shortDescription": {
"text": "'instanceof' checks in 'catch' block can be replaced with specific catches"
},
"fullDescription": {
"text": "Reports the 'instanceof' checks in single 'catch' blocks that could be replaced with multiple 'catch' blocks specific for each exception instance.",
"markdown": "Reports the `instanceof` checks in single `catch` blocks that could be replaced with multiple `catch` blocks specific for each exception instance."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCatchWithInstanceOfCanBeReplacedWithSpecificCatchesInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicateMatchArmBodyInspection",
"shortDescription": {
"text": "Duplicate arm in 'match' expression"
},
"fullDescription": {
"text": "Reports duplicate bodies in 'match' arms. See Match expression (php.net) for details.",
"markdown": "Reports duplicate bodies in `match` arms.\n\n\nSee [Match expression (php.net)](https://wiki.php.net/rfc/match_expression_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpDuplicateMatchArmBodyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection",
"shortDescription": {
"text": "Write access to referenced array value without 'unset'"
},
"fullDescription": {
"text": "Reports the write access expressions on variables that are still referencing the array value previously used in a 'foreach' statement. It is recommended to destroy such references by using 'unset'. See foreach (php.net) and unset (php.net) for details.",
"markdown": "Reports the write access expressions on variables that are still referencing the array value previously used in a `foreach` statement.\n\n\nIt is recommended to destroy such references by using `unset`.\n\n\nSee [foreach (php.net)](https://www.php.net/manual/en/control-structures.foreach.php) and [unset (php.net)](https://www.php.net/manual/en/function.unset.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingDocCommentInspection",
"shortDescription": {
"text": "Missing PHPDoc comment"
},
"fullDescription": {
"text": "Reports non-fully typed elements without a PHPDoc comment or with a PHPDoc comment only containing the '@noinspection' tag. You can use the Enforce PHPDoc Comment inspection to report fully typed elements.",
"markdown": "Reports non-fully typed elements without a PHPDoc comment or with a PHPDoc comment only containing the `@noinspection` tag.\n\nYou can use the *Enforce PHPDoc Comment* inspection to report fully typed elements."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingDocCommentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc/Code style",
"index": 16,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSameParameterValueInspection",
"shortDescription": {
"text": "Parameter's value is always the same"
},
"fullDescription": {
"text": "Reports the parameters in private methods that have the same value across all method calls.",
"markdown": "Reports the parameters in private methods that have the same value across all method calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpSameParameterValueInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitCoversFunctionWithoutScopeResolutionOperatorInspection",
"shortDescription": {
"text": "Covered function reference is provided without ‘::’"
},
"fullDescription": {
"text": "Reports the references to functions/methods in the '@covers' PHPDoc tags that are not prepended with the scope resolution operator ('::').",
"markdown": "Reports the references to functions/methods in the `@covers` PHPDoc tags that are not prepended with the scope resolution operator (`::`)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitCoversFunctionWithoutScopeResolutionOperatorInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayAccessOnIllegalTypeInspection",
"shortDescription": {
"text": "Array offset access on illegal type"
},
"fullDescription": {
"text": "Reports the array offset access expressions that are used on illegal types.",
"markdown": "Reports the array offset access expressions that are used on illegal types."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayAccessOnIllegalTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedGotoLabelInspection",
"shortDescription": {
"text": "Undefined goto label"
},
"fullDescription": {
"text": "Reports the 'goto' labels that are not found in the current scope. The target 'goto' label must reside in the same file and context: you cannot jump into or out of a function or method, and cannot jump into a loop or switch structure. See goto (php.net) for details.",
"markdown": "Reports the `goto` labels that are not found in the current scope.\n\n\nThe target `goto` label must reside in the same file and context: you cannot jump into or out of a function or method, and cannot jump into a loop or switch structure.\n\n\nSee [goto (php.net)](https://www.php.net/manual/en/control-structures.goto.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedGotoLabelInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedPartiallySupportedCallableInspection",
"shortDescription": {
"text": "Deprecated partially supported callables"
},
"fullDescription": {
"text": "Reports deprecated usage of callables that are supported by 'call_user_func($callable)', but not by '$callable()'. Starting from PHP 8.2, the following callables are deprecated: '\"self::method\"'\n'\"parent::method\"'\n'\"static::method\"'\n'[\"self\", \"method\"]'\n'[\"parent\", \"method\"]'\n'[\"static\", \"method\"]'\n'[\"Foo\", \"Bar::method\"]'\n'[new Foo, \"Bar::method\"]' See Deprecate partially supported callables (php.net) for details.",
"markdown": "Reports deprecated usage of callables that are supported by `call_user_func($callable)`, but not by `$callable()`.\n\nStarting from PHP 8.2, the following callables are deprecated:\n\n \"self::method\"\n \"parent::method\"\n \"static::method\"\n [\"self\", \"method\"]\n [\"parent\", \"method\"]\n [\"static\", \"method\"]\n [\"Foo\", \"Bar::method\"]\n [new Foo, \"Bar::method\"]\n\n\nSee [Deprecate partially supported callables (php.net)](https://wiki.php.net/rfc/deprecate_partially_supported_callables) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDeprecatedPartiallySupportedCallableInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLoopCanBeConvertedToArrayFillInspection",
"shortDescription": {
"text": "Loop can be converted to 'array_fill()' call"
},
"fullDescription": {
"text": "Reports the 'for' loops that can be replaced with 'array_fill()' calls.",
"markdown": "Reports the `for` loops that can be replaced with `array_fill()` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLoopCanBeConvertedToArrayFillInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayToStringConversionInspection",
"shortDescription": {
"text": "Array to string conversion"
},
"fullDescription": {
"text": "Reports array to string conversions, that is, the arrays that are provided in the contexts where a string is expected. Prior to PHP 8.0, this would lead to a 'E_NOTICE' level error. In PHP 8.0, an 'E-WARNING' is emitted.",
"markdown": "Reports array to string conversions, that is, the arrays that are provided in the contexts where a string is expected.\n\n\nPrior to PHP 8.0, this would lead to a `E_NOTICE` level error. In PHP 8.0, an `E-WARNING` is emitted."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpArrayToStringConversionInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConstantReassignmentInspection",
"shortDescription": {
"text": "Constant reassignment"
},
"fullDescription": {
"text": "Reports reassignments of constants. Since constants cannot be changed, such assignments will have no effect and will emit an 'E_NOTICE' (in PHP 7.4 and earlier) or 'E_WARNING' (in PHP 8.0 and later).",
"markdown": "Reports reassignments of constants.\n\n\nSince constants cannot be changed, such assignments will have no effect and will emit an `E_NOTICE` (in PHP 7.4 and earlier) or `E_WARNING` (in PHP 8.0 and later)."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpConstantReassignmentInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedFieldInspection",
"shortDescription": {
"text": "Undefined property"
},
"fullDescription": {
"text": "Reports the references to class properties that are not declared. The inspection skips the objects of the 'stdClass' or derived types.",
"markdown": "Reports the references to class properties that are not declared.\n\n\nThe inspection skips the objects of the `stdClass` or derived types."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedFieldInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedClassConstantInspection",
"shortDescription": {
"text": "Undefined class constant"
},
"fullDescription": {
"text": "Reports the references to class constants that are not declared.",
"markdown": "Reports the references to class constants that are not declared."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpUndefinedClassConstantInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPregMatchWithoutEffectiveRegexpInspection",
"shortDescription": {
"text": "'preg_match' can be replaced with 'str_contains'"
},
"fullDescription": {
"text": "Reports the 'preg_match()' calls with 'pattern' arguments that don't use any regexp facilities. Such calls can be replaced with 'str_starts_with()', 'str_ends_with()' or 'str_contains()' calls.",
"markdown": "Reports the `preg_match()` calls with `pattern` arguments that don't use any regexp facilities. Such calls can be replaced with `str_starts_with()`, `str_ends_with()` or `str_contains()` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPregMatchWithoutEffectiveRegexpInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpToStringReturnInspection",
"shortDescription": {
"text": "Method '__toString' return type"
},
"fullDescription": {
"text": "Reports the '__toString' methods that do not return 'string'. Prior to PHP 7.4, this would lead to a fatal 'E_RECOVERABLE_ERROR' level error. In PHP 7.4, a fatal non-recoverable 'ERROR' is thrown. In PHP 8.0, the return value follows the standard PHP type semantics and will be coerced into a string if possible and if strict typing is disabled. See __toString (php.net) for details.",
"markdown": "Reports the `__toString` methods that do not return `string`.\n\nPrior to PHP 7.4, this would lead to a fatal `E_RECOVERABLE_ERROR` level error. In PHP 7.4, a fatal non-recoverable `ERROR` is thrown. In PHP 8.0, the return value follows the standard PHP type semantics and will be coerced into a string if possible and if strict typing is disabled.\n\n\nSee [__toString (php.net)](https://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpToStringReturnInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIfCanBeReplacedWithMatchExpressionInspection",
"shortDescription": {
"text": "'if' can be replaced with 'match' expression"
},
"fullDescription": {
"text": "Reports the 'if' statements inside 'if-elseif-else' constructs that use strict comparisons ('===') and could be replaced with 'match' expressions.",
"markdown": "Reports the `if` statements inside `if-elseif-else` constructs that use strict comparisons (`===`) and could be replaced with `match` expressions."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIfCanBeReplacedWithMatchExpressionInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUselessTrailingCommaInspection",
"shortDescription": {
"text": "Useless trailing comma"
},
"fullDescription": {
"text": "Reports the trailing commas in parameters lists and closures' 'use' lists that do not bring any benefit. In a single-line list, a trailing comma is redundant and can be removed. In a multiline list, if no line break is provided after a trailing comma, it becomes impossible to easily add, remove, or move lines.",
"markdown": "Reports the trailing commas in parameters lists and closures' `use` lists that do not bring any benefit.\n\n* In a single-line list, a trailing comma is redundant and can be removed.\n* In a multiline list, if no line break is provided after a trailing comma, it becomes impossible to easily add, remove, or move lines."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUselessTrailingCommaInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpParamsInspection",
"shortDescription": {
"text": "Parameter type"
},
"fullDescription": {
"text": "Reports the parameters passed to a function call, whose types do not match the ones specified in the function definition via type declaration or the PHPDoc '@param' tag. See Type declarations (php.net) and @param (phpdoc.org) for details.",
"markdown": "Reports the parameters passed to a function call, whose types do not match the ones specified in the function definition via type declaration or the PHPDoc `@param` tag.\n\nSee [Type declarations (php.net)](http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration) and\n[@param (phpdoc.org)](https://docs.phpdoc.org/guide/references/phpdoc/tags/param.html#param) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpParamsInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClassCanBeReadonlyInspection",
"shortDescription": {
"text": "Class can be 'readonly'"
},
"fullDescription": {
"text": "Reports classes which contain only 'readonly' properties.",
"markdown": "Reports classes which contain only `readonly` properties."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpClassCanBeReadonlyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCastIsUnnecessaryInspection",
"shortDescription": {
"text": "Type cast is unnecessary"
},
"fullDescription": {
"text": "Reports the type cast operators used on the values that are already of the corresponding type. Such operators are redundant and can be safely removed. See Type juggling (php.net) for details.",
"markdown": "Reports the type cast operators used on the values that are already of the corresponding type. Such operators are redundant and can be safely removed.\n\n\nSee [Type juggling (php.net)](https://www.php.net/manual/en/language.types.type-juggling.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCastIsUnnecessaryInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDocMissingThrowsInspection",
"shortDescription": {
"text": "Missing @throws tag(s)"
},
"fullDescription": {
"text": "Reports missing PHPDoc '@throws' tags for exceptions thrown by functions or methods. The exception classes added to the Unchecked Exceptions list under Settings | PHP | Analysis are excluded from the inspection scope.",
"markdown": "Reports missing PHPDoc `@throws` tags for exceptions thrown by functions or methods.\n\nThe exception classes added to the **Unchecked Exceptions** list under\n[Settings \\| PHP \\| Analysis](settings://reference.webide.settings.project.settings.php?Unchecked%20Exceptions)\nare excluded from the inspection scope."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDocMissingThrowsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc/Code style",
"index": 16,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedAliasInspection",
"shortDescription": {
"text": "Unused import"
},
"fullDescription": {
"text": "Reports the imports that are never used.",
"markdown": "Reports the imports that are never used."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedAliasInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Unused symbols",
"index": 45,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ComposerJsonFileReferencesInspection",
"shortDescription": {
"text": "Unresolved file references"
},
"fullDescription": {
"text": "Reports unresolved file references in composer.json.",
"markdown": "Reports unresolved file references in composer.json."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ComposerJsonFileReferencesInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Composer",
"index": 47,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIssetCanCheckNestedAccessDirectlyInspection",
"shortDescription": {
"text": "'isset' can check nested array access and sub properties directly"
},
"fullDescription": {
"text": "Reports constructions like 'isset($a['a']) && isset($a['a']['b']) && isset($b) && isset($b->b)' that can be replaced with 'isset($a['a']['b']) && isset($b->b)'.",
"markdown": "Reports constructions like `isset($a['a']) && isset($a['a']['b']) && isset($b) && isset($b->b)` that can be replaced with `isset($a['a']['b']) && isset($b->b)`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIssetCanCheckNestedAccessDirectlyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantDefaultBreakContinueArgumentInspection",
"shortDescription": {
"text": "Redundant 'continue/break' argument"
},
"fullDescription": {
"text": "Reports the redundant '1' argument of 'continue' and 'break' statements. Since this argument is optional and its default value is '1', such usages can be omitted. See continue (php.net) and break (php.net) for details.",
"markdown": "Reports the redundant `1` argument of `continue` and `break` statements. Since this argument is optional and its default value is `1`, such usages can be omitted.\n\n\nSee [continue (php.net)](https://www.php.net/manual/en/control-structures.continue.php) and [break (php.net)](https://www.php.net/manual/en/control-structures.break.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantDefaultBreakContinueArgumentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayUsedOnlyForWriteInspection",
"shortDescription": {
"text": "Array used only with write access"
},
"fullDescription": {
"text": "Reports local arrays that are only updated, but never queried.",
"markdown": "Reports local arrays that are only updated, but never queried."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayUsedOnlyForWriteInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIllegalPsrClassPathInspection",
"shortDescription": {
"text": "Class path doesn't match project structure"
},
"fullDescription": {
"text": "Reports the classes with the filepath not following the PSR-0/PSR-4 project structure. You can configure the project vendor roots under Settings/Preferences | Directories. See PSR-0/PSR-4 standards (php-fig.org) for details.",
"markdown": "Reports the classes with the filepath not following the PSR-0/PSR-4 project structure.\n\n\nYou can configure the project vendor roots under **Settings/Preferences \\| Directories**.\n\n\nSee [PSR-0/PSR-4 standards (php-fig.org)](https://www.php-fig.org/psr/psr-4/) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpIllegalPsrClassPathInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantMethodOverrideInspection",
"shortDescription": {
"text": "Redundant method override"
},
"fullDescription": {
"text": "Reports the overriding methods that only consist of a single call to the parent method.",
"markdown": "Reports the overriding methods that only consist of a single call to the parent method."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantMethodOverrideInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDefineCanBeReplacedWithConstInspection",
"shortDescription": {
"text": "Define constant name can be replaced with 'const' syntax"
},
"fullDescription": {
"text": "Reports the 'define()' calls that can be replaced with 'const' syntax.",
"markdown": "Reports the `define()` calls that can be replaced with `const` syntax."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDefineCanBeReplacedWithConstInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayAppendUsingCountInspection",
"shortDescription": {
"text": "Using 'count()' as index for appending value to array"
},
"fullDescription": {
"text": "Reports the 'count($array)' calls that are used as an array index for appending an element to the array: '$array[count($array)] = 42'. In such cases, it is recommended to use square bracket syntax ('$array[] = 42') instead, which adds no overhead of calling a function.",
"markdown": "Reports the `count($array)` calls that are used as an array index for appending an element to the array: `$array[count($array)] = 42`. In such cases, it is recommended to use square bracket syntax (`$array[] = 42`) instead, which adds no overhead of calling a function."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayAppendUsingCountInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSwitchCanBeReplacedWithMatchExpressionInspection",
"shortDescription": {
"text": "'switch' can be replaced with 'match' expression"
},
"fullDescription": {
"text": "Reports 'switch' statements that could be replaced with 'match' expression",
"markdown": "Reports 'switch' statements that could be replaced with 'match' expression"
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpSwitchCanBeReplacedWithMatchExpressionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPowCallCanBeReplacedWithOperatorInspection",
"shortDescription": {
"text": "'pow()' call can be replaced with '**' operator"
},
"fullDescription": {
"text": "Reports the 'pow()' calls that can be replaced with the '**' operator, which adds no overhead of calling a function. See Power operator (php.net) for details.",
"markdown": "Reports the `pow()` calls that can be replaced with the `**` operator, which adds no overhead of calling a function.\n\n\nSee [Power operator (php.net)](https://wiki.php.net/rfc/pow-operator) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPowCallCanBeReplacedWithOperatorInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFormatFunctionParametersMismatchInspection",
"shortDescription": {
"text": "Format function parameters mismatch"
},
"fullDescription": {
"text": "Reports the arguments of a format function (such as 'printf' or 'sprintf') that are not mapped to any parameters or specification conversions. See printf (php.net) and sprintf (php.net) for details.",
"markdown": "Reports the arguments of a format function (such as `printf` or `sprintf`) that are not mapped to any parameters or specification conversions.\n\n\nSee [printf (php.net)](https://www.php.net/manual/en/function.printf.php) and [sprintf (php.net)](https://www.php.net/manual/en/function.sprintf.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpFormatFunctionParametersMismatchInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpForeachVariableOverwritesAlreadyDefinedVariableInspection",
"shortDescription": {
"text": "'foreach' variable overwrites already defined variable"
},
"fullDescription": {
"text": "Reports the keys and values in 'foreach' loops that are assigned a non-primitive value before the 'foreach' loop and are accessed after it. Such usages may unwillingly overwrite an already defined value and cause latent bugs.",
"markdown": "Reports the keys and values in `foreach` loops that are assigned a non-primitive value before the `foreach` loop and are accessed after it. Such usages may unwillingly overwrite an already defined value and cause latent bugs."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpForeachVariableOverwritesAlreadyDefinedVariableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLoopCanBeReplacedWithStdFunctionCallsInspection",
"shortDescription": {
"text": "Loop can be replaced with 'in_array()' or 'array_key_exists()' call"
},
"fullDescription": {
"text": "Reports the 'foreach' loops that can be safely replaced with 'in_array()' or 'array_key_exists()' calls. See in_array (php.net) and array_key_exists (php.net) for details.",
"markdown": "Reports the `foreach` loops that can be safely replaced with `in_array()` or `array_key_exists()` calls.\n\n\nSee [in_array (php.net)](https://www.php.net/manual/en/function.in-array) and [array_key_exists (php.net)](https://www.php.net/manual/en/function.array-key-exists) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLoopCanBeReplacedWithStdFunctionCallsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayKeyDoesNotMatchArrayShapeInspection",
"shortDescription": {
"text": "Array key does not match array shape "
},
"fullDescription": {
"text": "Reports the array keys that do not match the keys specified via the '#[ArrayShape]' attribute.",
"markdown": "Reports the array keys that do not match the keys specified via the `#[ArrayShape]` attribute."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayKeyDoesNotMatchArrayShapeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpComposerExtensionStubsInspection",
"shortDescription": {
"text": "Extension is missing in composer.json"
},
"fullDescription": {
"text": "Reports the usages of classes, functions, and constants from the PHP extensions not specified in composer.json. If an extension is listed in the 'require-dev' section of composer.json, the inspection reports the corresponding symbols' usages located outside of the folders marked as test roots.",
"markdown": "Reports the usages of classes, functions, and constants from the PHP extensions not specified in *composer.json* . If an extension is listed in the `require-dev` section of *composer.json*, the inspection reports the corresponding symbols' usages located outside of the folders marked as test roots."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpComposerExtensionStubsInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Composer",
"index": 47,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedParameterInspection",
"shortDescription": {
"text": "Unused parameter"
},
"fullDescription": {
"text": "Reports the parameters that are considered unused in the following cases: The parameter is passed by value, and the value is not used anywhere or is overwritten immediately. The parameter is passed by reference, and the reference is not used anywhere or is overwritten immediately.",
"markdown": "Reports the parameters that are considered unused in the following cases:\n\n* The parameter is passed by value, and the value is not used anywhere or is overwritten immediately.\n* The parameter is passed by reference, and the reference is not used anywhere or is overwritten immediately."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedParameterInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Unused symbols",
"index": 45,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDisabledExtensionStubsInspection",
"shortDescription": {
"text": "Disabled extension stubs"
},
"fullDescription": {
"text": "Reports the usages of classes, functions, and constants, for which the stubs for the corresponding PHP interpreter extensions are disabled. You can configure the set of stubs under Settings | PHP | PHP Runtime. See PhpStorm stubs (blog.jetbrains.com/phpstorm) for details.",
"markdown": "Reports the usages of classes, functions, and constants, for which the stubs for the corresponding PHP interpreter extensions are disabled.\n\n\nYou can configure the set of stubs under\n[Settings \\| PHP \\| PHP Runtime](settings://reference.webide.settings.project.settings.php?PHP%20Runtime).\n\n\nSee [PhpStorm stubs (blog.jetbrains.com/phpstorm)](https://blog.jetbrains.com/phpstorm/2018/03/how-to-provide-stubs-for-phpstorm/) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDisabledExtensionStubsInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTernaryExpressionCanBeReplacedWithConditionInspection",
"shortDescription": {
"text": "Ternary expression can be replaced with condition"
},
"fullDescription": {
"text": "Reports the ternary expressions specified as 'condition ? true : false' that can be safely replaced with just 'condition'.",
"markdown": "Reports the ternary expressions specified as `condition ? true : false` that can be safely replaced with just `condition`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpTernaryExpressionCanBeReplacedWithConditionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPregMatchReplaceWithComparisonInspection",
"shortDescription": {
"text": "'preg_match()' can be replaced with comparison"
},
"fullDescription": {
"text": "Reports the 'preg_match()' calls that are provided with a string argument starting with '^' (Start of String anchor) and ending with '$' (End of String anchor). Such calls can be replaced with a comparison operation.",
"markdown": "Reports the `preg_match()` calls that are provided with a string argument starting with `^` (Start of String anchor) and ending with `$` (End of String anchor). Such calls can be replaced with a comparison operation."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPregMatchReplaceWithComparisonInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMethodMayBeInaccessibleInLateStaticBindingInspection",
"shortDescription": {
"text": "Private method may be inaccessible during late static binding call"
},
"fullDescription": {
"text": "Reports the late static binding method calls (that is, performed via 'static::') that may be resolved to inaccessible private methods from child classes. See Late Static Bindings (php.net) for details.",
"markdown": "Reports the late static binding method calls (that is, performed via `static::`) that may be resolved to inaccessible private methods from child classes.\n\n\nSee [Late Static Bindings (php.net)](https://www.php.net/manual/en/language.oop5.late-static-bindings.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpMethodMayBeInaccessibleInLateStaticBindingInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClassConstantCanBeFinalInspection",
"shortDescription": {
"text": "Class constant can be 'final'"
},
"fullDescription": {
"text": "Reports the non-'final' class constants that are not redefined in child classes. In PHP 8.1 and later, such constants can be made 'final'. See Final class constants (php.net) for details.",
"markdown": "Reports the non-`final` class constants that are not redefined in child classes. In PHP 8.1 and later, such constants can be made `final`.\n\n\nSee [Final class constants (php.net)](https://wiki.php.net/rfc/final_class_const) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpClassConstantCanBeFinalInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantArrayCallInForeachIteratedValueInspection",
"shortDescription": {
"text": "Redundant 'array_values' call on a value iterated in 'foreach'"
},
"fullDescription": {
"text": "Reports the 'array_values()' calls inside 'foreach' loops in which the iterated value is used without a key. Such calls are redundant and can be safely removed.",
"markdown": "Reports the `array_values()` calls inside `foreach` loops in which the iterated value is used without a key. Such calls are redundant and can be safely removed."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantArrayCallInForeachIteratedValueInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClosureCanBeConvertedToFirstClassCallableInspection",
"shortDescription": {
"text": "'Closure::fromCallable()' can be converted to the first-class callable syntax"
},
"fullDescription": {
"text": "Reports the 'callable' creation expressions that use 'Closure::fromCallable' but can be replaced with first-class callable syntax 'f(...)' available since PHP 8.1. See First-class callable syntax (php.net) for details.",
"markdown": "Reports the `callable` creation expressions that use `Closure::fromCallable` but can be replaced with first-class callable syntax `f(...)` available since PHP 8.1.\n\n\nSee [First-class callable syntax (php.net)](https://wiki.php.net/rfc/first_class_callable_syntax) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpClosureCanBeConvertedToFirstClassCallableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpExpressionAlwaysNullInspection",
"shortDescription": {
"text": "Expression is always 'null'"
},
"fullDescription": {
"text": "Reports the variables in 'return' statements that are always 'null'.",
"markdown": "Reports the variables in `return` statements that are always `null`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpExpressionAlwaysNullInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDefineConstantNameStartsWithLeadingSlashInspection",
"shortDescription": {
"text": "Constant name defined with a leading slash"
},
"fullDescription": {
"text": "Reports the 'define' constructs in which the constant's FQN starts with a leading slash. Such constants will not be correctly registered by PHP.",
"markdown": "Reports the `define` constructs in which the constant's FQN starts with a leading slash. Such constants will not be correctly registered by PHP."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDefineConstantNameStartsWithLeadingSlashInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertCountInspection",
"shortDescription": {
"text": "Usage 'assertCount/assertSameSize' methods instead of assertEquals"
},
"fullDescription": {
"text": "Reports alternative usage of the 'assertEquals' and 'assertNotEquals' methods with 'count' function as a parameter See Usage of the assertCount for details. See Usage of the assertSameSize for details.",
"markdown": "Reports alternative usage of the `assertEquals` and `assertNotEquals` methods with `count` function as a parameter\n\n\nSee [Usage of the assertCount](https://phpunit.readthedocs.io/en/stable/assertions.html#assertcount) for details.\n\n\nSee [Usage of the assertSameSize](https://hotexamples.com/examples/-/PHPUnit_Framework_Assert/assertSameSize/php-phpunit_framework_assert-assertsamesize-method-examples.html) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertCountInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryParenthesesInspection",
"shortDescription": {
"text": "Unnecessary parentheses"
},
"fullDescription": {
"text": "Reports the expressions containing redundant parenthesis, which can be safely removed.",
"markdown": "Reports the expressions containing redundant parenthesis, which can be safely removed."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryParenthesesInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIfCanBeMergedWithSequentialConditionInspection",
"shortDescription": {
"text": "'if' can be merged with subsequent condition"
},
"fullDescription": {
"text": "Reports the 'if' statements that are followed by 'elseif' or other 'if' statements having the same bodies. Such statements can be merged together.",
"markdown": "Reports the `if` statements that are followed by `elseif` or other `if` statements having the same bodies. Such statements can be merged together."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIfCanBeMergedWithSequentialConditionInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayModificationWillNotHaveEffectInspection",
"shortDescription": {
"text": "Modification of the array returned from function by value won't have any effect"
},
"fullDescription": {
"text": "Reports call to a function that returns array by value, which makes the assignment operation non-working. Return by reference shall be used instead. For example: '<?php\nclass A {\n private $values = [];\n public function getValues() {\n return $this->values;\n }\n}\n$config = new A();\n$config->getValues()['a'] = 'a';'",
"markdown": "Reports call to a function that returns array by value, which makes the assignment operation non-working. Return by reference shall be used instead.\n\n**For example:**\n\n\n <?php\n class A {\n private $values = [];\n public function getValues() {\n return $this->values;\n }\n }\n $config = new A();\n $config->getValues()['a'] = 'a';\n"
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayModificationWillNotHaveEffectInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConstructorStyleInspection",
"shortDescription": {
"text": "Old style constructor"
},
"fullDescription": {
"text": "Reports old-style constructor declarations ('ClassName()') and suggests replacing them with new-style constructors ('__construct()'). Prior to PHP 8.0, old-style constructor syntax used in the classes in the global namespace is treated as deprecated and will result in an 'E_DEPRECATED' error. If both a '__construct()' and a 'ClassName()' method are defined, '__construct()' will be called. In namespaced classes, or any classes as of PHP 8.0, a 'ClassName()' method never has any special meaning and will never be called as a constructor. As a result, the inspection does not report such cases if the PHP language level is set to 8.0 or later. See Constructors and destructors (php.net) for details.",
"markdown": "Reports old-style constructor declarations (`ClassName()`) and suggests replacing them with new-style constructors (`__construct()`).\n\n\nPrior to PHP 8.0, old-style constructor syntax used in the classes in the global namespace is treated as deprecated and will result in an `E_DEPRECATED` error. If both a `__construct()` and a `ClassName()` method are defined, `__construct()` will be called.\n\nIn namespaced classes, or any classes as of PHP 8.0, a `ClassName()` method never has any special meaning and will never be called as a constructor. As a result, the inspection does not report such cases if the PHP language level is set to 8.0 or later.\n\n\nSee [Constructors and destructors (php.net)](https://www.php.net/manual/en/language.oop5.decon.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpConstructorStyleInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNonStrictObjectEqualityInspection",
"shortDescription": {
"text": "Non-strict object equality"
},
"fullDescription": {
"text": "Reports the usages of the comparison operator ('==') for comparing object variables. Object variables are compared as follows: When using the comparison operator ('=='), two object instances are considered equal if they have the same attributes and values (values are compared with '=='), and are instances of the same class. When using the identity operator ('==='), object variables are considered identical if and only if they refer to the same instance of the same class. See Comparing Objects (php.net) for details.",
"markdown": "Reports the usages of the comparison operator (`==`) for comparing object variables.\n\n\nObject variables are compared as follows:\n\n* When using the comparison operator (`==`), two object instances are considered equal if they have the same attributes and values (values are compared with `==`), and are instances of the same class.\n* When using the identity operator (`===`), object variables are considered identical if and only if they refer to the same instance of the same class.\n\n\nSee [Comparing Objects (php.net)](http://www.php.net/manual/en/language.oop5.object-comparison.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpNonStrictObjectEqualityInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUsageOfSilenceOperatorInspection",
"shortDescription": {
"text": "Usage of a silence operator"
},
"fullDescription": {
"text": "Reports the usages of the silence operator ('@'), which is highly discouraged. See Error Control Operators (php.net) for details.",
"markdown": "Reports the usages of the silence operator (`@`), which is highly discouraged.\n\nSee [Error Control Operators (php.net)](https://www.php.net/manual/en/language.operators.errorcontrol.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUsageOfSilenceOperatorInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedVariableInspection",
"shortDescription": {
"text": "Undefined variable"
},
"fullDescription": {
"text": "Produces two types of warnings: Undefined variable: the variable's definition is not found in the project files, configured include paths, or among the PHP predefined variables. Variable might have not been defined: there are one or more paths to reach the line with the variable usage without defining it. Use the options below to customize the inspection: Report that variable is probably undefined: clear the checkbox to disable the Variable might have not been defined warnings. Enable inspection in global space: by default, the inspection is enabled for global space. Clear the checkbox to only report undefined variables from functions' local scope. Search for variable's definition outside the current file: if selected, the IDE reports a global variable as undefined only in case there are no 'include' or 'require' statements in the current file and the variable's definition cannot be found in the project. Note that the IDE does not examine the actual content of included files but only checks the presence of 'include' or 'require' statements. Otherwise, if not selected, the IDE searches for the variable's definition only in the current file and ignores the 'include' or 'require' statements if any.",
"markdown": "Produces two types of warnings:\n\n* *Undefined variable*: the variable's definition is not found in the project files, configured include paths, or among the PHP predefined variables.\n* *Variable might have not been defined*: there are one or more paths to reach the line with the variable usage without defining it.\n\n\nUse the options below to customize the inspection:\n\n* **Report that variable is probably undefined** : clear the checkbox to disable the *Variable might have not been defined* warnings.\n* **Enable inspection in global space**: by default, the inspection is enabled for global space. Clear the checkbox to only report undefined variables from functions' local scope.\n*\n **Search for variable's definition outside the current file** : if selected, the IDE reports a global variable as undefined only in case there are no `include` or `require` statements in the current file and the variable's definition cannot be found in the project. Note that the IDE does not examine the actual content of included files but only checks the presence of `include` or `require` statements.\n\n\n Otherwise, if not selected, the IDE searches for the variable's definition only in the current file and ignores the `include` or `require` statements if any."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpUndefinedVariableInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpShortOpenTagInspection",
"shortDescription": {
"text": "Short open tag usage"
},
"fullDescription": {
"text": "Reports short PHP opening tag '<?' usages. Since short tags can be disabled in the PHP interpreter configuration, using them may lead to code compatibility issues. See PHP tags (php.net) for details.",
"markdown": "Reports short PHP opening tag `<?` usages. Since short tags can be disabled in the PHP interpreter configuration, using them may lead to code compatibility issues.\n\n\nSee [PHP tags (php.net)](https://www.php.net/manual/en/language.basic-syntax.phptags.php#language.basic-syntax.phptags) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpShortOpenTagInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIntRangesMismatchInspection",
"shortDescription": {
"text": "Number ranges mismatch"
},
"fullDescription": {
"text": "Reports the assignments and return statements whose arguments do not match the expected ranges specified via 'int<min, max>' PHPDoc syntax.",
"markdown": "Reports the assignments and return statements whose arguments do not match the expected ranges specified via `int<min, max>` PHPDoc syntax."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpIntRangesMismatchInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpReturnDocTypeMismatchInspection",
"shortDescription": {
"text": "Return type in PHPDoc comment does not match the actual return type"
},
"fullDescription": {
"text": "Reports the return types in PHPDoc comments that do not match the actual return type of a function.",
"markdown": "Reports the return types in PHPDoc comments that do not match the actual return type of a function."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpReturnDocTypeMismatchInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpElementIsNotAvailableInCurrentPhpVersionInspection",
"shortDescription": {
"text": "Element is not available in configured PHP version"
},
"fullDescription": {
"text": "Reports the usages of entities which were introduced in PHP version later than configured one.",
"markdown": "Reports the usages of entities which were introduced in PHP version later than configured one."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpElementIsNotAvailableInCurrentPhpVersionInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFieldCanBePromotedInspection",
"shortDescription": {
"text": "Property can be promoted"
},
"fullDescription": {
"text": "Reports the properties that can be replaced with promoted versions. See Constructor Property Promotion (php.net) for details.",
"markdown": "Reports the properties that can be replaced with promoted versions.\n\n\nSee [Constructor Property Promotion (php.net)](https://wiki.php.net/rfc/constructor_promotion) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpFieldCanBePromotedInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPrivateFieldCanBeLocalVariableInspection",
"shortDescription": {
"text": "Private property can be local"
},
"fullDescription": {
"text": "Reports the private properties that are used only in a single method. Such properties can be replaced with local variables.",
"markdown": "Reports the private properties that are used only in a single method. Such properties can be replaced with local variables."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPrivateFieldCanBeLocalVariableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTypedPropertyMightBeUninitializedInspection",
"shortDescription": {
"text": "Typed property might be uninitialized"
},
"fullDescription": {
"text": "Reports the attempts to read from an uninitialized typed property. Such attempts will result in 'TypeError'. Typed properties should be initialized in any of the following ways: by a default value in the constructor by the '__get()' magic getter in-place, at the moment of usage See Uninitialized and Unset Properties (php.net) for details.",
"markdown": "Reports the attempts to read from an uninitialized typed property. Such attempts will result in `TypeError`.\n\n\nTyped properties should be initialized in any of the following ways:\n\n* by a default value\n* in the constructor\n* by the `__get()` magic getter\n* in-place, at the moment of usage\n\n\nSee [Uninitialized and Unset Properties (php.net)](https://wiki.php.net/rfc/typed_properties_v2#uninitialized_and_unset_properties) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpTypedPropertyMightBeUninitializedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingParamTypeInspection",
"shortDescription": {
"text": "Missing parameter's type declaration"
},
"fullDescription": {
"text": "Reports the parameters that have no type declaration specified.",
"markdown": "Reports the parameters that have no type declaration specified."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingParamTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryFullyQualifiedNameInspection",
"shortDescription": {
"text": "Unnecessary fully qualified name"
},
"fullDescription": {
"text": "Reports the usages of fully qualified class names, which can be shortened without adding the 'use' statement.",
"markdown": "Reports the usages of fully qualified class names, which can be shortened without adding the `use` statement."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryFullyQualifiedNameInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingParentCallCommonInspection",
"shortDescription": {
"text": "Missing parent call for method"
},
"fullDescription": {
"text": "Reports the methods that do not call their parent method.",
"markdown": "Reports the methods that do not call their parent method."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingParentCallCommonInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMixedReturnTypeCanBeReducedInspection",
"shortDescription": {
"text": "'mixed' return type can be narrowed"
},
"fullDescription": {
"text": "Reports 'mixed' return types that can be narrowed down to more concrete types.",
"markdown": "Reports 'mixed' return types that can be narrowed down to more concrete types."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMixedReturnTypeCanBeReducedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTraditionalSyntaxArrayLiteralInspection",
"shortDescription": {
"text": "Traditional syntax array literal detected"
},
"fullDescription": {
"text": "Reports traditional array syntax ('array()') usages in array literals and suggests replacing them with short array syntax ('[]').",
"markdown": "Reports traditional array syntax (`array()`) usages in array literals and suggests replacing them with short array syntax (`[]`)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpTraditionalSyntaxArrayLiteralInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConditionCheckedByNextConditionInspection",
"shortDescription": {
"text": "Condition inside logical expression checked by subsequent condition"
},
"fullDescription": {
"text": "Reports the conditions inside logical binary expressions that are covered by subsequent conditions and are therefore redundant.",
"markdown": "Reports the conditions inside logical binary expressions that are covered by subsequent conditions and are therefore redundant."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpConditionCheckedByNextConditionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInconsistentReturnPointsInspection",
"shortDescription": {
"text": "Inconsistent return points"
},
"fullDescription": {
"text": "Reports inconsistencies in function/method exit points. The following types of inconsistencies are reported: The function/method contains the 'return' statements both with and without arguments. The function/method may return a value or otherwise end its execution without returning anything. Technically these are not errors, but practically they usually indicate a programming mistake.",
"markdown": "Reports inconsistencies in function/method exit points.\n\n\nThe following types of inconsistencies are reported:\n\n* The function/method contains the `return` statements both with and without arguments.\n* The function/method may return a value or otherwise end its execution without returning anything.\n\n\nTechnically these are not errors, but practically they usually indicate a programming mistake."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpInconsistentReturnPointsInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNoReturnAttributeCanBeAddedInspection",
"shortDescription": {
"text": "NoReturn attribute can be added"
},
"fullDescription": {
"text": "Reports function without '#[NoReturn]' that are always halting their execution by calling other exitPoint functions attribute.",
"markdown": "Reports function without `#[NoReturn]` that are always halting their execution by calling other exitPoint functions attribute."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpNoReturnAttributeCanBeAddedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConditionCanBeReplacedWithMinMaxCallInspection",
"shortDescription": {
"text": "Condition can be replaced with 'min()'/'max()' call"
},
"fullDescription": {
"text": "Reports the conditions that perform manual min/max calculation instead of calling 'min'/'max' functions.",
"markdown": "Reports the conditions that perform manual min/max calculation instead of calling `min`/`max` functions."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpConditionCanBeReplacedWithMinMaxCallInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInapplicableAttributeTargetDeclarationInspection",
"shortDescription": {
"text": "Non-applicable attribute target declaration"
},
"fullDescription": {
"text": "Reports the attributes that do not have the appropriate 'Attribute::TARGET_*' flag in their arguments declaration. See Attributes (php.net) for details.",
"markdown": "Reports the attributes that do not have the appropriate `Attribute::TARGET_*` flag in their arguments declaration.\n\n\nSee [Attributes (php.net)](https://wiki.php.net/rfc/attributes_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpInapplicableAttributeTargetDeclarationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingParentCallMagicInspection",
"shortDescription": {
"text": "Missing parent call for magic methods"
},
"fullDescription": {
"text": "Reports the magic methods that do not call their parent magic method.",
"markdown": "Reports the magic methods that do not call their parent magic method."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingParentCallMagicInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpGotoIntoLoopInspection",
"shortDescription": {
"text": "Goto into loop statement"
},
"fullDescription": {
"text": "Reports the 'goto' labels that are located inside loops or 'switch' statements. See goto (php.net) for details.",
"markdown": "Reports the `goto` labels that are located inside loops or `switch` statements.\n\n\nSee [goto (php.net)](https://www.php.net/manual/en/control-structures.goto.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpGotoIntoLoopInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMatchExpressionCanBeReplacedWithTernaryInspection",
"shortDescription": {
"text": "'match' expression can be replace with ternary expression"
},
"fullDescription": {
"text": "Reports the 'match' expressions containing a default arm and a single non-default arm. Such 'match' expressions can be replaced with ternary expressions. See Match expression (php.net) for details.",
"markdown": "Reports the `match` expressions containing a default arm and a single non-default arm. Such `match` expressions can be replaced with ternary expressions.\n\n\nSee [Match expression (php.net)](https://wiki.php.net/rfc/match_expression_v2) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMatchExpressionCanBeReplacedWithTernaryInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedStdLibCallInspection",
"shortDescription": {
"text": "Deprecated Standard Library call"
},
"fullDescription": {
"text": "Reports the calls to Standard PHP Library functions that are deprecated starting from PHP 8.1. The following calls are reported: 'key()', 'current()', 'next()', 'prev()', and 'reset()' calls with objects as arguments. 'mb_check_encoding()' calls without arguments. 'get_class()', 'get_parent_class()' and 'get_called_class()' calls without arguments. 'IntlCalendar::roll()' calls with a Boolean passed as the '$value' argument. 'ctype_*()' calls with non-string arguments. See PHP RFC: Deprecations for PHP 8.1 for details.",
"markdown": "Reports the calls to Standard PHP Library functions that are deprecated starting from PHP 8.1.\n\n\nThe following calls are reported:\n\n* `key()`, `current()`, `next()`, `prev()`, and `reset()` calls with objects as arguments.\n* `mb_check_encoding()` calls without arguments.\n* `get_class()`, `get_parent_class()` and `get_called_class()` calls without arguments.\n* `IntlCalendar::roll()` calls with a Boolean passed as the `$value` argument.\n* `ctype_*()` calls with non-string arguments.\n\n\nSee [PHP RFC: Deprecations for PHP 8.1](https://wiki.php.net/rfc/deprecations_php_8_1) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDeprecatedStdLibCallInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingBreakStatementInspection",
"shortDescription": {
"text": "Missing 'break' statement"
},
"fullDescription": {
"text": "Reports the 'case' clauses in 'switch' statements that do not end with a 'break' or a 'return' statement. If a 'case' clause does not end with 'break' or 'return', its execution can unintentionally fall through the next case.",
"markdown": "Reports the `case` clauses in `switch` statements that do not end with a `break` or a `return` statement.\n\n\nIf a `case` clause does not end with `break` or `return`, its execution can unintentionally fall through the next case."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingBreakStatementInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMethodMayBeStaticInspection",
"shortDescription": {
"text": "Method can be made 'static'"
},
"fullDescription": {
"text": "Reports the methods that don't use any instance references and thus may be converted to static methods.",
"markdown": "Reports the methods that don't use any instance references and thus may be converted to static methods."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMethodMayBeStaticInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpForeachArrayIsUsedAsValueInspection",
"shortDescription": {
"text": "Foreach array is used as value"
},
"fullDescription": {
"text": "Reports the variables that are used in a 'foreach' loop as both an array expression and an array's key or value (for example, 'foreach ($items as $items) {}'). Commonly, this is the result of a typing error.",
"markdown": "Reports the variables that are used in a `foreach` loop as both an array expression and an array's key or value (for example, `foreach ($items as $items) {}`).\n\n\nCommonly, this is the result of a typing error."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpForeachArrayIsUsedAsValueInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpToStringMayProduceExceptionInspection",
"shortDescription": {
"text": "'__toString' may throw an exception"
},
"fullDescription": {
"text": "Reports the usages of '__toString' that may throw an exception, which is not allowed for PHP language level lower than 7.4.",
"markdown": "Reports the usages of `__toString` that may throw an exception, which is not allowed for PHP language level lower than 7.4."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpToStringMayProduceExceptionInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedDollarBraceStringInterpolationInspection",
"shortDescription": {
"text": "Deprecated '${' string interpolation"
},
"fullDescription": {
"text": "Reports '${var}' and '${expr}' interpolations in strings. Such interpolations are deprecated starting from PHP 8.2. See Deprecate ${} string interpolation (php.net) for details.",
"markdown": "Reports `${var}` and `${expr}` interpolations in strings. Such interpolations are deprecated starting from PHP 8.2.\n\n\nSee [Deprecate ${} string interpolation (php.net)](https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDeprecatedDollarBraceStringInterpolationInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSeparateElseIfInspection",
"shortDescription": {
"text": "Else if"
},
"fullDescription": {
"text": "Reports the usages of the 'else if' constructs specified in two words. According to PSR-12, the keyword 'elseif' SHOULD be used instead of 'else if' so that all control keywords look like single words. See PSR-12: Extended Coding Style (php-fig.org) for details.",
"markdown": "Reports the usages of the `else if` constructs specified in two words.\n\nAccording to PSR-12, the keyword `elseif` SHOULD be used instead of `else if` so that all control keywords look like single words.\n\n\nSee [PSR-12: Extended Coding Style (php-fig.org)](https://www.php-fig.org/psr/psr-12/#51-if-elseif-else) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpSeparateElseIfInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedFunctionInspection",
"shortDescription": {
"text": "Undefined function"
},
"fullDescription": {
"text": "Reports the references to functions that are not defined in the project files, configured include paths, or among the PHP predefined functions.",
"markdown": "Reports the references to functions that are not defined in the project files, configured include paths, or among the PHP predefined functions."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedFunctionInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicateArrayKeysInspection",
"shortDescription": {
"text": "Duplicate array keys"
},
"fullDescription": {
"text": "Reports duplicate keys in array declarations. If multiple elements in the array declaration use the same key, only the last one will be used, and all others will be overwritten.",
"markdown": "Reports duplicate keys in array declarations.\n\nIf multiple elements in the array declaration use the same key, only the last one will be used, and all others will be overwritten."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDuplicateArrayKeysInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitDeprecatedExpectExceptionInspection",
"shortDescription": {
"text": "Deprecated expectException usage"
},
"fullDescription": {
"text": "Reports deprecated usages of 'expectException()'. Support for using the 'expectException()' method with '\\PHPUnit\\Framework\\Error\\Deprecated', '\\PHPUnit\\Framework\\Error\\Error', '\\PHPUnit\\Framework\\Error\\Notice', and '\\PHPUnit\\Framework\\Error\\Warning' is deprecated and will be removed in PHPUnit 10. Instead, the 'expectDeprecation()', 'expectError()', 'expectNotice()', and 'expectWarning()' methods should be used. See Testing PHP Errors, Warnings, and Notices (phpunit.readthedocs.io) for details.",
"markdown": "Reports deprecated usages of `expectException()`.\n\n\nSupport for using the `expectException()` method with\n`\\PHPUnit\\Framework\\Error\\Deprecated`,\n`\\PHPUnit\\Framework\\Error\\Error`,\n`\\PHPUnit\\Framework\\Error\\Notice`, and\n`\\PHPUnit\\Framework\\Error\\Warning` is deprecated and will be removed in PHPUnit 10.\n\n\nInstead, the `expectDeprecation()`, `expectError()`, `expectNotice()`, and\n`expectWarning()` methods should be used.\n\n\nSee [Testing PHP Errors, Warnings, and Notices (phpunit.readthedocs.io)](https://phpunit.readthedocs.io/en/stable/writing-tests-for-phpunit.html#testing-php-errors-warnings-and-notices) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitDeprecatedExpectExceptionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitTestFailedLineInspection",
"shortDescription": {
"text": "Failed line in test"
},
"fullDescription": {
"text": "Reports failed method calls or assertions in tests. It helps detect the failed line in code faster and start debugging it immediately. Example: 'function test() {\n $this->assertEquals(1,2); //highlighted\n }'",
"markdown": "Reports failed method calls or assertions in tests. It helps detect the failed line in code faster and start debugging it immediately.\n\n**Example:**\n\n\n function test() {\n $this->assertEquals(1,2); //highlighted\n }\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUnitTestFailedLineInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMatchCanBeReplacedWithSwitchStatementInspection",
"shortDescription": {
"text": "'match' can be replaced with 'switch' statement"
},
"fullDescription": {
"text": "Reports the 'match' expressions that can be replaced with 'switch' statements. Note that 'match' expressions use strict type comparison, while 'switch' statements rely on loose comparison. As a result, the expression semantics may change after replacement. See match (php.net) and switch (php.net) for details.",
"markdown": "Reports the `match` expressions that can be replaced with `switch` statements.\n\n\nNote that `match` expressions use strict type comparison, while `switch` statements rely on loose comparison. As a\nresult, the expression semantics may change after replacement.\n\n\nSee [match (php.net)](https://www.php.net/manual/en/control-structures.match.php) and [switch (php.net)](https://www.php.net/manual/en/control-structures.switch.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMatchCanBeReplacedWithSwitchStatementInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSecondWriteToReadonlyPropertyInspection",
"shortDescription": {
"text": "Second write to 'readonly' property"
},
"fullDescription": {
"text": "Reports reassignments of 'readonly' properties. Such properties cannot be modified after initialization. See Readonly properties (php.net) for details.",
"markdown": "Reports reassignments of `readonly` properties. Such properties cannot be modified after initialization.\n\n\nSee [Readonly properties (php.net)](https://wiki.php.net/rfc/readonly_properties_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpSecondWriteToReadonlyPropertyInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpEnforceDocCommentInspection",
"shortDescription": {
"text": "Enforce PHPDoc comment"
},
"fullDescription": {
"text": "Reports the elements without a PHPDoc comment or with a PHPDoc comment only containing the '@noinspection' tag. You can use Missing PHPDoc Comment inspection to report only non-fully typed elements.",
"markdown": "Reports the elements without a PHPDoc comment or with a PHPDoc comment only containing the `@noinspection` tag.\n\nYou can use *Missing PHPDoc Comment* inspection to report only non-fully typed elements."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpEnforceDocCommentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc/Code style",
"index": 16,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDocFinalChecksInspection",
"shortDescription": {
"text": "Overriding method/extending class marked as '@final'"
},
"fullDescription": {
"text": "Reports override of method or extending of class with '@final' in the PHPDoc.",
"markdown": "Reports override of method or extending of class with `@final` in the PHPDoc."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpDocFinalChecksInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPureAttributeCanBeAddedInspection",
"shortDescription": {
"text": "'#[Pure]' attribute can be added"
},
"fullDescription": {
"text": "Reports the functions that are non-trivially pure. Such functions have other functions calls in their body, but all such calls do not produce any side effects.",
"markdown": "Reports the functions that are non-trivially pure. Such functions have other functions calls in their body, but all such calls do not produce any side effects."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPureAttributeCanBeAddedInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpVarTagWithoutVariableNameInspection",
"shortDescription": {
"text": "Type tag without variable name"
},
"fullDescription": {
"text": "Reports the PHPDoc type tags ('@var','@type','@param') that are provided without a specified variable/parameter name. Such tags do not provide any type information for expressions and should be either deleted or expanded to include a concrete variable name for which the type is provided.",
"markdown": "Reports the PHPDoc type tags (`@var`,`@type`,`@param`) that are provided without a specified variable/parameter name. Such tags do not provide any type information for expressions and should be either deleted or expanded to include a concrete variable name for which the type is provided."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpVarTagWithoutVariableNameInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpImmutablePropertyIsWrittenInspection",
"shortDescription": {
"text": "Immutable property written in invalid scope"
},
"fullDescription": {
"text": "Highlights write access references to properties, for which the write access scope declared via '#[Immutable]' is stricter than the reference scope.",
"markdown": "Highlights write access references to properties, for which the write access scope declared via `#[Immutable]` is stricter than the reference scope."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpImmutablePropertyIsWrittenInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedAssertDeclarationInspection",
"shortDescription": {
"text": "Deprecated 'assert()' function declaration"
},
"fullDescription": {
"text": "Reports the 'assert()' function declarations. Declaring the 'assert()' function is global namespace is forbidden. Starting from PHP 7.3, declaring the 'assert()' function in non-global namespace is deprecated. See assert (php.net) for details.",
"markdown": "Reports the `assert()` function declarations.\n\n* Declaring the `assert()` function is global namespace is forbidden.\n* Starting from PHP 7.3, declaring the `assert()` function in non-global namespace is deprecated.\n\n\nSee [assert (php.net)](https://www.php.net/manual/en/function.assert.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpDeprecatedAssertDeclarationInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAutovivificationOnFalseValuesInspection",
"shortDescription": {
"text": "Automatic conversion of 'false' to array is deprecated"
},
"fullDescription": {
"text": "Reports automatic conversions of 'false' values to arrays. Such expressions are deprecated starting from PHP 8.1. See Deprecate autovivification on false for details.",
"markdown": "Reports automatic conversions of `false` values to arrays. Such expressions are deprecated starting from PHP 8.1.\n\n\nSee [Deprecate autovivification on false](https://wiki.php.net/rfc/autovivification_false) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpAutovivificationOnFalseValuesInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDocSignatureIsNotCompleteInspection",
"shortDescription": {
"text": "PHPDoc comment signature is not complete"
},
"fullDescription": {
"text": "Reports the PHPDoc comments that contain at least one '@param' or '@return' tag but are missing some of the '@param' or '@return' tags for parameters or return types specified in the function/method declaration.",
"markdown": "Reports the PHPDoc comments that contain at least one `@param` or `@return` tag but are missing some of the `@param` or `@return` tags for parameters or return types specified in the function/method declaration."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDocSignatureIsNotCompleteInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc/Code style",
"index": 16,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSignatureMismatchDuringInheritanceInspection",
"shortDescription": {
"text": "Declaration of overridden method should be compatible with parent class"
},
"fullDescription": {
"text": "Reports the overridden methods declarations that are not compatible with the parent class. The inspection is enabled only for the PHP language level lower than 8.0.",
"markdown": "Reports the overridden methods declarations that are not compatible with the parent class. The inspection is enabled only for the PHP language level lower than 8.0."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpSignatureMismatchDuringInheritanceInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHP strict standards",
"index": 86,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTraitUsageOutsideUseInspection",
"shortDescription": {
"text": "Trait usage is not allowed"
},
"fullDescription": {
"text": "Reports the class references that are resolved to traits but are specified outside 'use' statements. Such usages are most probably the result of a programming mistake, since traits cannot be instantiated and any 'instanceof'-like behaviour is not supported for traits by design. See Traits (php.net) for details.",
"markdown": "Reports the class references that are resolved to traits but are specified outside `use` statements. Such usages are most probably the result of a programming mistake, since traits cannot be instantiated and any `instanceof`-like behaviour is not supported for traits by design.\n\n\nSee [Traits (php.net)](https://www.php.net/manual/en/language.oop5.traits.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpTraitUsageOutsideUseInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpStrictTypeCheckingInspection",
"shortDescription": {
"text": "Strict type checking rules violation"
},
"fullDescription": {
"text": "Reports violations of the strict type checking rules. In strict mode, only the variables exactly matching the declaration types are accepted. Strict type-checking mode can be enabled: Per file, if the 'declare(strict_types=1)' directive is specified. The directive must be the first statement in a file, block mode is explicitly disallowed. For all files, if the Enable for all files inspection option is enabled. See Strict typing (php.net) for details.",
"markdown": "Reports violations of the strict type checking rules.\n\n\nIn strict mode, only the variables exactly matching the declaration types are accepted. Strict type-checking mode can be enabled:\n\n* Per file, if the `declare(strict_types=1)` directive is specified. The directive must be the first statement in a file, block mode is explicitly disallowed.\n* For all files, if the **Enable for all files** inspection option is enabled.\n\n\nSee [Strict typing (php.net)](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpStrictTypeCheckingInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIfWithCommonPartsInspection",
"shortDescription": {
"text": "'if' with common parts"
},
"fullDescription": {
"text": "Reports the 'if' statements with duplicated common parts.",
"markdown": "Reports the `if` statements with duplicated common parts."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIfWithCommonPartsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpStaticAsDynamicMethodCallInspection",
"shortDescription": {
"text": "Static method called as dynamic"
},
"fullDescription": {
"text": "Reports dynamic calls to static class methods. If the target has the magic method '__call', a separate inspection severity and highlighting level can be set.",
"markdown": "Reports dynamic calls to static class methods.\n\nIf the target has the magic method `__call`, a separate inspection severity and highlighting level can be set."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpStaticAsDynamicMethodCallInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDangerousArrayInitializationInspection",
"shortDescription": {
"text": "Dangerous array initialization"
},
"fullDescription": {
"text": "Reports dangerous array initializations (such as '$arr[] = value'). This practice is discouraged because if '$arr' already contains some value (for example, a string from a request variable), then this value will stay in place and '[]' may actually stand for string access operator. It is always preferable to initialize a variable by direct assignment. See Creating/modifying with square bracket syntax (php.net) for details.",
"markdown": "Reports dangerous array initializations (such as `$arr[] = value`).\n\n\nThis practice is discouraged because if `$arr` already contains some value (for example, a string from a request variable), then this value will stay in place and `[]` may actually stand for string access operator. It is always preferable to initialize a variable by direct assignment.\n\nSee [Creating/modifying with square bracket syntax (php.net)](https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax.modifying) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDangerousArrayInitializationInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedImplodeUsageInspection",
"shortDescription": {
"text": "Deprecated 'implode/join' usage"
},
"fullDescription": {
"text": "Reports deprecated usage of the 'implode' and 'join' functions. Starting from PHP 7.4, using 'implode' and 'join' with an array as the first argument and a string as the second argument is deprecated. See Deprecations for PHP 7.4 (php.net) for details.",
"markdown": "Reports deprecated usage of the `implode` and `join` functions.\n\nStarting from PHP 7.4, using `implode` and `join` with an array as the first argument and a string as the second argument is deprecated.\n\n\nSee [Deprecations for PHP 7.4 (php.net)](https://wiki.php.net/rfc/deprecations_php_7_4#implode_parameter_order_mix) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDeprecatedImplodeUsageInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpOverridingMethodVisibilityInspection",
"shortDescription": {
"text": "Method visibility should not be overridden"
},
"fullDescription": {
"text": "Checks that the methods don't override visibility. Overriding a 'protected' method with a 'public' method in a child class makes this method accessible from everywhere. This violates the encapsulation principle and is considered bad practice. See Method Visibility (php.net) for details.",
"markdown": "Checks that the methods don't override visibility.\n\n\nOverriding a `protected` method with a `public` method in a child class makes this method accessible from everywhere.\nThis violates the encapsulation principle and is considered bad practice.\n\n\nSee [Method Visibility (php.net)](https://www.php.net/manual/en/language.oop5.visibility.php#language.oop5.visiblity-methods) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpOverridingMethodVisibilityInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMockeryInvalidMockingMethodInspection",
"shortDescription": {
"text": "Invalid Mockery mocking target"
},
"fullDescription": {
"text": "Reports the methods and classes that are incorrectly mocked in Mockery tests. The following entities are reported: 'private' methods 'protected' methods without appropriate '\\Mockery\\Mock::shouldAllowMockingProtectedMethods' call",
"markdown": "Reports the methods and classes that are incorrectly mocked in Mockery tests.\n\n\nThe following entities are reported:\n\n* `private` methods\n* `protected` methods without appropriate `\\Mockery\\Mock::shouldAllowMockingProtectedMethods` call"
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "PhpMockeryInvalidMockingMethodInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpForeachOverSingleElementArrayLiteralInspection",
"shortDescription": {
"text": "Foreach over array literal with single element"
},
"fullDescription": {
"text": "Reports the 'foreach' statements that iterate over an array literal containing a single element.",
"markdown": "Reports the `foreach` statements that iterate over an array literal containing a single element."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpForeachOverSingleElementArrayLiteralInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClassNamingConventionInspection",
"shortDescription": {
"text": "Class name is not following coding convention"
},
"fullDescription": {
"text": "Reports the classes' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for classes. Use the inspection options to specify minimum/maximum length and the regular expression expected for classes' names. To ignore the names' length, specify 0. To learn more about regular expressions, refer to the Quick Start guide (regular-expressions.info).",
"markdown": "Reports the classes' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for classes.\n\n\nUse the inspection options to specify minimum/maximum length and the regular expression expected for classes' names.\nTo ignore the names' length, specify **0**.\n\n\nTo learn more about regular expressions, refer to the [Quick Start guide (regular-expressions.info)](https://www.regular-expressions.info/quickstart.html)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpClassNamingConventionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Naming conventions",
"index": 6,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCoveredCharacterInClassInspection",
"shortDescription": {
"text": "Element in class is already covered"
},
"fullDescription": {
"text": "Reports the elements in regular expression character classes that are already covered by another element in the same class. Such elements are redundant and can be safely removed.",
"markdown": "Reports the elements in regular expression character classes that are already covered by another element in the same class. Such elements are redundant and can be safely removed."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCoveredCharacterInClassInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Regular expressions",
"index": 87,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpVariableIsUsedOnlyInClosureInspection",
"shortDescription": {
"text": "Variable is only used inside closure"
},
"fullDescription": {
"text": "Reports variables in closures' 'use' list that are only used inside closure.",
"markdown": "Reports variables in closures' `use` list that are only used inside closure."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpVariableIsUsedOnlyInClosureInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLongTypeFormInspection",
"shortDescription": {
"text": "Short form of type keywords"
},
"fullDescription": {
"text": "Reports usages of long form type keywords. According to PSR-12, short form of type keywords MUST be used, that is 'bool' instead of 'boolean', 'int' instead of 'integer', and so on. See Keywords and Types (php-fig.org) for details.",
"markdown": "Reports usages of long form type keywords.\n\n\nAccording to PSR-12, short form of type keywords MUST be used, that is `bool` instead of `boolean`, `int` instead of `integer`, and so on.\n\n\nSee [Keywords and Types (php-fig.org)](https://www.php-fig.org/psr/psr-12/#25-keywords-and-types) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLongTypeFormInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnreachableStatementInspection",
"shortDescription": {
"text": "Unreachable statement"
},
"fullDescription": {
"text": "Reports the statements that cannot be reached.",
"markdown": "Reports the statements that cannot be reached."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUnreachableStatementInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCSFixerValidationInspection",
"shortDescription": {
"text": "PHP CS Fixer validation"
},
"fullDescription": {
"text": "Reports coding style problems detected by PHP CS Fixer. The inspection requires PHP CS Fixer to be properly installed and set up in the IDE under Settings | PHP | Quality Tools | PHP CS Fixer. To learn more about installing PHP CS Fixer, see PHP-CS-Fixer installation (GitHub).",
"markdown": "Reports coding style problems detected by PHP CS Fixer.\n\n\nThe inspection requires PHP CS Fixer to be properly installed and set up in the IDE under\n[Settings \\| PHP \\| Quality Tools \\| PHP CS Fixer](settings://settings.php.quality.tools?CS%20Fixer).\n\n\nTo learn more about installing PHP CS Fixer, see [PHP-CS-Fixer installation (GitHub)](https://github.com/FriendsOfPHP/PHP-CS-Fixer#installation)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCSFixerValidationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Quality tools",
"index": 89,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClosureCanBeConvertedToShortArrowFunctionInspection",
"shortDescription": {
"text": "Closure can be converted to arrow function"
},
"fullDescription": {
"text": "Reports the anonymous functions that can be transformed to short arrow functions. Support for short arrow functions is available since PHP 7.4. See PHP RFC: Arrow Functions 2.0 (php.net) for details.",
"markdown": "Reports the anonymous functions that can be transformed to short arrow functions. Support for short arrow functions is available since PHP 7.4.\n\n\nSee [PHP RFC: Arrow Functions 2.0 (php.net)](https://wiki.php.net/rfc/arrow_functions_v2) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpClosureCanBeConvertedToShortArrowFunctionInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitDeprecatedCallsIn10VersionInspection",
"shortDescription": {
"text": "Method is deprecated in PHPUnit 10"
},
"fullDescription": {
"text": "Reports the calls to the PHPUnit assertion methods that are removed in PHPUnit 10.",
"markdown": "Reports the calls to the PHPUnit assertion methods that are removed in PHPUnit 10."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUnitDeprecatedCallsIn10VersionInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnhandledExceptionInspection",
"shortDescription": {
"text": "Unhandled exception"
},
"fullDescription": {
"text": "Reports the exceptions that are neither enclosed in a 'try-catch' block nor documented via the '@throws' tag.",
"markdown": "Reports the exceptions that are neither enclosed in a `try-catch` block nor documented via the `@throws` tag."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnhandledExceptionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Error handling",
"index": 94,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIncludeInspection",
"shortDescription": {
"text": "Unresolved include"
},
"fullDescription": {
"text": "Reports non-resolved 'include', 'include_once', 'require', and 'require_once' expressions.",
"markdown": "Reports non-resolved `include`, `include_once`, `require`, and `require_once` expressions."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIncludeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitUndefinedDataProviderInspection",
"shortDescription": {
"text": "Undefined PHPUnit data provider"
},
"fullDescription": {
"text": "Reports the references to functions/methods in the '@dataProvider' PHPDoc tag that are not resolved. Note that when resolving 'dataProvider', PHPUnit doesn't take 'use' statements into account.",
"markdown": "Reports the references to functions/methods in the `@dataProvider` PHPDoc tag that are not resolved.\n\nNote that when resolving `dataProvider`, PHPUnit doesn't take `use` statements into account."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUnitUndefinedDataProviderInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFieldAssignmentTypeMismatchInspection",
"shortDescription": {
"text": "Type mismatch in property assignment"
},
"fullDescription": {
"text": "Reports type violations in properties assignments.",
"markdown": "Reports type violations in properties assignments."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpFieldAssignmentTypeMismatchInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingParentConstructorInspection",
"shortDescription": {
"text": "Missing parent call for constructor"
},
"fullDescription": {
"text": "Reports the constructors that do not call their parent constructor.",
"markdown": "Reports the constructors that do not call their parent constructor."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpMissingParentConstructorInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertEqualsCanBeReplacedWithAssertTrueOrFalseInspection",
"shortDescription": {
"text": "Assertion can be replaced with 'assertTrue/assertFalse'"
},
"fullDescription": {
"text": "Reports the 'assertEquals()' calls with the 'true'/'false' arguments in PHPUnit tests. Such usages can be replaced with 'assertTrue()'/'assertFalse()' calls.",
"markdown": "Reports the `assertEquals()` calls with the `true`/`false` arguments in PHPUnit tests. Such usages can be replaced with `assertTrue()`/`assertFalse()` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertEqualsCanBeReplacedWithAssertTrueOrFalseInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDynamicAsStaticMethodCallInspection",
"shortDescription": {
"text": "Dynamic method called as static"
},
"fullDescription": {
"text": "Reports static calls to dynamic class methods. For classes having the magic method '__callStatic', a separate inspection severity and highlighting level can be set.",
"markdown": "Reports static calls to dynamic class methods.\n\nFor classes having the magic method `__callStatic`, a separate inspection severity and highlighting level can be set."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDynamicAsStaticMethodCallInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpReadonlyPropertyWrittenOutsideDeclarationScopeInspection",
"shortDescription": {
"text": "Write access to 'readonly' property outside of declaration scope"
},
"fullDescription": {
"text": "Reports the write accesses to 'readonly' properties that are made outside the declaration scope. A declaration scope effectively means non-static methods of the class in which a property is declared. See Readonly properties (php.net) for details.",
"markdown": "Reports the write accesses to `readonly` properties that are made outside the declaration scope. A declaration scope effectively means non-static methods of the class in which a property is declared.\n\n\nSee [Readonly properties (php.net)](https://wiki.php.net/rfc/readonly_properties_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpReadonlyPropertyWrittenOutsideDeclarationScopeInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFormatCallWithSingleArgumentInspection",
"shortDescription": {
"text": "Format function call with single argument"
},
"fullDescription": {
"text": "Reports the 'sprintf()' and 'vsprintf()' calls with a single argument. Such calls produce no effect and can be safely unwrapped, that is, replaced with the argument itself.",
"markdown": "Reports the `sprintf()` and `vsprintf()` calls with a single argument. Such calls produce no effect and can be safely unwrapped, that is, replaced with the argument itself."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpFormatCallWithSingleArgumentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayIsAlwaysEmptyInspection",
"shortDescription": {
"text": "Array is always empty at the point of access"
},
"fullDescription": {
"text": "Reports the iterated/accessed arrays that are known to be empty at the point of access.",
"markdown": "Reports the iterated/accessed arrays that are known to be empty at the point of access."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayIsAlwaysEmptyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIllegalArrayKeyTypeInspection",
"shortDescription": {
"text": "Illegal array key type"
},
"fullDescription": {
"text": "Reports the array keys that are of illegal type, such as objects or arrays. See Arrays (php.net) for details.",
"markdown": "Reports the array keys that are of illegal type, such as objects or arrays.\n\n\nSee [Arrays (php.net)](http://www.php.net/manual/en/language.types.array.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpIllegalArrayKeyTypeInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLoopNeverIteratesInspection",
"shortDescription": {
"text": "Loop does not iterate"
},
"fullDescription": {
"text": "Reports the loop statements whose bodies will execute at most once. The inspection does not report 'foreach' loops with a key or value used inside the loop body. Commonly, such loops are intended to perform an action only on their first iteration (for example, get the first element of an array).",
"markdown": "Reports the loop statements whose bodies will execute at most once.\n\n\nThe inspection does not report `foreach` loops with a key or value used inside the loop body. Commonly, such loops are intended to perform an action only on their first iteration (for example, get the first element of an array)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLoopNeverIteratesInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRegExpUnsupportedModifierInspection",
"shortDescription": {
"text": "Unsupported modifier"
},
"fullDescription": {
"text": "Reports the usages of the 'e' modifier in regular expression patterns. In PHP 7.0 and later, such usages are deprecated and will emit an 'E_WARNING'.",
"markdown": "Reports the usages of the `e` modifier in regular expression patterns. In PHP 7.0 and later, such usages are deprecated and will emit an `E_WARNING`."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpRegExpUnsupportedModifierInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Regular expressions",
"index": 87,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpVariableNamingConventionInspection",
"shortDescription": {
"text": "Variable name is not following coding convention"
},
"fullDescription": {
"text": "Reports the variables' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for variables. Use the inspection options to specify minimum/maximum length and the regular expression expected for variables' names. To ignore the names' length, specify 0. To learn more about regular expressions, refer to the Quick Start guide (regular-expressions.info).",
"markdown": "Reports the variables' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for variables.\n\n\nUse the inspection options to specify minimum/maximum length and the regular expression expected for variables' names.\nTo ignore the names' length, specify **0**.\n\n\nTo learn more about regular expressions, refer to the [Quick Start guide (regular-expressions.info)](https://www.regular-expressions.info/quickstart.html)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpVariableNamingConventionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Naming conventions",
"index": 6,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPassByRefInspection",
"shortDescription": {
"text": "Pass parameter by reference"
},
"fullDescription": {
"text": "Reports the arguments in a function/method call that cannot be passed by reference. Only variables and references returned from functions can be passed by reference. See Passing by Reference (php.net) for details.",
"markdown": "Reports the arguments in a function/method call that cannot be passed by reference.\n\n\nOnly variables and references returned from functions can be passed by reference. See [Passing by Reference (php.net)](https://www.php.net/manual/en/language.references.pass.php#language.references.pass) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpPassByRefInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpWrongStringConcatenationInspection",
"shortDescription": {
"text": "Wrong string concatenation"
},
"fullDescription": {
"text": "Reports the attempts to concatenate strings by using the '+' operator instead of the dot ('.') concatenation operator. Such attempts are most likely a programming mistake.",
"markdown": "Reports the attempts to concatenate strings by using the `+` operator instead of the dot (`.`) concatenation operator. Such attempts are most likely a programming mistake."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpWrongStringConcatenationInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNonCanonicalElementsOrderInspection",
"shortDescription": {
"text": "Non-canonical order of elements"
},
"fullDescription": {
"text": "Reports the PHPDoc tags that have elements listed in non-canonical order. For example, for such tags as '@property', '@param', or '@var', the inspection will report the usages of '[name] [\"Type\"]' instead of '[\"Type\"] [name]'.",
"markdown": "Reports the PHPDoc tags that have elements listed in non-canonical order.\n\nFor example, for such tags as `@property`, `@param`, or `@var`, the inspection will report the usages of `[name] [\"Type\"]` instead of `[\"Type\"] [name]`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNonCanonicalElementsOrderInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc/Code style",
"index": 16,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryLocalVariableInspection",
"shortDescription": {
"text": "Unnecessary local variable"
},
"fullDescription": {
"text": "Reports the local variables that are used in exit statements, such as 'throw', 'return', or 'yield', immediately after assignment.",
"markdown": "Reports the local variables that are used in exit statements, such as `throw`, `return`, or `yield`, immediately after assignment."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryLocalVariableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAbstractStaticMethodInspection",
"shortDescription": {
"text": "Static function should not be abstract"
},
"fullDescription": {
"text": "Reports the static methods that are declared as abstract.",
"markdown": "Reports the static methods that are declared as abstract."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpAbstractStaticMethodInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHP strict standards",
"index": 86,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTooLongMemberReferenceChainInspection",
"shortDescription": {
"text": "Member reference chain is too long to analyze"
},
"fullDescription": {
"text": "Reports method reference chains that are too long for IDE to analyze.",
"markdown": "Reports method reference chains that are too long for IDE to analyze."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpTooLongMemberReferenceChainInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInArrayCanBeReplacedWithComparisonInspection",
"shortDescription": {
"text": "'in_array' can be replaced with comparison"
},
"fullDescription": {
"text": "Reports the 'in_array()' calls that are provided with a single-element array as the '$haystack' argument. Such calls can be replaced with direct comparisons. See in_array (php.net) for details.",
"markdown": "Reports the `in_array()` calls that are provided with a single-element array as the `$haystack` argument. Such calls can be replaced with direct comparisons.\n\n\nSee [in_array (php.net)](https://www.php.net/manual/en/function.in-array.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpInArrayCanBeReplacedWithComparisonInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantTypeInUnionTypeInspection",
"shortDescription": {
"text": "Type declaration is redundant and could be simplified"
},
"fullDescription": {
"text": "Reports union type declarations that contain redundant types, for example, a union type that contains both the class alias and the original class. See Union Types RFC: Duplicate and redundant types (php.net) for details.",
"markdown": "Reports union type declarations that contain redundant types, for example, a union type that contains both the class alias and the original class.\n\n\nSee [Union Types RFC: Duplicate and redundant types (php.net)](https://wiki.php.net/rfc/union_types_v2#duplicate_and_redundant_types) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantTypeInUnionTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIllegalStringOffsetInspection",
"shortDescription": {
"text": "Illegal string offset"
},
"fullDescription": {
"text": "Reports the usages of non-'integer' offsets in string access expressions such as '$str[42]'. Starting from PHP 5.4, string offsets have to be either integers or integer-like strings. Since it's considered bad practice to use strings as a string offset, the inspection reports them, as well. See String access and modification by character (php.net) for details.",
"markdown": "Reports the usages of non-`integer` offsets in string access expressions such as `$str[42]`.\n\n\nStarting from PHP 5.4, string offsets have to be either integers or integer-like strings.\nSince it's considered bad practice to use strings as a string offset, the inspection reports them, as well.\n\nSee [String access and modification by character (php.net)](https://www.php.net/manual/en/language.types.string.php#language.types.string.substr) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpIllegalStringOffsetInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpModuloByOneInspection",
"shortDescription": {
"text": "Modulo operation with '1' as operand"
},
"fullDescription": {
"text": "Reports the modulo expressions '%' that always evaluate to '0' or '1'.",
"markdown": "Reports the modulo expressions `%` that always evaluate to `0` or `1`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpModuloByOneInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantAssignmentToPromotedFieldInspection",
"shortDescription": {
"text": "Redundant assignment to promoted property"
},
"fullDescription": {
"text": "Reports redundant assignments to class properties that duplicate automatic assignments performed through promoted constructor parameters. See Constructor Property Promotion (php.net) for details.",
"markdown": "Reports redundant assignments to class properties that duplicate automatic assignments performed through promoted constructor parameters.\n\n\nSee [Constructor Property Promotion (php.net)](https://wiki.php.net/rfc/constructor_promotion) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantAssignmentToPromotedFieldInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayPushWithOneElementInspection",
"shortDescription": {
"text": "'array_push()' with single element"
},
"fullDescription": {
"text": "Reports the 'array_push()' calls that are used to add a single element to an array. In such cases, it is recommended to use '$array[] =' instead, which adds no overhead of calling a function. See array_push (php.net) for details.",
"markdown": "Reports the `array_push()` calls that are used to add a single element to an array. In such cases, it is recommended to use `$array[] =` instead, which adds no overhead of calling a function.\n\n\nSee [array_push (php.net)](https://www.php.net/manual/en/function.array-push.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayPushWithOneElementInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMatchExpressionWithOnlyDefaultArmInspection",
"shortDescription": {
"text": "'match' expression has only default arm and should be simplified"
},
"fullDescription": {
"text": "Reports the 'match' expressions only containing a 'default' arm. Such expressions are redundant and should be simplified. See Match expression (php.net) for details.",
"markdown": "Reports the `match` expressions only containing a `default` arm. Such expressions are redundant and should be simplified.\n\n\nSee [Match expression (php.net)](https://wiki.php.net/rfc/match_expression_v2) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMatchExpressionWithOnlyDefaultArmInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNModifierCanBeReplacedWithNonCapturingGroupInspection",
"shortDescription": {
"text": "'n' modifier can be replaced with non-capturing groups"
},
"fullDescription": {
"text": "Reports 'n' PCRE modifier, that can be replaced with usage of non-capturing groups instead of capturing in regexp pattern.",
"markdown": "Reports `n` PCRE modifier, that can be replaced with usage of non-capturing groups instead of capturing in regexp pattern."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNModifierCanBeReplacedWithNonCapturingGroupInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantOptionalArgumentInspection",
"shortDescription": {
"text": "Redundant optional argument"
},
"fullDescription": {
"text": "Reports redundant arguments that match the corresponding default values for optional parameters.",
"markdown": "Reports redundant arguments that match the corresponding default values for optional parameters."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantOptionalArgumentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantReadonlyModifierInspection",
"shortDescription": {
"text": "'readonly' modifier is redundant"
},
"fullDescription": {
"text": "Reports 'readonly' modifiers applied to properties in read-only classes. Those modifiers are redundant since all properties in read-only classes are implicitly read-only. See Readonly classes RFC (php.net) for details.",
"markdown": "Reports `readonly` modifiers applied to properties in read-only classes. Those modifiers are redundant since all properties in read-only classes are implicitly read-only.\n\n\nSee [Readonly classes RFC (php.net)](https://wiki.php.net/rfc/readonly_classes#proposal) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantReadonlyModifierInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessarySpreadOperatorForFunctionCallArgumentInspection",
"shortDescription": {
"text": "Unnecessary spread operator for function call argument"
},
"fullDescription": {
"text": "Reports the usages of the spread operator ('...') on array literals in function call arguments that may be safely unwrapped.",
"markdown": "Reports the usages of the spread operator (`...`) on array literals in function call arguments that may be safely unwrapped."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessarySpreadOperatorForFunctionCallArgumentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpStrictComparisonWithOperandsOfDifferentTypesInspection",
"shortDescription": {
"text": "Strict comparison of operands with incompatible types"
},
"fullDescription": {
"text": "Reports the '===' or '!==' strict comparisons used on operands with incompatible types. See PHP type comparison tables (php.net) for details.",
"markdown": "Reports the `===` or `!==` strict comparisons used on operands with incompatible types.\n\n\nSee [PHP type comparison tables (php.net)](https://www.php.net/manual/en/types.comparisons.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpStrictComparisonWithOperandsOfDifferentTypesInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpExpectedValuesShouldBeUsedInspection",
"shortDescription": {
"text": "Expected values should be used"
},
"fullDescription": {
"text": "Reports the values in assignment and comparison expressions that should be replaced with one of the expected values (that is, the values specified via the '#[ExpectedValues]' attribute). See Attributes (php.net) for details.",
"markdown": "Reports the values in assignment and comparison expressions that should be replaced with one of the expected values (that is, the values specified via the `#[ExpectedValues]` attribute).\n\n\nSee [Attributes (php.net)](https://wiki.php.net/rfc/attributes_v2) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpExpectedValuesShouldBeUsedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNonCompoundUseInspection",
"shortDescription": {
"text": "Unnecessary statement use"
},
"fullDescription": {
"text": "Reports the 'use' statements that contain non-fully qualified class names and thus have no effect. The inspection only reports classes imports; functions and constants imports are not considered. See Using namespaces: Aliasing/Importing (php.net) for details.",
"markdown": "Reports the `use` statements that contain non-fully qualified class names and thus have no effect. The inspection only reports classes imports; functions and constants imports are not considered.\n\n\nSee [Using namespaces: Aliasing/Importing (php.net)](http://www.php.net/manual/en/language.namespaces.importing.php#language.namespaces.importing) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpNonCompoundUseInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInvalidInstanceofInspection",
"shortDescription": {
"text": "Argument of 'instanceof' should be only objects or strings"
},
"fullDescription": {
"text": "Reports arguments of 'instanceof' that are not objects or strings",
"markdown": "Reports arguments of 'instanceof' that are not objects or strings"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpInvalidInstanceofInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MessDetectorValidationInspection",
"shortDescription": {
"text": "PHP Mess Detector validation"
},
"fullDescription": {
"text": "Reports coding style problems detected by PHP Mess Detector. The inspection requires PHP Mess Detector to be properly installed and set up in the IDE under Settings | PHP | Quality Tools | Mess Detector. To learn more about installing PHP Mess Detector, see PHP Mess Detector installation (phpmd.org) for details. You can use a predefined set of rules or add your own by specifying valid ruleset.xml files. See the rules index (phpmd.org) and How to create a custom rule set (phpmd.org) for details.",
"markdown": "Reports coding style problems detected by PHP Mess Detector.\n\n\nThe inspection requires PHP Mess Detector to be properly installed and set up in the IDE under\n[Settings \\| PHP \\| Quality Tools \\| Mess Detector](settings://settings.php.quality.tools?Mess%20Detector).\n\n\nTo learn more about installing PHP Mess Detector, see [PHP Mess Detector installation (phpmd.org)](https://phpmd.org/download/index.html) for details.\n\n\nYou can use a predefined set of rules or add your own by specifying valid *ruleset.xml* files. See the [rules index (phpmd.org)](https://phpmd.org/rules/index.html) and [How to create a custom rule set (phpmd.org)](https://phpmd.org/documentation/creating-a-ruleset.html) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "MessDetectorValidationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Quality tools",
"index": 89,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecationInspection",
"shortDescription": {
"text": "Deprecated"
},
"fullDescription": {
"text": "Reports the usages of deprecated entities. In most cases, such usages should be removed or replaced with other constructs.",
"markdown": "Reports the usages of deprecated entities.\n\n\nIn most cases, such usages should be removed or replaced with other constructs."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDeprecationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedCastInspection",
"shortDescription": {
"text": "Deprecated cast"
},
"fullDescription": {
"text": "Reports deprecated cast expressions: '(unset)' cast expressions, which are deprecated in PHP 7.2 and later. '(real)' cast expressions, which are deprecated in PHP 7.4 and later. See Deprecated features in PHP 7.2.x (php.net) and Deprecations for PHP 7.4 (php.net) for details.",
"markdown": "Reports deprecated cast expressions:\n\n* `(unset)` cast expressions, which are deprecated in PHP 7.2 and later.\n* `(real)` cast expressions, which are deprecated in PHP 7.4 and later.\n\n\nSee [Deprecated features in PHP 7.2.x (php.net)](https://www.php.net/manual/en/migration72.deprecated.php#migration72.deprecated.unset-cast) and [Deprecations for PHP 7.4 (php.net)](https://wiki.php.net/rfc/deprecations_php_7_4#the_real_type) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpDeprecatedCastInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertEqualsInspection",
"shortDescription": {
"text": "Deprecated 'assertEquals/assertNotEquals' usage"
},
"fullDescription": {
"text": "Reports deprecated usages of the 'assertEquals' and 'assertNotEquals' functions with '$delta', '$maxDepth', '$canonicalize', and '$ignoreCase' parameters. The optional '$delta', '$maxDepth', '$canonicalize', and '$ignoreCase' parameters of the 'assertEquals' and 'assertNotEquals' functions are deprecated and will be removed in PHPUnit 9. See Usage of the assertEquals function (phpunit.readthedocs.io) for details.",
"markdown": "Reports deprecated usages of the `assertEquals` and `assertNotEquals` functions with `$delta`, `$maxDepth`, `$canonicalize`, and `$ignoreCase` parameters.\n\nThe optional `$delta`, `$maxDepth`, `$canonicalize`, and `$ignoreCase` parameters\nof the `assertEquals` and `assertNotEquals` functions are deprecated and will be removed in PHPUnit 9.\n\n\nSee [Usage of the assertEquals function (phpunit.readthedocs.io)](https://phpunit.readthedocs.io/en/stable/assertions.html#assertequals) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertEqualsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNestedDirNameCallsCanBeReplacedWithLevelParameterInspection",
"shortDescription": {
"text": "Nested 'dirname()' call can be replaced with 'levels' parameter usage"
},
"fullDescription": {
"text": "Reports the nested 'dirname()' calls that can be omitted by using the 'levels' parameter instead.",
"markdown": "Reports the nested `dirname()` calls that can be omitted by using the `levels` parameter instead."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNestedDirNameCallsCanBeReplacedWithLevelParameterInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFieldImmediatelyRewrittenInspection",
"shortDescription": {
"text": "Property is immediately rewritten "
},
"fullDescription": {
"text": "Reports the write expressions on properties which are immediately overwritten before being accessed.",
"markdown": "Reports the write expressions on properties which are immediately overwritten before being accessed."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpFieldImmediatelyRewrittenInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpExpressionWithoutClarifyingParenthesesInspection",
"shortDescription": {
"text": "Expression without clarifying parentheses"
},
"fullDescription": {
"text": "Reports potentially ambiguous expressions and proposes enclosing them in clarifying parentheses.",
"markdown": "Reports potentially ambiguous expressions and proposes enclosing them in clarifying parentheses."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpExpressionWithoutClarifyingParenthesesInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantAttributeParenthesisInspection",
"shortDescription": {
"text": "Redundant parentheses in attribute"
},
"fullDescription": {
"text": "Reports empty arguments lists in attributes. See Attributes (php.net) for details.",
"markdown": "Reports empty arguments lists in attributes.\n\n\nSee [Attributes (php.net)](https://wiki.php.net/rfc/attributes_v2) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantAttributeParenthesisInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpParameterNameChangedDuringInheritanceInspection",
"shortDescription": {
"text": "Parameter's name changed during inheritance"
},
"fullDescription": {
"text": "Reports the methods' parameters whose names differ from the same parameters defined in parent methods. Starting with PHP 8.0, such code can cause runtime errors.",
"markdown": "Reports the methods' parameters whose names differ from the same parameters defined in parent methods. Starting with PHP 8.0, such code can cause runtime errors."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpParameterNameChangedDuringInheritanceInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTraitsUseListInspection",
"shortDescription": {
"text": "One-per-line trait uses"
},
"fullDescription": {
"text": "Reports the cases of several traits being imported via a single 'use' statement. According to PSR-12, each individual trait imported into a class MUST be included one-per-line, and each inclusion MUST have its own 'use' import statement. See PSR-12: Extended Coding Style (php-fig.org) for details.",
"markdown": "Reports the cases of several traits being imported via a single `use` statement.\n\n\nAccording to PSR-12, each individual trait imported into a class MUST be included one-per-line, and each inclusion MUST have its own `use` import statement.\n\n\nSee [PSR-12: Extended Coding Style (php-fig.org)](https://www.php-fig.org/psr/psr-12/#42-using-traits) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpTraitsUseListInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDisabledQualityToolComposerInspection",
"shortDescription": {
"text": "Quality tool inspection is disabled"
},
"fullDescription": {
"text": "Highlights the quality tools' entries in composer.json in case the corresponding code inspections are disabled.",
"markdown": "Highlights the quality tools' entries in *composer.json* in case the corresponding code inspections are disabled."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDisabledQualityToolComposerInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Composer",
"index": 47,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConcatenationWithEmptyStringCanBeInlinedInspection",
"shortDescription": {
"text": "Concatenation to empty string can be merged with assignment"
},
"fullDescription": {
"text": "Reports the '.=' concatenation assignments performed right after assignment to an empty string literal. Such assignments can be merged together.",
"markdown": "Reports the `.=` concatenation assignments performed right after assignment to an empty string literal. Such assignments can be merged together."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpConcatenationWithEmptyStringCanBeInlinedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNamedArgumentUsageInspection",
"shortDescription": {
"text": "Argument with name identifier"
},
"fullDescription": {
"text": "Reports arguments with name identifiers.",
"markdown": "Reports arguments with name identifiers."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNamedArgumentUsageInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayIndexResetIsUnnecessaryInspection",
"shortDescription": {
"text": "Array internal pointer reset is unnecessary"
},
"fullDescription": {
"text": "Reports the 'reset($array)' calls on arrays whose internal pointer is already set on the first element. Such calls are redundant and can be safely removed. See reset (php.net) for details.",
"markdown": "Reports the `reset($array)` calls on arrays whose internal pointer is already set on the first element. Such calls are redundant and can be safely removed.\n\n\nSee [reset (php.net)](https://www.php.net/manual/en/function.reset.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayIndexResetIsUnnecessaryInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedFieldDefaultValueInspection",
"shortDescription": {
"text": "Redundant property initializer"
},
"fullDescription": {
"text": "Reports the fields with default initializers that are always overwritten in the class constructor.",
"markdown": "Reports the fields with default initializers that are always overwritten in the class constructor."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedFieldDefaultValueInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Unused symbols",
"index": 45,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpApplyingEmptyIndexOperatorOnStringInspection",
"shortDescription": {
"text": "Empty index operator not supported for strings"
},
"fullDescription": {
"text": "Reports the usages of empty index operator ('[]') on strings. Starting from PHP 7.1, applying the empty index operator on a string throws a fatal error. See Creating/modifying with square bracket syntax (php.net) for details.",
"markdown": "Reports the usages of empty index operator (`[]`) on strings.\n\n\nStarting from PHP 7.1, applying the empty index operator on a string throws a fatal error.\n\nSee [Creating/modifying with square bracket syntax (php.net)](https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax.modifying) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpApplyingEmptyIndexOperatorOnStringInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTraitUseRuleInsideDifferentClassUseListInspection",
"shortDescription": {
"text": "Trait use rule resolved to method with different containing class "
},
"fullDescription": {
"text": "Reports the trait method 'use' rules that are resolved to methods from a different containing class rather than the one specified in the 'use' declaration.",
"markdown": "Reports the trait method `use` rules that are resolved to methods from a different containing class rather than the one specified in the `use` declaration."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpTraitUseRuleInsideDifferentClassUseListInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertArrayHasKeyInspection",
"shortDescription": {
"text": "Method 'assertArrayHasKey/assertArrayNotHasKey' can be used instead"
},
"fullDescription": {
"text": "Reports the 'assertTrue()' and 'assertNotTrue()' methods calls that are provided with an 'array_key_exists()' call as an argument. Such calls can be replaced with calls to the dedicated 'assertArrayHasKey()' method. See assertArrayHasKey (phpunit.readthedocs.io) for details.",
"markdown": "Reports the `assertTrue()` and `assertNotTrue()` methods calls that are provided with an `array_key_exists()` call as an argument. Such calls can be replaced with calls to the dedicated `assertArrayHasKey()` method.\n\n\nSee [assertArrayHasKey (phpunit.readthedocs.io)](https://phpunit.readthedocs.io/en/stable/assertions.html#assertarrayhaskey) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertArrayHasKeyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpObjectFieldsAreOnlyWrittenInspection",
"shortDescription": {
"text": "Local object is used only for writing properties"
},
"fullDescription": {
"text": "Reports the variable assignments to new objects that are used only for writing the object's properties without observable side effects.",
"markdown": "Reports the variable assignments to new objects that are used only for writing the object's properties without observable side effects."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpObjectFieldsAreOnlyWrittenInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryStaticReferenceInspection",
"shortDescription": {
"text": "Redundant 'static' in final class"
},
"fullDescription": {
"text": "Reports 'static' usages inside final class",
"markdown": "Reports `static` usages inside final class"
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryStaticReferenceInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDynamicFieldDeclarationInspection",
"shortDescription": {
"text": "Dynamic property declaration"
},
"fullDescription": {
"text": "Reports the references to dynamic class properties declarations. Such declaration are deprecated starting from PHP 8.2 The inspection skips the objects of the 'stdClass' or derived types.",
"markdown": "Reports the references to dynamic class properties declarations. Such declaration are deprecated starting from PHP 8.2\n\n\nThe inspection skips the objects of the `stdClass` or derived types."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDynamicFieldDeclarationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDocSignatureInspection",
"shortDescription": {
"text": "PHPDoc comment matches function/method signature"
},
"fullDescription": {
"text": "Reports the parameters' names and types in a PHPDoc comment that do not match the ones in the function/method declaration.",
"markdown": "Reports the parameters' names and types in a PHPDoc comment that do not match the ones in the function/method declaration."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDocSignatureInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMultipleClassesDeclarationsInOneFile",
"shortDescription": {
"text": "Multiple classes declarations in one file"
},
"fullDescription": {
"text": "Reports multiple class declarations in a single file, which violates the PSR-0/PSR-4 standards. See PSR-0/PSR-4 standards (php-fig.org) for details.",
"markdown": "Reports multiple class declarations in a single file, which violates the PSR-0/PSR-4 standards.\n\n\nSee [PSR-0/PSR-4 standards (php-fig.org)](https://www.php-fig.org/psr/psr-4/) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMultipleClassesDeclarationsInOneFile",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayWriteIsNotUsedInspection",
"shortDescription": {
"text": "Array write access is not used"
},
"fullDescription": {
"text": "Reports the array write access expressions that are not used in code afterwards. The most common source of such problems is modifying an array passed via a parameter: if an array is passed by value, the change will not be visible outside the function.",
"markdown": "Reports the array write access expressions that are not used in code afterwards. The most common source of such problems is modifying an array passed via a parameter: if an array is passed by value, the change will not be visible outside the function."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayWriteIsNotUsedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClassCantBeUsedAsAttributeInspection",
"shortDescription": {
"text": "Class cannot be used as attribute"
},
"fullDescription": {
"text": "Reports the attributes that are resolved to a class not annotated with '#[Attribute]'. See Attributes (php.net) for details.",
"markdown": "Reports the attributes that are resolved to a class not annotated with `#[Attribute]`.\n\n\nSee [Attributes (php.net)](https://wiki.php.net/rfc/attributes_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpClassCantBeUsedAsAttributeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpReturnValueOfMethodIsNeverUsedInspection",
"shortDescription": {
"text": "Method's return value is never used"
},
"fullDescription": {
"text": "Reports the private methods returning the values that are not used.",
"markdown": "Reports the private methods returning the values that are not used."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpReturnValueOfMethodIsNeverUsedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertFileEqualsInspection",
"shortDescription": {
"text": "Deprecated 'assertFileEquals/assertStringEqualsFile' usage"
},
"fullDescription": {
"text": "Reports the deprecated usages of the 'assertFileEquals', 'assertFileNotEquals', 'assertStringEqualsFile', and 'assertStringNotEqualsFile' functions with the '$canonicalize' and '$ignoreCase' parameters. The optional '$canonicalize' and '$ignoreCase' parameters of the 'assertFileEquals' and 'assertFileNotEquals' functions are deprecated and will be removed in PHPUnit 9. See Usage of the assertFileEquals function (phpunit.readthedocs.io) or Usage of the assertFileEquals function (phpunit.readthedocs.io) for details.",
"markdown": "Reports the deprecated usages of the `assertFileEquals`, `assertFileNotEquals`, `assertStringEqualsFile`, and `assertStringNotEqualsFile` functions with the `$canonicalize` and `$ignoreCase` parameters.\n\nThe optional `$canonicalize` and `$ignoreCase` parameters\nof the `assertFileEquals` and `assertFileNotEquals` functions are deprecated and will be removed in PHPUnit 9.\n\n\nSee [Usage of the assertFileEquals function (phpunit.readthedocs.io)](https://phpunit.readthedocs.io/en/stable/assertions.html#assertfileequals) or [Usage of the assertFileEquals function (phpunit.readthedocs.io)](https://phpunit.readthedocs.io/en/stable/assertions.html#assertstringequalsfile) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertFileEqualsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpVariableVariableInspection",
"shortDescription": {
"text": "Usage of a variable variable"
},
"fullDescription": {
"text": "Reports the usages of variable variables (dynamic variable names such as '$$a').",
"markdown": "Reports the usages of variable variables (dynamic variable names such as `$$a`)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpVariableVariableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedSerializableUsageInspection",
"shortDescription": {
"text": "Deprecated 'Serializable' interface usage"
},
"fullDescription": {
"text": "Reports the usages of deprecated 'Serializable' interface. Starting from PHP 8.1, classes that are non-abstract, implement 'Serializable', and do not implement '__serialize()' and '__unserialize()' will throw a deprecation warning. See Phasing out Serializable (php.net) for details.",
"markdown": "Reports the usages of deprecated `Serializable` interface.\n\n\nStarting from PHP 8.1, classes that are non-abstract, implement `Serializable`, and do not implement `__serialize()`\nand `__unserialize()` will throw a deprecation warning.\n\n\nSee [Phasing out Serializable (php.net)](https://wiki.php.net/rfc/custom_object_serialization) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDeprecatedSerializableUsageInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedCallbackInspection",
"shortDescription": {
"text": "Undefined callback"
},
"fullDescription": {
"text": "Reports the functions, methods, properties, or classes that are referenced from a callback but are not found. Use the options below to customize the inspection: Ignore callback from *_exists and is_callable functions: if selected, the inspection will skip callback references from the 'method_exists', 'function_exists', 'property_exists', 'class_exists' and 'is_callable' functions. Don't report in case of ambiguity: if selected, the inspection will skip the parameters with multiple possible types, for example marked as 'callable|string'.",
"markdown": "Reports the functions, methods, properties, or classes that are referenced from a callback but are not found.\n\nUse the options below to customize the inspection:\n\n* **Ignore callback from \\*_exists and is_callable functions** : if selected, the inspection will skip callback references from the `method_exists`, `function_exists`, `property_exists`, `class_exists` and `is_callable` functions.\n* **Don't report in case of ambiguity** : if selected, the inspection will skip the parameters with multiple possible types, for example marked as `callable|string`."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedCallbackInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLoopCanBeConvertedToArrayMapInspection",
"shortDescription": {
"text": "Loop can be converted to 'array_map()' call"
},
"fullDescription": {
"text": "Reports the 'foreach' loops that can be replaced with 'array_map()' calls.",
"markdown": "Reports the `foreach` loops that can be replaced with `array_map()` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLoopCanBeConvertedToArrayMapInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpOptionalBeforeRequiredParametersInspection",
"shortDescription": {
"text": "Optional before required parameter"
},
"fullDescription": {
"text": "Reports the optional parameters that appear before the required parameters in a function/method declaration. See Default argument values (php.net) for details.",
"markdown": "Reports the optional parameters that appear before the required parameters in a function/method declaration.\n\n\nSee [Default argument values (php.net)](http://www.php.net/manual/en/functions.arguments.php#functions.arguments.default) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpOptionalBeforeRequiredParametersInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpStrFunctionsInspection",
"shortDescription": {
"text": "'str*()' calls can be replaced with PHP 8 'str_*()' calls"
},
"fullDescription": {
"text": "Reports the 'strpos' and 'substr' functions calls that can be replaced with the 'str_*' functions calls (introduced in PHP 8.0). See str_contains (php.net) and str_starts_with and str_ends_with functions (php.net) for details.",
"markdown": "Reports the `strpos` and `substr` functions calls that can be replaced with the `str_*` functions calls (introduced in PHP 8.0).\n\n\nSee [str_contains (php.net)](https://wiki.php.net/rfc/str_contains) and [str_starts_with and str_ends_with functions (php.net)](https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpStrFunctionsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDocRedundantThrowsInspection",
"shortDescription": {
"text": "Redundant @throws tag(s)"
},
"fullDescription": {
"text": "Reports '@throws' tags for exceptions that are not thrown by the function or method. The exception classes added to the Unchecked Exceptions list under Settings | PHP | Analysis are excluded from the inspection scope.",
"markdown": "Reports `@throws` tags for exceptions that are not thrown by the function or method.\n\nThe exception classes added to the **Unchecked Exceptions** list under\n[Settings \\| PHP \\| Analysis](settings://reference.webide.settings.project.settings.php?Unchecked%20Exceptions)\nare excluded from the inspection scope."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDocRedundantThrowsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessarySemicolonInspection",
"shortDescription": {
"text": "Unnecessary semicolon"
},
"fullDescription": {
"text": "Reports unnecessary semicolons.",
"markdown": "Reports unnecessary semicolons."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessarySemicolonInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayMapCanBeConvertedToLoopInspection",
"shortDescription": {
"text": "'array_map()' call can be converted to loop"
},
"fullDescription": {
"text": "Reports the 'array_map()' calls that can be replaced with 'foreach' loops.",
"markdown": "Reports the `array_map()` calls that can be replaced with `foreach` loops."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayMapCanBeConvertedToLoopInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCSValidationInspection",
"shortDescription": {
"text": "PHP_CodeSniffer validation"
},
"fullDescription": {
"text": "Reports coding style problems detected by PHP_CodeSniffer. The inspection requires PHP_CodeSniffer to be properly installed and set up in the IDE under Settings | PHP | Quality Tools | PHP_CodeSniffer. To learn more about installing PHP_CodeSniffer, see PHP_CodeSniffer installation (GitHub).",
"markdown": "Reports coding style problems detected by PHP_CodeSniffer.\n\n\nThe inspection requires PHP_CodeSniffer to be properly installed and set up in the IDE under\n[Settings \\| PHP \\| Quality Tools \\| PHP_CodeSniffer](settings://settings.php.quality.tools?PHP_CodeSniffer).\n\n\nTo learn more about installing PHP_CodeSniffer, see [PHP_CodeSniffer installation (GitHub)](https://github.com/squizlabs/PHP_CodeSniffer#installation)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCSValidationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Quality tools",
"index": 89,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryStringCastInspection",
"shortDescription": {
"text": "Redundant cast to string"
},
"fullDescription": {
"text": "Reports the '(string)' casts and 'strval()' calls that are redundant since casting to string is performed implicitly.",
"markdown": "Reports the `(string)` casts and `strval()` calls that are redundant since casting to string is performed implicitly."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryStringCastInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNullIsNotCompatibleWithParameterInspection",
"shortDescription": {
"text": "'null' is not compatible with parameter's declared type"
},
"fullDescription": {
"text": "Reports the variables that are initialised via passing them by reference to a parameter incompatible with 'null'.",
"markdown": "Reports the variables that are initialised via passing them by reference to a parameter incompatible with `null`."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpNullIsNotCompatibleWithParameterInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPregReplaceWithEmptyReplacementInspection",
"shortDescription": {
"text": "'preg_replace()' can be replaced with '(l|r)trim' call"
},
"fullDescription": {
"text": "Reports the 'preg_replace()' calls with empty 'replacement'. Such calls can be replaced with '(l|r)trim' calls.",
"markdown": "Reports the `preg_replace()` calls with empty `replacement`. Such calls can be replaced with `(l|r)trim` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPregReplaceWithEmptyReplacementInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantClosingTagInspection",
"shortDescription": {
"text": "Redundant closing tag"
},
"fullDescription": {
"text": "Reports PHP closing tag '?>' usages, which are redundant in files containing only PHP code.",
"markdown": "Reports PHP closing tag `?>` usages, which are redundant in files containing only PHP code."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantClosingTagInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryStopStatementInspection",
"shortDescription": {
"text": "Unnecessary 'return/continue' statement"
},
"fullDescription": {
"text": "Reports unnecessary 'return' and 'continue' statements that can be safely removed.",
"markdown": "Reports unnecessary `return` and `continue` statements that can be safely removed."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryStopStatementInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDeprecatedAutoloadDeclarationInspection",
"shortDescription": {
"text": "Deprecated '__autoload()' function declaration"
},
"fullDescription": {
"text": "Reports the '__autoload()' function declarations. Starting from PHP 7.4, declaring '__autoload()' functions is deprecated. Starting from PHP 8.0, declaring '__autoload()' functions is forbidden. See __autoload (php.net) for details.",
"markdown": "Reports the `__autoload()` function declarations.\n\n* Starting from PHP 7.4, declaring `__autoload()` functions is deprecated.\n* Starting from PHP 8.0, declaring `__autoload()` functions is forbidden.\n\n\nSee [__autoload (php.net)](https://www.php.net/manual/en/function.autoload.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDeprecatedAutoloadDeclarationInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpExpressionWithSameOperandsInspection",
"shortDescription": {
"text": "Logical expression has same operands"
},
"fullDescription": {
"text": "Reports the expressions that use the same operands, but should rather use different operands (for example, '$var == $var'). These include comparison, logical, null-coalescing, subtraction, and division expressions.",
"markdown": "Reports the expressions that use the same operands, but should rather use different operands (for example, `$var == $var`). These include comparison, logical, null-coalescing, subtraction, and division expressions."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpExpressionWithSameOperandsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArithmeticTypeCheckInspection",
"shortDescription": {
"text": "Arithmetic operation with unsupported operands"
},
"fullDescription": {
"text": "Reports arithmetic and bitwise expressions with unsupported operands. Starting with PHP 8.0, using the arithmetic and bitwise operators '+', '-', '*', '/', '**', '%', '<<', '>>', '&', '|', '^', '~', '++', '--' when one of the operands is an array, resource, or non-overloaded object will result in a 'TypeError'. The only exception is the 'array + array' merge operation, which remains supported. See PHP's internal test source for the complete list of operations.",
"markdown": "Reports arithmetic and bitwise expressions with unsupported operands.\n\n\nStarting with PHP 8.0, using the arithmetic and bitwise operators `+`, `-`, `*`, `/`, `**`, `%`, `<<`, `>>`, `&`, `|`, `^`, `~`, `++`, `--`\nwhen one of the operands is an array, resource, or non-overloaded object will result in a `TypeError`. The only exception is the\n`array + array` merge operation, which remains supported.\n\n\nSee [PHP's internal test source](https://github.com/php/php-src/blob/master/Zend/tests/operator_unsupported_types.phpt) for the complete list of operations."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpArithmeticTypeCheckInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConditionAlreadyCheckedInspection",
"shortDescription": {
"text": "Condition always evaluates to 'true/false'"
},
"fullDescription": {
"text": "Reports the conditions that are already covered by earlier conditions and thus have no effect as well as the variables that are always true (or always false) when reached.",
"markdown": "Reports the conditions that are already covered by earlier conditions and thus have no effect as well as the variables that are always true (or always false) when reached."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpConditionAlreadyCheckedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantVariableDocTypeInspection",
"shortDescription": {
"text": "Redundant @var tag"
},
"fullDescription": {
"text": "Reports the '@var' tags for variables whose type is already inferred from source code.",
"markdown": "Reports the `@var` tags for variables whose type is already inferred from source code."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantVariableDocTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMethodNamingConventionInspection",
"shortDescription": {
"text": "Method name is not following coding convention"
},
"fullDescription": {
"text": "Reports the methods' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for methods. Use the inspection options to specify minimum/maximum length and the regular expression expected for methods' names. To ignore the names' length, specify 0. To learn more about regular expressions, refer to the Quick Start guide (regular-expressions.info).",
"markdown": "Reports the methods' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for methods.\n\n\nUse the inspection options to specify minimum/maximum length and the regular expression expected for methods' names.\nTo ignore the names' length, specify **0**.\n\n\nTo learn more about regular expressions, refer to the [Quick Start guide (regular-expressions.info)](https://www.regular-expressions.info/quickstart.html)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMethodNamingConventionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Naming conventions",
"index": 6,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFuncGetArgCanBeReplacedWithParamInspection",
"shortDescription": {
"text": "'func_get_arg()' call can be replaced with parameter access"
},
"fullDescription": {
"text": "Reports the 'func_get_arg()' calls that can be replaced with direct parameter access.",
"markdown": "Reports the `func_get_arg()` calls that can be replaced with direct parameter access."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpFuncGetArgCanBeReplacedWithParamInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpBooleanCanBeSimplifiedInspection",
"shortDescription": {
"text": "Boolean expression can be simplified"
},
"fullDescription": {
"text": "Reports the boolean expressions that contain the 'true' or 'false' literals and can be simplified.",
"markdown": "Reports the boolean expressions that contain the `true` or `false` literals and can be simplified."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpBooleanCanBeSimplifiedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitCoversByAccessModifierIsDeprecatedInspection",
"shortDescription": {
"text": "Deprecated @covers/@uses by access modifier annotation"
},
"fullDescription": {
"text": "Reports the '@covers' and '@uses' PHPUnit doc tags that are using 'ClassName::<*>'. Such annotations won't be supported in PHPUnit 10 and later.",
"markdown": "Reports the `@covers` and `@uses` PHPUnit doc tags that are using `ClassName::<*>`. Such annotations won't be supported in PHPUnit 10 and later."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitCoversByAccessModifierIsDeprecatedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedPrivateMethodInspection",
"shortDescription": {
"text": "Unused private method"
},
"fullDescription": {
"text": "Reports the private methods that are never used.",
"markdown": "Reports the private methods that are never used."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedPrivateMethodInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Unused symbols",
"index": 45,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRandArgumentsInReverseOrderInspection",
"shortDescription": {
"text": "Misordered 'rand' function arguments"
},
"fullDescription": {
"text": "Reports the 'rand($min, $max)' family function calls in which the 'max' argument is less than 'min'. For such functions as 'mt_rand' and 'random_int', this will result in a fatal error.",
"markdown": "Reports the `rand($min, $max)` family function calls in which the `max` argument is less than `min`. For such functions as `mt_rand` and `random_int`, this will result in a fatal error."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpRandArgumentsInReverseOrderInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAssignmentReplaceableWithPrefixExpressionInspection",
"shortDescription": {
"text": "Assignment can be replaced with increment or decrement"
},
"fullDescription": {
"text": "Reports the assignments that can be replaced with incrementing ('++') or decrementing ('--') operations.",
"markdown": "Reports the assignments that can be replaced with incrementing (`++`) or decrementing (`--`) operations."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpAssignmentReplaceableWithPrefixExpressionInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Replaceable assignments",
"index": 109,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAttributeIsNotRepeatableInspection",
"shortDescription": {
"text": "Non-repeatable attribute"
},
"fullDescription": {
"text": "Reports repeated attributes without the 'Attribute::IS_REPEATABLE' flag in their arguments declaration. See Attributes (php.net) for details.",
"markdown": "Reports repeated attributes without the `Attribute::IS_REPEATABLE` flag in their arguments declaration.\n\n\nSee [Attributes (php.net)](https://wiki.php.net/rfc/attributes_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpAttributeIsNotRepeatableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpObjectShapeCanBeAddedInspection",
"shortDescription": {
"text": "ObjectShape can be added"
},
"fullDescription": {
"text": "Reports public properties of an object with specified types. Suggests specifying the shape of the returned object via the '#[ObjectShape]' attribute or an object shape in the PHPDoc comment. Example: '$a = new stdClass();\n $a->name = \"name\";\n $a->age = 2;' After the quick-fix is applied: '/** @var $a object{name: string, age: int} */\n $a = new stdClass();\n $a->name = \"name\";\n $a->age = 2;'",
"markdown": "Reports public properties of an object with specified types. Suggests specifying the shape of the returned object via the `#[ObjectShape]` attribute or an object shape in the PHPDoc comment.\n\n**Example:**\n\n\n $a = new stdClass();\n $a->name = \"name\";\n $a->age = 2;\n\nAfter the quick-fix is applied:\n\n\n /** @var $a object{name: string, age: int} */\n $a = new stdClass();\n $a->name = \"name\";\n $a->age = 2;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpObjectShapeCanBeAddedInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInvalidMagicMethodModifiersInspection",
"shortDescription": {
"text": "Invalid magic method modifiers"
},
"fullDescription": {
"text": "Reports the magic methods that are not declared as public or are declared as static.",
"markdown": "Reports the magic methods that are not declared as public or are declared as static."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpInvalidMagicMethodModifiersInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpWrongCatchClausesOrderInspection",
"shortDescription": {
"text": "Wrong catch clauses order"
},
"fullDescription": {
"text": "Reports the exceptions that are already caught by a preceding exception and the exceptions that are caught twice. The 'catch' clauses must be ordered from more specific to more generic ones. Otherwise, some exceptions may not be caught by the most specific handler. See Exceptions (php.net) for details.",
"markdown": "Reports the exceptions that are already caught by a preceding exception and the exceptions that are caught twice.\n\n\nThe `catch` clauses must be ordered from more specific to more generic ones. Otherwise, some exceptions may not be caught by the most specific handler.\n\n\nSee [Exceptions (php.net)](http://www.php.net/manual/en/language.exceptions.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpWrongCatchClausesOrderInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Error handling",
"index": 94,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpVarUsageInspection",
"shortDescription": {
"text": "Usage of var"
},
"fullDescription": {
"text": "Reports the usages of the 'var' keyword for declaring class properties. According to PSR-12, the 'var' keyword MUST NOT be used to declare a property. See PSR-12: Extended Coding Style (php-fig.org) for details.",
"markdown": "Reports the usages of the `var` keyword for declaring class properties.\n\nAccording to PSR-12, the `var` keyword MUST NOT be used to declare a property.\n\n\nSee [PSR-12: Extended Coding Style (php-fig.org)](https://www.php-fig.org/psr/psr-12/#43-properties-and-constants) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpVarUsageInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPregSplitWithoutRegExpInspection",
"shortDescription": {
"text": "'preg_split' can be replaced with 'explode'"
},
"fullDescription": {
"text": "Reports 'preg_split()' calls that can be replaced with 'explode()'.",
"markdown": "Reports `preg_split()` calls that can be replaced with `explode()`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPregSplitWithoutRegExpInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnpackingArraysWithStringKeysInspection",
"shortDescription": {
"text": "Unpacking arrays with string keys is forbidden for PHP < 8.1"
},
"fullDescription": {
"text": "Reports array unpacking with string keys in PHP < 8.1 See Array unpacking with string keys for details.",
"markdown": "Reports array unpacking with string keys in PHP \\< 8.1\n\n\nSee [Array unpacking with string keys](https://wiki.php.net/rfc/array_unpacking_string_keys) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpUnpackingArraysWithStringKeysInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSillyAssignmentInspection",
"shortDescription": {
"text": "Redundant assignment"
},
"fullDescription": {
"text": "Reports the assignment statements, in which both sides are equal. Such assignments have no effect and can be removed.",
"markdown": "Reports the assignment statements, in which both sides are equal. Such assignments have no effect and can be removed."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpSillyAssignmentInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpFullyQualifiedNameUsageInspection",
"shortDescription": {
"text": "Fully qualified name usage"
},
"fullDescription": {
"text": "Reports the fully qualified class names that can be shortened by adding the 'use' statement.",
"markdown": "Reports the fully qualified class names that can be shortened by adding the `use` statement."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpFullyQualifiedNameUsageInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSuspiciousNameCombinationInspection",
"shortDescription": {
"text": "Suspicious names combination"
},
"fullDescription": {
"text": "Reports the assignments and function calls where the name of the variable or parameter probably doesn't match the name of the assigned or passed value. The following sets of names are supported: 'needle', 'haystack' 'x', 'y' 'top', 'bottom', 'left', 'right' 'year', 'month', 'week', 'day', 'hour', 'minute', 'second'",
"markdown": "Reports the assignments and function calls where the name of the variable or parameter probably doesn't match the name of the assigned or passed value.\n\n\nThe following sets of names are supported:\n\n* `needle`, `haystack`\n* `x`, `y`\n* `top`, `bottom`, `left`, `right`\n* `year`, `month`, `week`, `day`, `hour`, `minute`, `second`"
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpSuspiciousNameCombinationInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRangesInClassCanBeMergedInspection",
"shortDescription": {
"text": "Ranges in class can be merged"
},
"fullDescription": {
"text": "Reports the alphabetic ranges or characters in regular expression character classes that only adjust the already existing ranges. Such elements can be merged with the adjusted ranges.",
"markdown": "Reports the alphabetic ranges or characters in regular expression character classes that only adjust the already existing ranges. Such elements can be merged with the adjusted ranges."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRangesInClassCanBeMergedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Regular expressions",
"index": 87,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPossiblePolymorphicInvocationInspection",
"shortDescription": {
"text": "Possible polymorphic call"
},
"fullDescription": {
"text": "Reports polymorphic code usages. Such usages are ambiguous and can be potentially inoperable depending on the class instance passed as the argument.",
"markdown": "Reports polymorphic code usages. Such usages are ambiguous and can be potentially inoperable depending on the class instance passed as the argument."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPossiblePolymorphicInvocationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicateMatchConditionInspection",
"shortDescription": {
"text": "Duplicate condition"
},
"fullDescription": {
"text": "Reports duplicate conditions in 'match' expressions. See Match expression (php.net) for details.",
"markdown": "Reports duplicate conditions in `match` expressions.\n\n\nSee [Match expression (php.net)](https://wiki.php.net/rfc/match_expression_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDuplicateMatchConditionInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicateSwitchCaseBodyInspection",
"shortDescription": {
"text": "Duplicate branch in switch statement"
},
"fullDescription": {
"text": "Reports the 'switch' statements containing the same code in different branches.",
"markdown": "Reports the `switch` statements containing the same code in different branches."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpDuplicateSwitchCaseBodyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpStatementWithoutBracesInspection",
"shortDescription": {
"text": "Control statement body without braces"
},
"fullDescription": {
"text": "Reports the control structures (such as loops or conditionals) whose bodies are not enclosed in braces. See Control structures (php.net) for details.",
"markdown": "Reports the control structures (such as loops or conditionals) whose bodies are not enclosed in braces.\n\n\nSee [Control structures (php.net)](https://www.php.net/manual/en/language.control-structures.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpStatementWithoutBracesInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPregMatchRedundantClosureInspection",
"shortDescription": {
"text": "Redundant closure '.*'"
},
"fullDescription": {
"text": "Reports redundant leading and trailing '.*' in pattern for `preg_match` function.",
"markdown": "Reports redundant leading and trailing '.\\*' in pattern for \\`preg_match\\` function."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPregMatchRedundantClosureInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpShortOpenEchoTagInspection",
"shortDescription": {
"text": "Short open 'echo' tag usage"
},
"fullDescription": {
"text": "Reports short PHP 'echo' tag '<?=' usages.",
"markdown": "Reports short PHP `echo` tag `<?=` usages."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpShortOpenEchoTagInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNewClassMissingParameterListInspection",
"shortDescription": {
"text": "Missing parameter list"
},
"fullDescription": {
"text": "Reports missing parameter lists in a classes' instantiations. According to the PSR-12 specification, when instantiating a new class, parentheses MUST always be present even when there are no arguments passed to the constructor. See PSR-12: Extended Coding Style (php-fig.org) for details.",
"markdown": "Reports missing parameter lists in a classes' instantiations.\n\nAccording to the PSR-12 specification, when instantiating a new class, parentheses MUST always be present even when there are no arguments passed to the constructor.\n\n\nSee [PSR-12: Extended Coding Style (php-fig.org)](https://www.php-fig.org/psr/psr-12/#4-classes-properties-and-methods) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNewClassMissingParameterListInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCombineMultipleIssetCallsIntoOneInspection",
"shortDescription": {
"text": "Multiple 'isset' calls can be replaced with one"
},
"fullDescription": {
"text": "Reports multiple 'isset()' checks that can be replaced with a single one.",
"markdown": "Reports multiple `isset()` checks that can be replaced with a single one."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCombineMultipleIssetCallsIntoOneInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSuperClassIncompatibleWithInterfaceInspection",
"shortDescription": {
"text": "Method declaration in parent class is incompatible with implemented interface"
},
"fullDescription": {
"text": "Reports the methods declarations in parent classes that are incompatible with implemented interfaces.",
"markdown": "Reports the methods declarations in parent classes that are incompatible with implemented interfaces."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpSuperClassIncompatibleWithInterfaceInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAccessingStaticMembersOnTraitInspection",
"shortDescription": {
"text": "Accessing static trait members"
},
"fullDescription": {
"text": "Reports the static member access expressions used on traits. Such direct access is deprecated starting from PHP 8.1. Instead, static members should be accessed on the class that uses the trait. See Deprecations for PHP 8.1: Accessing static members on traits (php.net) for details.",
"markdown": "Reports the static member access expressions used on traits. Such direct access is deprecated starting from PHP 8.1. Instead, static members should be accessed on the class that uses the trait.\n\n\nSee [Deprecations for PHP 8.1: Accessing static members on traits (php.net)](https://wiki.php.net/rfc/deprecations_php_8_1#accessing_static_members_on_traits) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpAccessingStaticMembersOnTraitInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingReturnTypeInspection",
"shortDescription": {
"text": "Missing return type declaration"
},
"fullDescription": {
"text": "Reports the functions that have no return type declaration specified.",
"markdown": "Reports the functions that have no return type declaration specified."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingReturnTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitMisorderedAssertEqualsArgumentsInspection",
"shortDescription": {
"text": "Misordered PHPUnit equality assertion method arguments"
},
"fullDescription": {
"text": "Reports the calls to PHPUnit equality assertion methods (such as 'assertEquals()', 'assertNotEquals()', 'assertSame()', and so on) that have a non-literal as the expected result argument and a literal as the actual result argument. Such calls will behave fine for assertions that pass, but may produce confusing error reports if their expected and actual arguments differ. See assertEquals for details.",
"markdown": "Reports the calls to PHPUnit equality assertion methods (such as `assertEquals()`, `assertNotEquals()`, `assertSame()`, and so on) that have a non-literal as the expected result argument and a literal as the actual result argument. Such calls will behave fine for assertions that pass, but may produce confusing error reports if their expected and actual arguments differ.\n\n\nSee [assertEquals](https://phpunit.readthedocs.io/en/stable/assertions.html#assertequals) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitMisorderedAssertEqualsArgumentsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnused",
"shortDescription": {
"text": "Unused declaration"
},
"fullDescription": {
"text": "Reports the classes, methods, functions, constants, or properties that are not used or not reachable from entry points. It also reports all method implementations/overriders. Some unused members might not be reported in the code editor on the fly. Due to performance reasons, a non-private member is checked only when its name rarely occurs in the project. To see all results, run the inspection in batch mode by using Code | Inspect Code... or Code | Run Inspection by Name....",
"markdown": "Reports the classes, methods, functions, constants, or properties that are not used or not reachable from entry points. It also reports all method implementations/overriders.\n\nSome unused members might not be reported in the code editor on the fly. Due to performance reasons, a non-private member is checked only\nwhen its name rarely occurs in the project.\n\nTo see all results, run the inspection in batch mode by using **Code \\| Inspect Code...** or **Code \\| Run Inspection by\nName...**."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnused",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Unused symbols",
"index": 45,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCastIsEvaluableInspection",
"shortDescription": {
"text": "Type cast on a scalar value"
},
"fullDescription": {
"text": "Reports the type casts that can be evaluated in place and suggests replacing them with actual computed values. See Type juggling (php.net) for details.",
"markdown": "Reports the type casts that can be evaluated in place and suggests replacing them with actual computed values.\n\n\nSee [Type juggling (php.net)](https://www.php.net/manual/en/language.types.type-juggling.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCastIsEvaluableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArraySearchInBooleanContextInspection",
"shortDescription": {
"text": "'array_search()' can be replaced with 'in_array()' call"
},
"fullDescription": {
"text": "Reports the 'array_search()' calls that are only used for checking whether an element exists in array, that is, the expressions like 'if (array_search($a, $b) === false) {}'. Such calls can be safely replaced with 'in_array()' calls.",
"markdown": "Reports the `array_search()` calls that are only used for checking whether an element exists in array, that is, the expressions like `if (array_search($a, $b) === false) {}`. Such calls can be safely replaced with `in_array()` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArraySearchInBooleanContextInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingVisibilityInspection",
"shortDescription": {
"text": "Missing visibility"
},
"fullDescription": {
"text": "Reports the properties, constants, and methods that are declared without visibility definition. According to PSR-12, visibility MUST be defined on: All properties, All constants if your project's PHP minimum version supports constant visibilities (PHP 7.1 or later), All methods. See PSR-12: Extended Coding Style (php-fig.org) for details.",
"markdown": "Reports the properties, constants, and methods that are declared without visibility definition.\n\nAccording to PSR-12, visibility MUST be defined on:\n\n* All properties,\n* All constants if your project's PHP minimum version supports constant visibilities (PHP 7.1 or later),\n* All methods.\n\n\nSee [PSR-12: Extended Coding Style (php-fig.org)](https://www.php-fig.org/psr/psr-12/#43-properties-and-constants) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingVisibilityInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitExpectedExceptionDocTagIsDeprecatedInspection",
"shortDescription": {
"text": "Deprecated exception handling via doc tags"
},
"fullDescription": {
"text": "Reports the usages of the following deprecated PHPUnit doc tags: '@expectedException' '@expectedExceptionMessage' '@expectedExceptionCode' '@expectedExceptionMessageRegExp'",
"markdown": "Reports the usages of the following deprecated PHPUnit doc tags:\n\n* `@expectedException`\n* `@expectedExceptionMessage`\n* `@expectedExceptionCode`\n* `@expectedExceptionMessageRegExp`"
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitExpectedExceptionDocTagIsDeprecatedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNotInstalledPackagesInspection",
"shortDescription": {
"text": "Non-installed Composer packages"
},
"fullDescription": {
"text": "Reports the Composer packages that are required in composer.json but are not installed.",
"markdown": "Reports the Composer packages that are required in *composer.json* but are not installed."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNotInstalledPackagesInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Composer",
"index": 47,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNeverTypedFunctionReturnViolationInspection",
"shortDescription": {
"text": "'never'-typed function returns a value"
},
"fullDescription": {
"text": "Reports the functions with the 'never' return type hint that may return some value. Functions with such a return type are not expected to return any value and must prevent the rest of the script execution by either calling 'die()', 'exit()', and so on, or throwing an exception. See noreturn type (php.net) for details.",
"markdown": "Reports the functions with the `never` return type hint that may return some value. Functions with such a return type are not expected to return any value and must prevent the rest of the script execution by either calling `die()`, `exit()`, and so on, or throwing an exception.\n\n\nSee [noreturn type (php.net)](https://wiki.php.net/rfc/noreturn_type) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "PhpNeverTypedFunctionReturnViolationInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicateCaseInspection",
"shortDescription": {
"text": "Duplicate case in switch statement"
},
"fullDescription": {
"text": "Reports duplicate 'case' expressions in 'switch' statements. If a 'switch' statement contains multiple duplicate 'case' expressions, only the first one is executed.",
"markdown": "Reports duplicate `case` expressions in `switch` statements.\n\nIf a `switch` statement contains multiple duplicate `case` expressions, only the first one is executed."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDuplicateCaseInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpModifierOrderInspection",
"shortDescription": {
"text": "Order of modifiers"
},
"fullDescription": {
"text": "Reports visibility modifiers that are specified in the incorrect order. According to PSR-12, the correct order is as follows: When present, the 'abstract' and 'final' declarations MUST precede the visibility declaration. When present, the 'static' declaration MUST come after the visibility declaration. See PSR-12: Extended Coding Style (php-fig.org) for details.",
"markdown": "Reports visibility modifiers that are specified in the incorrect order.\n\nAccording to PSR-12, the correct order is as follows:\n\n* When present, the `abstract` and `final` declarations MUST precede the visibility declaration.\n* When present, the `static` declaration MUST come after the visibility declaration.\n\n\nSee [PSR-12: Extended Coding Style (php-fig.org)](https://www.php-fig.org/psr/psr-12/#46-abstract-final-and-static) for\ndetails."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpModifierOrderInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantIntersectionTypeInspection",
"shortDescription": {
"text": "Redundant intersection type"
},
"fullDescription": {
"text": "Reports the intersection type declarations that contain redundant types, for example, an intersection type that contains both the parent class and its subclass. See PHP RFC: Pure intersection types (php.net) for details.",
"markdown": "Reports the intersection type declarations that contain redundant types, for example, an intersection type that contains both the parent class and its subclass.\n\n\nSee [PHP RFC: Pure intersection types (php.net)](https://wiki.php.net/rfc/pure-intersection-types) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantIntersectionTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInstanceofIsAlwaysTrueInspection",
"shortDescription": {
"text": "Result of 'instanceof' is always 'true'"
},
"fullDescription": {
"text": "Reports the 'instanceof' expressions whose argument is within the hierarchy of the checked variable. Such expressions will always evaluate to 'true'.",
"markdown": "Reports the `instanceof` expressions whose argument is within the hierarchy of the checked variable. Such expressions will always evaluate to `true`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpInstanceofIsAlwaysTrueInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInappropriateInheritDocUsageInspection",
"shortDescription": {
"text": "Inappropriate @inheritDoc usage"
},
"fullDescription": {
"text": "Reports inappropriate '@inheritDoc' usages: On non-class members On class members without any super members having a doc comment.",
"markdown": "Reports inappropriate `@inheritDoc` usages:\n\n* On non-class members\n* On class members without any super members having a doc comment."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpInappropriateInheritDocUsageInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClassConstantAccessedViaChildClassInspection",
"shortDescription": {
"text": "Class constant referenced via child class"
},
"fullDescription": {
"text": "Reports the class constant references that target the constant from the parent class of the referenced class.",
"markdown": "Reports the class constant references that target the constant from the parent class of the referenced class."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpClassConstantAccessedViaChildClassInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSwitchStatementWitSingleBranchInspection",
"shortDescription": {
"text": "'switch' with single 'case'"
},
"fullDescription": {
"text": "Reports the 'switch' statements that only contain a single 'case' statement. Such 'switch' statements can be converted into 'if' statements.",
"markdown": "Reports the `switch` statements that only contain a single `case` statement. Such `switch` statements can be converted into `if` statements."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpSwitchStatementWitSingleBranchInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpImplicitOctalLiteralUsageInspection",
"shortDescription": {
"text": "Implicit octal literal can be replaced with explicit one"
},
"fullDescription": {
"text": "Reports the implicit octal literals such as '071' that could be replaced with explicit ones such as 0o71. Explicit octal literals using the '0o/0O' prefix are supported in PHP 8.1 and later. See Explicit octal integer literal notation (php.net) for details.",
"markdown": "Reports the implicit octal literals such as `071` that could be replaced with explicit ones such as 0o71.\n\n\nExplicit octal literals using the `0o/0O` prefix are supported in PHP 8.1 and later.\n\n\nSee [Explicit octal integer literal notation (php.net)](https://wiki.php.net/rfc/explicit_octal_notation) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpImplicitOctalLiteralUsageInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayIndexImmediatelyRewrittenInspection",
"shortDescription": {
"text": "Array index is immediately rewritten "
},
"fullDescription": {
"text": "Reports the write expressions on array indexes which are immediately overwritten before being accessed.",
"markdown": "Reports the write expressions on array indexes which are immediately overwritten before being accessed."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpArrayIndexImmediatelyRewrittenInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpVarExportUsedWithoutReturnArgumentInspection",
"shortDescription": {
"text": "'var_export' or 'print_r' call is used without 'return' argument"
},
"fullDescription": {
"text": "Reports 'var_export()' and 'print_r()' calls without the 'return' argument when their results are explicitly used. Such calls most probably are a mistake, because 'var_export'/'print_r' always returns 'null'/'true' if no 'argument' is specified.",
"markdown": "Reports `var_export()` and `print_r()` calls without the `return` argument when their results are explicitly used. Such calls most probably are a mistake, because `var_export`/`print_r` always returns `null`/`true` if no `argument` is specified."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpVarExportUsedWithoutReturnArgumentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitMissingTargetForTestInspection",
"shortDescription": {
"text": "Missing target element for PHPUnit test"
},
"fullDescription": {
"text": "Reports the test classes and methods, for which no corresponding production classes or methods were found.",
"markdown": "Reports the test classes and methods, for which no corresponding production classes or methods were found."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitMissingTargetForTestInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIncorrectMagicMethodSignatureInspection",
"shortDescription": {
"text": "Incorrect magic method signature"
},
"fullDescription": {
"text": "Reports incompatible magic methods signatures. See RFC: Ensure correct signatures of magic methods (php.net) for details.",
"markdown": "Reports incompatible magic methods signatures.\n\n\nSee [RFC: Ensure correct signatures of magic methods (php.net)](https://wiki.php.net/rfc/magic-methods-signature) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpIncorrectMagicMethodSignatureInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpGetClassCanBeReplacedWithClassNameLiteralInspection",
"shortDescription": {
"text": "'get_class()' call can be replaced with '::class'"
},
"fullDescription": {
"text": "Reports the 'get_class()' calls and suggests replacing them with '::class' when PHP Language level is set to 8.0 or later. See Allow ::class on objects (php.net) for details.",
"markdown": "Reports the `get_class()` calls and suggests replacing them with `::class` when PHP Language level is set to 8.0 or later.\n\n\nSee [Allow ::class on objects (php.net)](https://wiki.php.net/rfc/class_name_literal_on_object) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpGetClassCanBeReplacedWithClassNameLiteralInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpContinueTargetingSwitchInspection",
"shortDescription": {
"text": "'continue' is targeting 'switch' statement"
},
"fullDescription": {
"text": "Reports the 'continue' statements that are targeting 'switch' statements. In PHP 7.3 and later, such usages are deprecated and will emit an 'E_WARNING', since they are most likely the result of a programming mistake. In PHP, such 'continue' statements are equivalent to 'break', that is, they end the execution of the current 'switch' structure. In other languages, such 'continue' statements behave as 'continue 2' in PHP, that is, they take the execution to a higher level control structure (for example, the next iteration of an outer loop). See continue (php.net), break (php.net), and switch (php.net) for details.",
"markdown": "Reports the `continue` statements that are targeting `switch` statements. In PHP 7.3 and later, such usages are deprecated and will emit an `E_WARNING`, since they are most likely the result of a programming mistake.\n\n* In PHP, such `continue` statements are equivalent to `break`, that is, they end the execution of the current `switch` structure.\n* In other languages, such `continue` statements behave as `continue 2` in PHP, that is, they take the execution to a higher level control structure (for example, the next iteration of an outer loop).\n\n\nSee [continue (php.net)](https://www.php.net/manual/en/control-structures.continue.php), [break (php.net)](https://www.php.net/manual/en/control-structures.break.php), and [switch (php.net)](https://www.php.net/manual/en/control-structures.switch.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpContinueTargetingSwitchInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicateCatchBodyInspection",
"shortDescription": {
"text": "Duplicate branch in 'catch' statement"
},
"fullDescription": {
"text": "Reports 'catch' statements with duplicated bodies.",
"markdown": "Reports `catch` statements with duplicated bodies."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDuplicateCatchBodyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCurlyBraceAccessSyntaxUsageInspection",
"shortDescription": {
"text": "Curly brace access syntax usage"
},
"fullDescription": {
"text": "Reports the usages of curly brace syntax for accessing array elements and string offsets.",
"markdown": "Reports the usages of curly brace syntax for accessing array elements and string offsets."
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "PhpCurlyBraceAccessSyntaxUsageInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRegExpInvalidDelimiterInspection",
"shortDescription": {
"text": "Invalid delimiter"
},
"fullDescription": {
"text": "Reports invalid delimiters in regular expressions in two cases: 1. If a delimiter is an alphanumeric or a backslash. 2. If a delimiter is used in a regular expression pattern.",
"markdown": "Reports invalid delimiters in regular expressions in two cases: 1. If a delimiter is an alphanumeric or a backslash. 2. If a delimiter is used in a regular expression pattern."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpRegExpInvalidDelimiterInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Regular expressions",
"index": 87,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPropertyCanBeReadonlyInspection",
"shortDescription": {
"text": "Property can be 'readonly'"
},
"fullDescription": {
"text": "Reports the private promoted properties that are never written to. In PHP 8.1 and later, such properties can be declared 'readonly'. See Readonly properties (php.net) for details.",
"markdown": "Reports the private promoted properties that are never written to. In PHP 8.1 and later, such properties can be declared `readonly`.\n\n\nSee [Readonly properties (php.net)](https://wiki.php.net/rfc/readonly_properties_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpPropertyCanBeReadonlyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedNamespaceInspection",
"shortDescription": {
"text": "Undefined namespace"
},
"fullDescription": {
"text": "Reports the references to a namespace that is not found.",
"markdown": "Reports the references to a namespace that is not found."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedNamespaceInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedMethodInspection",
"shortDescription": {
"text": "Undefined method"
},
"fullDescription": {
"text": "Reports the references to class methods that are not defined.",
"markdown": "Reports the references to class methods that are not defined."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedMethodInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPropertyNamingConventionInspection",
"shortDescription": {
"text": "Property name is not following coding convention"
},
"fullDescription": {
"text": "Reports the properties' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for properties. Use the inspection options to specify minimum/maximum length and the regular expression expected for properties' names. To ignore the names' length, specify 0. To learn more about regular expressions, refer to the Quick Start guide (regular-expressions.info).",
"markdown": "Reports the properties' names that are either too short, too long, or do not follow the specified regular expression pattern. Some coding styles have a special naming convention for properties.\n\n\nUse the inspection options to specify minimum/maximum length and the regular expression expected for properties' names.\nTo ignore the names' length, specify **0**.\n\n\nTo learn more about regular expressions, refer to the [Quick Start guide (regular-expressions.info)](https://www.regular-expressions.info/quickstart.html)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPropertyNamingConventionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Naming conventions",
"index": 6,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIncompatibleReturnTypeInspection",
"shortDescription": {
"text": "Incompatible return type"
},
"fullDescription": {
"text": "Reports the 'return' statements whose return value type is not compatible with the one declared for a function/method.",
"markdown": "Reports the `return` statements whose return value type is not compatible with the one declared for a function/method."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpIncompatibleReturnTypeInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingStrictTypesDeclarationInspection",
"shortDescription": {
"text": "Missing strict types declaration"
},
"fullDescription": {
"text": "Detects the missing 'declare(strict_types=1)' directive in the file. See Strict typing (php.net) to learn more about why you may need use this directive.",
"markdown": "Detects the missing `declare(strict_types=1)` directive in the file.\n\n\nSee [Strict typing (php.net)](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict) to learn more about why you may need use this directive."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingStrictTypesDeclarationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNamedArgumentMightBeUnresolvedInspection",
"shortDescription": {
"text": "Named argument may be unresolved"
},
"fullDescription": {
"text": "Reports the named arguments in method calls that might be unresolved depending on a specific class instance within the hierarchy.",
"markdown": "Reports the named arguments in method calls that might be unresolved depending on a specific class instance within the hierarchy."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpNamedArgumentMightBeUnresolvedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayTraversableCanBeReplacedWithIterableInspection",
"shortDescription": {
"text": "Type hint 'array|Traversable' can be replaced with 'iterable'"
},
"fullDescription": {
"text": "Reports the 'array|Traversable' type hints that can be replaced with 'iterable'.",
"markdown": "Reports the `array|Traversable` type hints that can be replaced with `iterable`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayTraversableCanBeReplacedWithIterableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpEchoOpenTagInspection",
"shortDescription": {
"text": "Open 'echo' tag usage"
},
"fullDescription": {
"text": "Reports the '<?php echo' usages that can be replaced with a short tag '<?='.",
"markdown": "Reports the `<?php echo` usages that can be replaced with a short tag `<?=`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpEchoOpenTagInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLanguageLevelInspection",
"shortDescription": {
"text": "Language level"
},
"fullDescription": {
"text": "Reports the language features used in source code that are not supported for the selected language level. For example, union types can be used only in PHP 8.0 and later.",
"markdown": "Reports the language features used in source code that are not supported for the selected language level.\n\nFor example, union types can be used only in PHP 8.0 and later."
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "PhpLanguageLevelInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertContainsInspection",
"shortDescription": {
"text": "Deprecated 'assertContains/assertNotContains' usage"
},
"fullDescription": {
"text": "Reports the deprecated 'assertContains()' and 'assertNotContains()' calls with the string '$needle' and '$ignoreCase' arguments. The string '$needle' and optional boolean '$ignoreCase' parameters of the 'assertContains()' and 'assertNotContains()' functions are deprecated and removed in PHPUnit 9. For assertions that operate on strings, the specific 'assertStringContainsString()', 'assertStringContainsStringIgnoringCase()', 'assertStringNotContainsString()', and 'assertStringNotContainsStringIgnoringCase()' methods should be used. See Usage of the assertEquals function (phpunit.readthedocs.io) for details.",
"markdown": "Reports the deprecated `assertContains()` and `assertNotContains()` calls with the string `$needle` and `$ignoreCase` arguments.\n\n\nThe string `$needle` and optional boolean `$ignoreCase` parameters\nof the `assertContains()` and `assertNotContains()` functions are deprecated and removed in PHPUnit 9. For assertions that operate on strings, the specific\n`assertStringContainsString()`, `assertStringContainsStringIgnoringCase()`, `assertStringNotContainsString()`, and\n`assertStringNotContainsStringIgnoringCase()` methods should be used.\n\n\nSee [Usage of the assertEquals function (phpunit.readthedocs.io)](https://phpunit.readthedocs.io/en/stable/assertions.html) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertContainsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAssignmentInConditionInspection",
"shortDescription": {
"text": "Assignment in condition"
},
"fullDescription": {
"text": "Reports the assignments that are used in conditional expressions.",
"markdown": "Reports the assignments that are used in conditional expressions."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpAssignmentInConditionInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryDoubleQuotesInspection",
"shortDescription": {
"text": "Unnecessary double quotes"
},
"fullDescription": {
"text": "Reports double-quoted string literals that do not contain string interpolation, escape sequences, or single quotes.",
"markdown": "Reports double-quoted string literals that do not contain string interpolation, escape sequences, or single quotes."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryDoubleQuotesInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDivisionByZeroInspection",
"shortDescription": {
"text": "Division by zero"
},
"fullDescription": {
"text": "Reports division by zero or modulo by zero.",
"markdown": "Reports division by zero or modulo by zero."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpDivisionByZeroInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNullSafeOperatorCanBeUsedInspection",
"shortDescription": {
"text": "Nullsafe operator '?->' can be used"
},
"fullDescription": {
"text": "Reports the null-checking conditional expressions that can be safely replaced with the '?->' nullsafe operator.",
"markdown": "Reports the null-checking conditional expressions that can be safely replaced with the `?->` nullsafe operator."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNullSafeOperatorCanBeUsedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCommentCanBeReplacedWithNamedArgumentInspection",
"shortDescription": {
"text": "Comment can be replaced with named argument"
},
"fullDescription": {
"text": "Reports the inline comments before arguments in function calls that only contain the name of the parameter and thus serve as hints. In PHP 8.0 and later, named arguments can be used instead. See Named arguments (php.net) for details.",
"markdown": "Reports the inline comments before arguments in function calls that only contain the name of the parameter and thus serve as hints. In PHP 8.0 and later, named arguments can be used instead.\n\n\nSee [Named arguments (php.net)](https://wiki.php.net/rfc/match_expression_v2) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCommentCanBeReplacedWithNamedArgumentInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLineCommentWillBeParsedAsAttributeInspection",
"shortDescription": {
"text": "Comment is parsed as attribute in PHP 8.0"
},
"fullDescription": {
"text": "Reports line comments starting with '#['. In PHP 8.0 and later, such comments are parsed as attributes. See Attributes (php.net) for details.",
"markdown": "Reports line comments starting with `#[`. In PHP 8.0 and later, such comments are parsed as attributes.\n\n\nSee [Attributes (php.net)](https://wiki.php.net/rfc/attributes_v2) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpLineCommentWillBeParsedAsAttributeInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayShapeCanBeAddedInspection",
"shortDescription": {
"text": "'#[ArrayShape]' attribute can be added"
},
"fullDescription": {
"text": "Reports the methods and functions that are returning arrays with known non-trivial keys. Suggests specifying the shape of the returned array via the '#[ArrayShape]' attribute or an array shape in the PHPDoc comment.",
"markdown": "Reports the methods and functions that are returning arrays with known non-trivial keys. Suggests specifying the shape of the returned array via the `#[ArrayShape]` attribute or an array shape in the PHPDoc comment."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayShapeCanBeAddedInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantCatchClauseInspection",
"shortDescription": {
"text": "Redundant catch clause"
},
"fullDescription": {
"text": "Reports the 'catch' clauses with exceptions that are never thrown from the corresponding 'try' block.",
"markdown": "Reports the `catch` clauses with exceptions that are never thrown from the corresponding `try` block."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantCatchClauseInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Error handling",
"index": 94,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnpackedArgumentTypeMismatchInspection",
"shortDescription": {
"text": "Invalid type of unpacked argument"
},
"fullDescription": {
"text": "Reports unpacked function arguments and array elements whose type is neither 'array' nor 'Traversable'. Starting with PHP 8.0, such usages will result in 'Fatal error'.",
"markdown": "Reports unpacked function arguments and array elements whose type is neither `array` nor `Traversable`.\n\n\nStarting with PHP 8.0, such usages will result in `Fatal error`."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUnpackedArgumentTypeMismatchInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryLeadingBackslashInUseStatementInspection",
"shortDescription": {
"text": "Unnecessary leading '\\' in 'use' statement"
},
"fullDescription": {
"text": "Reports the 'use' statements with an unnecessary leading '\\'. For namespaced names (fully qualified namespace names containing a namespace separator, such as 'Foo\\Bar' as opposed to global names that do not, such as 'FooBar'), the leading backslash is unnecessary and not recommended, as import names must be fully qualified and are not processed relative to the current namespace. See Using namespaces: Aliasing/Importing (php.net) for details.",
"markdown": "Reports the `use` statements with an unnecessary leading `\\`.\n\n\nFor namespaced names (fully qualified namespace names containing a namespace separator, such as `Foo\\Bar` as opposed to global names that do not, such as `FooBar`), the leading backslash is unnecessary and not recommended, as import names must be fully qualified and are not processed relative to the current namespace.\n\n\nSee [Using namespaces: Aliasing/Importing (php.net)](https://www.php.net/manual/en/language.namespaces.importing.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryLeadingBackslashInUseStatementInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertTrueWithIncompatibleTypeArgumentInspection",
"shortDescription": {
"text": "'assertTrue()' with incompatible argument type"
},
"fullDescription": {
"text": "Reports the PHPUnit 'assertTrue()' calls whose arguments are of incompatible types. Since the 'assertTrue()' method relies on strict types comparison with 'true', such assertions will always fail.",
"markdown": "Reports the PHPUnit `assertTrue()` calls whose arguments are of incompatible types. Since the `assertTrue()` method relies on strict types comparison with `true`, such assertions will always fail."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUnitAssertTrueWithIncompatibleTypeArgumentInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicateOperandInComparisonInspection",
"shortDescription": {
"text": "Duplicate operand in comparison"
},
"fullDescription": {
"text": "Reports duplicate operands in binary expressions ('+', '-', '*', '/', '&&', '||', and '.') that are in turn used inside comparison expressions. Such operands do not affect the comparison result and can be safely removed.",
"markdown": "Reports duplicate operands in binary expressions (`+`, `-`, `*`, `/`, `&&`, `||`, and `.`) that are in turn used inside comparison expressions. Such operands do not affect the comparison result and can be safely removed."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDuplicateOperandInComparisonInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedClassInspection",
"shortDescription": {
"text": "Undefined class"
},
"fullDescription": {
"text": "Reports the references to classes whose declarations are not found in the project files, configured include paths, or among the PHP predefined classes. Use the options below to customize the inspection: Ignore PHPDoc: if selected, the inspection will not report the undefined classes referenced in PHPDoc blocks.",
"markdown": "Reports the references to classes whose declarations are not found in the project files, configured include paths, or among the PHP predefined classes.\n\nUse the options below to customize the inspection:\n\n* **Ignore PHPDoc**: if selected, the inspection will not report the undefined classes referenced in PHPDoc blocks."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedClassInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNestedMinMaxCallInspection",
"shortDescription": {
"text": "Nested 'min/max' call"
},
"fullDescription": {
"text": "Reports nested 'min'/'max' calls. Since the 'min'/'max' functions accept any number of arguments, such nested calls are redundant.",
"markdown": "Reports nested `min`/`max` calls. Since the `min`/`max` functions accept any number of arguments, such nested calls are redundant."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNestedMinMaxCallInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPluralMixedCanBeReplacedWithArrayInspection",
"shortDescription": {
"text": "'mixed' type can be replaced with 'array'"
},
"fullDescription": {
"text": "Reports the 'mixed[]' usages in PHPDoc blocks that can be safely replaced with 'array'.",
"markdown": "Reports the `mixed[]` usages in PHPDoc blocks that can be safely replaced with `array`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPluralMixedCanBeReplacedWithArrayInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCompoundNamespaceDepthInspection",
"shortDescription": {
"text": "Compound namespace depth is more than 2"
},
"fullDescription": {
"text": "Reports the usages of compound namespaces whose depth exceeds two levels. According to PSR-12, compound namespaces with a depth of more than two MUST NOT be used. See PSR-12: Extended Coding Style (php-fig.org) for details.",
"markdown": "Reports the usages of compound namespaces whose depth exceeds two levels.\n\nAccording to PSR-12, compound namespaces with a depth of more than two MUST NOT be used.\n\n\nSee [PSR-12: Extended Coding Style (php-fig.org)](https://www.php-fig.org/psr/psr-12/#3-declare-statements-namespace-and-import-statements) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpCompoundNamespaceDepthInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style/PSR-12",
"index": 81,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArgumentWithoutNamedIdentifierInspection",
"shortDescription": {
"text": "Argument without name identifier"
},
"fullDescription": {
"text": "Reports arguments without name identifiers.",
"markdown": "Reports arguments without name identifiers."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArgumentWithoutNamedIdentifierInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDuplicatedCharacterInStrFunctionCallInspection",
"shortDescription": {
"text": "Duplicate character in function call"
},
"fullDescription": {
"text": "Reports duplicate characters provided in the 'characters' argument of functions like 'ltrim' or 'str_words_counts'. Such duplicates are most probably a mistake and can be safely removed.",
"markdown": "Reports duplicate characters provided in the `characters` argument of functions like `ltrim` or `str_words_counts`. Such duplicates are most probably a mistake and can be safely removed."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpDuplicatedCharacterInStrFunctionCallInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUndefinedConstantInspection",
"shortDescription": {
"text": "Undefined constant"
},
"fullDescription": {
"text": "Reports the references to constants that are not found in the project files, configured include paths, or among the PHP predefined constants.",
"markdown": "Reports the references to constants that are not found in the project files, configured include paths, or among the PHP predefined constants."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpUndefinedConstantInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUncoveredEnumCasesInspection",
"shortDescription": {
"text": "Some enum cases are uncovered"
},
"fullDescription": {
"text": "Reports the 'match' expressions that don't cover all 'enum' cases in 'match' arm conditions.",
"markdown": "Reports the `match` expressions that don't cover all `enum` cases in `match` arm conditions."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpUncoveredEnumCasesInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMethodOrClassCallIsNotCaseSensitiveInspection",
"shortDescription": {
"text": "Case mismatch in method call or class usage"
},
"fullDescription": {
"text": "Reports the usages of functions, methods, classes, and namespaces that do not match the case used in their declarations.",
"markdown": "Reports the usages of functions, methods, classes, and namespaces that do not match the case used in their declarations."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMethodOrClassCallIsNotCaseSensitiveInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAccessStaticViaInstanceInspection",
"shortDescription": {
"text": "Class static member accessed via instance"
},
"fullDescription": {
"text": "Reports references to static methods and fields via a class instance rather than the class itself. Even though referring to static members via instance variables is allowed by PHP, this makes the code confusing, as the reader may think that the result of the method depends on the instance. The quick-fix replaces the instance variable with the class name. Example: 'class StaticClass {\n public static function someStaticFunction(): int\n {\n return 3;\n }\n\n }\n\n $var = new StaticClass\n $var::someStaticFunction();' After the quick-fix is applied: 'StaticClass::someStaticFunction()'",
"markdown": "Reports references to static methods and fields via a class instance rather than the class itself.\n\nEven though referring to static members via instance variables is allowed by PHP,\nthis makes the code confusing, as the reader may think that the result of the method depends on the instance.\n\nThe quick-fix replaces the instance variable with the class name.\n\nExample:\n\n\n class StaticClass {\n public static function someStaticFunction(): int\n {\n return 3;\n }\n\n }\n\n $var = new StaticClass\n $var::someStaticFunction();\n\nAfter the quick-fix is applied:\n\n\n StaticClass::someStaticFunction()\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpAccessStaticViaInstanceInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAttributeCanBeAddedToOverriddenMemberInspection",
"shortDescription": {
"text": "Attribute can be added to overriding member "
},
"fullDescription": {
"text": "Reports the methods' and parameters' attributes that can be propagated to overriding methods/parameters. See Attributes (php.net) for details.",
"markdown": "Reports the methods' and parameters' attributes that can be propagated to overriding methods/parameters.\n\n\nSee [Attributes (php.net)](https://wiki.php.net/rfc/attributes_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpAttributeCanBeAddedToOverriddenMemberInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRegExpRedundantModifierInspection",
"shortDescription": {
"text": "Redundant modifier"
},
"fullDescription": {
"text": "Reports the 'i' (case insensitivity) modifiers that are used in regular expression patterns containing no letters. Such modifiers are redundant and can be safely removed.",
"markdown": "Reports the `i` (case insensitivity) modifiers that are used in regular expression patterns containing no letters. Such modifiers are redundant and can be safely removed."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRegExpRedundantModifierInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Regular expressions",
"index": 87,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedundantDocCommentInspection",
"shortDescription": {
"text": "Redundant PHPDoc comment"
},
"fullDescription": {
"text": "Reports PHPDoc comments or their parts that contain the information already provided in declarations.",
"markdown": "Reports PHPDoc comments or their parts that contain the information already provided in declarations."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpRedundantDocCommentInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedPrivateFieldInspection",
"shortDescription": {
"text": "Unused private property"
},
"fullDescription": {
"text": "Reports the private properties that are never used.",
"markdown": "Reports the private properties that are never used."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedPrivateFieldInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Unused symbols",
"index": 45,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSingleStatementWithBracesInspection",
"shortDescription": {
"text": "Single-statement body with braces"
},
"fullDescription": {
"text": "Reports the control structures (such as loops or conditionals) whose bodies are enclosed in braces but only contain a single child statement. Using braces in such cases is not necessary. See Control structures (php.net) for details.",
"markdown": "Reports the control structures (such as loops or conditionals) whose bodies are enclosed in braces but only contain a single child statement. Using braces in such cases is not necessary.\n\n\nSee [Control structures (php.net)](https://www.php.net/manual/en/language.control-structures.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpSingleStatementWithBracesInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryBoolCastInspection",
"shortDescription": {
"text": "Redundant cast to boolean"
},
"fullDescription": {
"text": "Reports the '(bool)'/'(boolean)' casts and 'boolval()' calls that are redundant since casting to 'bool' is performed implicitly.",
"markdown": "Reports the `(bool)`/`(boolean)` casts and `boolval()` calls that are redundant since casting to `bool` is performed implicitly."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryBoolCastInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnnecessaryElseBranchInspection",
"shortDescription": {
"text": "Unnecessary 'else' branch"
},
"fullDescription": {
"text": "Reports the 'else' branches in 'if' statements whose bodies always execute a terminating statement such as 'return' or 'throw'. Such branches are redundant and can be safely omitted.",
"markdown": "Reports the `else` branches in `if` statements whose bodies always execute a terminating statement such as `return` or `throw`. Such branches are redundant and can be safely omitted."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnnecessaryElseBranchInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedMatchConditionInspection",
"shortDescription": {
"text": "Unused 'match' condition"
},
"fullDescription": {
"text": "Reports the conditions in 'match' expressions that will never be matched. Similarly to PHP Engine behavior, the inspection uses strict comparison ('===') to check the types in 'match' conditions against the 'match' argument type, regardless of the 'strict_types' directive. Since no type coercion occurs, some conditions may be non-matched due to non-matching types. See Match expression (php.net) for details.",
"markdown": "Reports the conditions in `match` expressions that will never be matched.\n\n\nSimilarly to PHP Engine behavior, the inspection uses strict comparison (`===`) to check the types in `match` conditions against the `match` argument type, regardless of the `strict_types` directive. Since no type coercion occurs, some conditions may be non-matched due to non-matching types.\n\n\nSee [Match expression (php.net)](https://wiki.php.net/rfc/match_expression_v2) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedMatchConditionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpComposerDuplicatedRequirementInspection",
"shortDescription": {
"text": "Duplicate package entries in composer.json"
},
"fullDescription": {
"text": "Reports duplicate package entries in the 'require' and 'require-dev' sections of composer.json.",
"markdown": "Reports duplicate package entries in the `require` and `require-dev` sections of *composer.json*."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpComposerDuplicatedRequirementInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Composer",
"index": 47,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpExpressionResultUnusedInspection",
"shortDescription": {
"text": "Expression result unused"
},
"fullDescription": {
"text": "Reports the expressions that are calculated, but the calculation result is not used anywhere. Such errors can be caused, for example, by misspelling the '=' operator as '=='.",
"markdown": "Reports the expressions that are calculated, but the calculation result is not used anywhere.\n\nSuch errors can be caused, for example, by misspelling the `=` operator as `==`."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpExpressionResultUnusedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInternalEntityUsedInspection",
"shortDescription": {
"text": "Usage of internal entity"
},
"fullDescription": {
"text": "Reports the usages of the entities that are marked as '@internal' and are located in different source roots. The usages located in the same source root are not reported. In most cases, the reported usages should be removed or replaced with other constructs.",
"markdown": "Reports the usages of the entities that are marked as `@internal` and are located in different source roots. The usages located in the same source root are not reported.\n\n\nIn most cases, the reported usages should be removed or replaced with other constructs."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpInternalEntityUsedInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPointlessBooleanExpressionInConditionInspection",
"shortDescription": {
"text": "Pointless boolean expression inside 'if' condition"
},
"fullDescription": {
"text": "Reports the boolean expressions inside 'if' conditions that contain '$expr == true' or '$expr == false'. Such expressions can be simplified to 'if($expr)' and 'if(!expr)'.",
"markdown": "Reports the boolean expressions inside `if` conditions that contain `$expr == true` or `$expr == false`. Such expressions can be simplified to `if($expr)` and `if(!expr)`."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPointlessBooleanExpressionInConditionInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpNamedArgumentsWithChangedOrderInspection",
"shortDescription": {
"text": "Named arguments order does not match parameters order"
},
"fullDescription": {
"text": "Reports named argument with order that does not match parameter order",
"markdown": "Reports named argument with order that does not match parameter order"
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpNamedArgumentsWithChangedOrderInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpCaseWithValueNotFoundInEnumInspection",
"shortDescription": {
"text": "Case with specified value not found in enum"
},
"fullDescription": {
"text": "Reports the arguments of enum's 'from' method calls that are not found in target enum classes. See Enumerations (php.net) for details.",
"markdown": "Reports the arguments of enum's `from` method calls that are not found in target enum classes.\n\n\nSee [Enumerations (php.net)](https://wiki.php.net/rfc/enumerations) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpCaseWithValueNotFoundInEnumInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIdempotentOperationInspection",
"shortDescription": {
"text": "Idempotent operation in binary expression"
},
"fullDescription": {
"text": "Reports the binary expression operands that do not change the expression result (such as '+ 0' or '. \"\"') and are therefore redundant.",
"markdown": "Reports the binary expression operands that do not change the expression result (such as `+ 0` or `. \"\"`) and are therefore redundant."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIdempotentOperationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLoopCanBeReplacedWithImplodeInspection",
"shortDescription": {
"text": "Loop can be replaced with 'implode()'"
},
"fullDescription": {
"text": "Reports the 'foreach' loops that can be safely replaced with 'implode()' calls. See implode (php.net) for details.",
"markdown": "Reports the `foreach` loops that can be safely replaced with `implode()` calls.\n\n\nSee [implode (php.net)](https://www.php.net/manual/en/function.implode.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLoopCanBeReplacedWithImplodeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpConcatenationWithArithmeticInspection",
"shortDescription": {
"text": "Concatenation with arithmetic usage"
},
"fullDescription": {
"text": "Reports the string concatenation expressions that are used together with '+', '-', '<<', and '>>' operators. Starting with PHP 8, the concatenation operation has lower precedence and such expressions can thus produce unexpected results. See Concatenation precedence (php.net) for details.",
"markdown": "Reports the string concatenation expressions that are used together with `+`, `-`, `<<`, and `>>` operators. Starting with PHP 8, the concatenation operation has lower precedence and such expressions can thus produce unexpected results.\n\n\nSee [Concatenation precedence (php.net)](https://wiki.php.net/rfc/concatenation_precedence) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpConcatenationWithArithmeticInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpToStringImplementationInspection",
"shortDescription": {
"text": "Method '__toString' implementation"
},
"fullDescription": {
"text": "Reports the attempts to convert the objects having no '__toString' method implementation to 'string'. Prior to PHP 7.4, this would lead to a fatal 'E_RECOVERABLE_ERROR' level error. In PHP 7.4, a fatal non-recoverable 'ERROR' is thrown. In PHP 8.0, the return value follows the standard PHP type semantics and will be coerced into a string if possible and if strict typing is disabled. If the Check __toString exists for each expression type option is enabled, the inspection will check all possible types of the expression and report if at least one of them doesn't contain the '__toString' method implementation. See __toString (php.net) for details.",
"markdown": "Reports the attempts to convert the objects having no `__toString` method implementation to `string`.\n\n\nPrior to PHP 7.4, this would lead to a fatal `E_RECOVERABLE_ERROR` level error. In PHP 7.4, a fatal non-recoverable `ERROR` is thrown. In PHP 8.0, the return value follows the standard PHP type semantics and will be coerced into a string if possible and if strict typing is disabled.\n\n\nIf the **Check __toString exists for each expression type** option is enabled, the inspection will check all possible types of the expression and\nreport if at least one of them doesn't contain the `__toString` method implementation.\n\n\nSee [__toString (php.net)](https://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpToStringImplementationInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayAccessCanBeReplacedWithForeachValueInspection",
"shortDescription": {
"text": "Array access can be replaced with 'foreach' value"
},
"fullDescription": {
"text": "Reports the array access expressions inside 'foreach' loops that can be replaced with a 'foreach' value.",
"markdown": "Reports the array access expressions inside `foreach` loops that can be replaced with a `foreach` value."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayAccessCanBeReplacedWithForeachValueInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertCanBeReplacedWithFailInspection",
"shortDescription": {
"text": "Assertion can be replaced with 'fail'"
},
"fullDescription": {
"text": "Reports the 'assertTrue()'/'assertFalse()' calls with the 'false'/'true' arguments in PHPUnit tests. Such usages can be replaced with 'fail()' calls to indicate that a test is expected to fail.",
"markdown": "Reports the `assertTrue()`/`assertFalse()` calls with the `false`/`true` arguments in PHPUnit tests. Such usages can be replaced with `fail()` calls to indicate that a test is expected to fail."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertCanBeReplacedWithFailInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpLoopCanBeConvertedToArrayFilterInspection",
"shortDescription": {
"text": "Loop can be converted to 'array_filter()' call"
},
"fullDescription": {
"text": "Reports the 'foreach' loops that can be replaced with 'array_filter()' calls.",
"markdown": "Reports the `foreach` loops that can be replaced with `array_filter()` calls."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpLoopCanBeConvertedToArrayFilterInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitInvalidMockingEntityInspection",
"shortDescription": {
"text": "Invalid PHPUnit mocking target"
},
"fullDescription": {
"text": "Reports the methods and classes that are incorrectly mocked in PHPUnit tests. The following entities are reported: Enums and 'final' classes 'private', 'static', or 'final' methods Duplicate methods provided in the mocked methods lists via 'addMethods()', 'onlyMethods()', 'setMethods()', and so on.",
"markdown": "Reports the methods and classes that are incorrectly mocked in PHPUnit tests.\n\n\nThe following entities are reported:\n\n* Enums and `final` classes\n* `private`, `static`, or `final` methods\n* Duplicate methods provided in the mocked methods lists via `addMethods()`, `onlyMethods()`, `setMethods()`, and so on."
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "PhpUnitInvalidMockingEntityInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitAssertCanBeReplacedWithEmptyInspection",
"shortDescription": {
"text": "Assertion can be replaced with 'assertEmpty/assertNotEmpty'"
},
"fullDescription": {
"text": "Reports the 'assertTrue'/'assertFalse' usages that can be replaced with 'assertEmpty'/'assertNotEmpty' in PHPUnit tests. See assertEmpty (phpunit.readthedocs.io) for details.",
"markdown": "Reports the `assertTrue`/`assertFalse` usages that can be replaced with `assertEmpty`/`assertNotEmpty` in PHPUnit tests.\n\n\nSee [assertEmpty (phpunit.readthedocs.io)](https://phpunit.readthedocs.io/en/stable/assertions.html#assertempty) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitAssertCanBeReplacedWithEmptyInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedLocalVariableInspection",
"shortDescription": {
"text": "Unused local variable"
},
"fullDescription": {
"text": "Reports the variables that are considered unused in the following cases: The value of the variable is not used anywhere or is overwritten immediately. The reference stored in the variable is not used anywhere or is overwritten immediately.",
"markdown": "Reports the variables that are considered unused in the following cases:\n\n* The value of the variable is not used anywhere or is overwritten immediately.\n* The reference stored in the variable is not used anywhere or is overwritten immediately."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedLocalVariableInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Unused symbols",
"index": 45,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAssignmentReplaceableWithOperatorAssignmentInspection",
"shortDescription": {
"text": "Assignment can be replaced with operator assignment"
},
"fullDescription": {
"text": "Reports the assignments that can be replaced with combined operator assignments (for example, '+=').",
"markdown": "Reports the assignments that can be replaced with combined operator assignments (for example, `+=`)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpAssignmentReplaceableWithOperatorAssignmentInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Replaceable assignments",
"index": 109,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpIgnoredClassAliasDeclaration",
"shortDescription": {
"text": "Ignored class alias declaration"
},
"fullDescription": {
"text": "Reports the class alias declarations that are ignored by the IDE because the actual class declaration with the same FQN exists. The inspection is intended to clarify the IDE’s behavior in the cases when both the class and the class alias declarations are present. When several declarations with the same FQN exist, the IDE usually fails to choose a single one between them. This leads to incorrect code completion, erroneous type inference, and so on. Since the class declaration prevails over the class alias declaration, the latter becomes redundant and therefore ignored by the IDE. Note that ignoring class alias declarations does not affect the behavior of the PHP interpreter.",
"markdown": "Reports the class alias declarations that are ignored by the IDE because the actual class declaration with the same FQN exists.\n\n\nThe inspection is intended to clarify the IDE's behavior in the cases when both the class and the class alias declarations are present.\nWhen several declarations with the same FQN exist, the IDE usually fails to choose a single one between them.\nThis leads to incorrect code completion, erroneous type inference, and so on. Since the class declaration prevails\nover the class alias declaration, the latter becomes redundant and therefore ignored by the IDE.\n\n\nNote that ignoring class alias declarations does not affect the behavior of the PHP interpreter."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpIgnoredClassAliasDeclaration",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpStatementHasEmptyBodyInspection",
"shortDescription": {
"text": "Statement has empty body"
},
"fullDescription": {
"text": "Reports the statements that have empty bodies. While occasionally useful, such statements are often the result of typos and may cause confusion.",
"markdown": "Reports the statements that have empty bodies.\n\nWhile occasionally useful, such statements are often the result of typos and may cause confusion."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpStatementHasEmptyBodyInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPureFunctionMayProduceSideEffectsInspection",
"shortDescription": {
"text": "Pure function may produce side effects"
},
"fullDescription": {
"text": "Reports the '#[Pure]' annotations used on functions that may produce side effects.",
"markdown": "Reports the `#[Pure]` annotations used on functions that may produce side effects."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpPureFunctionMayProduceSideEffectsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Attributes",
"index": 56,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRedeclarationStdlibFunctionInspection",
"shortDescription": {
"text": "Redeclaration of standard library function"
},
"fullDescription": {
"text": "Reports the redeclaration of standard library functions. Functions from the standard library cannot be redeclared in user code.",
"markdown": "Reports the redeclaration of standard library functions. Functions from the standard library cannot be redeclared in user code."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpRedeclarationStdlibFunctionInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpForeachNestedOuterKeyValueVariablesConflictInspection",
"shortDescription": {
"text": "Nested vs outer 'foreach' variables conflict"
},
"fullDescription": {
"text": "Reports the variables that are used as a key or value both by the inner and outer 'foreach' loops. In most cases, this is an error or may result in an error in the future.",
"markdown": "Reports the variables that are used as a key or value both by the inner and outer `foreach` loops. In most cases, this is an error or may result in an error in the future."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpForeachNestedOuterKeyValueVariablesConflictInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSwitchWithCommonPartsInspection",
"shortDescription": {
"text": "'switch' with common parts"
},
"fullDescription": {
"text": "Reports the 'switch' statements with duplicated common parts.",
"markdown": "Reports the 'switch' statements with duplicated common parts."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpSwitchWithCommonPartsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Control flow",
"index": 15,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMethodParametersCountMismatchInspection",
"shortDescription": {
"text": "Parameters number mismatch declaration"
},
"fullDescription": {
"text": "Reports the function/method calls that take more parameters than specified in their declaration.",
"markdown": "Reports the function/method calls that take more parameters than specified in their declaration."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMethodParametersCountMismatchInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpSwitchCaseWithoutDefaultBranchInspection",
"shortDescription": {
"text": "Switch statement without default branch"
},
"fullDescription": {
"text": "Reports the 'switch' statements without a default branch.",
"markdown": "Reports the `switch` statements without a default branch."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpSwitchCaseWithoutDefaultBranchInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpParameterByRefIsNotUsedAsReferenceInspection",
"shortDescription": {
"text": "Unnecessary pass-by-ref"
},
"fullDescription": {
"text": "Reports the variables that are passed by reference to a function/method but are not modified in the function/method body. In such cases, the '&' in parameter's declaration can be safely removed. See Passing by Reference (php.net) for details.",
"markdown": "Reports the variables that are passed by reference to a function/method but are not modified in the function/method body. In such cases, the `&` in parameter's declaration can be safely removed.\n\n\nSee [Passing by Reference (php.net)](https://www.php.net/manual/en/language.references.pass.php) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpParameterByRefIsNotUsedAsReferenceInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpExceptionImmediatelyRethrownInspection",
"shortDescription": {
"text": "Exception is immediately rethrown"
},
"fullDescription": {
"text": "Reports the 'catch' statements that only rethrow a caught exception, which is located in a class hierarchy different from the subsequent exception types.",
"markdown": "Reports the `catch` statements that only rethrow a caught exception, which is located in a class hierarchy different from the subsequent exception types."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpExceptionImmediatelyRethrownInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpHierarchyChecksInspection",
"shortDescription": {
"text": "Class hierarchy checks"
},
"fullDescription": {
"text": "Checks the classes' hierarchy: abstract methods implementation, the compatibility of implementing/overriding methods with their declarations in parent classes, and properties' types redeclarations. All reported violations result in PHP fatal errors. It is not recommended disabling or suppressing this inspection.",
"markdown": "Checks the classes' hierarchy: abstract methods implementation, the compatibility of implementing/overriding methods with their declarations in parent classes, and properties' types redeclarations.\n\nAll reported violations result in PHP fatal errors. It is not recommended disabling or suppressing this inspection."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpHierarchyChecksInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "LaravelPintValidationInspection",
"shortDescription": {
"text": "Laravel Pint validation"
},
"fullDescription": {
"text": "Reports coding style problems detected by Laravel Pint. The inspection requires Laravel Pint to be properly installed and set up in the IDE under Settings | PHP | Quality Tools | Laravel Pint. To learn more about Laravel Pint installation, see Laravel Pint.",
"markdown": "Reports coding style problems detected by Laravel Pint.\n\n\nThe inspection requires Laravel Pint to be properly installed and set up in the IDE under\n[Settings \\| PHP \\| Quality Tools \\| Laravel Pint](settings://settings.php.quality.tools?Laravel%20Pint).\n\n\nTo learn more about Laravel Pint installation, see [Laravel Pint](https://laravel.com/docs/10.x/pint#installation)."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "LaravelPintValidationInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Quality tools",
"index": 89,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPropertyOnlyWrittenInspection",
"shortDescription": {
"text": "Property usages have same access"
},
"fullDescription": {
"text": "Reports the private properties that are: written but never read read but never written",
"markdown": "Reports the private properties that are:\n\n* written but never read\n* read but never written"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpPropertyOnlyWrittenInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMultipleClassDeclarationsInspection",
"shortDescription": {
"text": "Multiple class declarations"
},
"fullDescription": {
"text": "Reports the references to classes that have multiple declarations in project files. Use the options below to customize the inspection: Ignore PHPDoc: if selected, the inspection will not report multiple declarations of classes referenced in PHPDoc blocks.",
"markdown": "Reports the references to classes that have multiple declarations in project files.\n\nUse the options below to customize the inspection:\n\n* **Ignore PHPDoc**: if selected, the inspection will not report multiple declarations of classes referenced in PHPDoc blocks."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMultipleClassDeclarationsInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Undefined symbols",
"index": 31,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpMissingFieldTypeInspection",
"shortDescription": {
"text": "Missing property's type declaration"
},
"fullDescription": {
"text": "Reports the properties that have no type declaration.",
"markdown": "Reports the properties that have no type declaration."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpMissingFieldTypeInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpInvalidStringOffsetUsageInspection",
"shortDescription": {
"text": "Invalid string offset usage"
},
"fullDescription": {
"text": "Reports invalid string offset usages that will result in a runtime error. The following usages are reported: Using string offsets as objects or arrays Unsetting string offsets via 'unset' Passing string offsets by reference Creating references to or from string offsets Incrementing or decrementing string offsets Using combined operator assignments such as '+=' or '.=' on string offsets Assigning string offsets with empty strings or strings with length >1",
"markdown": "Reports invalid string offset usages that will result in a runtime error.\n\n\nThe following usages are reported:\n\n* Using string offsets as objects or arrays\n* Unsetting string offsets via `unset`\n* Passing string offsets by reference\n* Creating references to or from string offsets\n* Incrementing or decrementing string offsets\n* Using combined operator assignments such as `+=` or `.=` on string offsets\n* Assigning string offsets with empty strings or strings with length \\>1"
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpInvalidStringOffsetUsageInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpWrongForeachArgumentTypeInspection",
"shortDescription": {
"text": "Invalid argument supplied for 'foreach()'"
},
"fullDescription": {
"text": "Reports the 'foreach' constructs used on variables of the 'string', 'float', 'int', or 'boolean' type. See foreach (php.net) for details.",
"markdown": "Reports the `foreach` constructs used on variables of the `string`, `float`, `int`, or `boolean` type.\n\n\nSee [foreach (php.net)](http://www.php.net/manual/en/control-structures.foreach.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PhpWrongForeachArgumentTypeInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/Type compatibility",
"index": 29,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTooManyParametersInspection",
"shortDescription": {
"text": "Too many parameters in function declaration"
},
"fullDescription": {
"text": "Reports the function/method declarations with the number of parameters exceeding the specified limit.",
"markdown": "Reports the function/method declarations with the number of parameters exceeding the specified limit."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpTooManyParametersInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code smell",
"index": 3,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpArrayFilterCanBeConvertedToLoopInspection",
"shortDescription": {
"text": "'array_filter()' call can be converted to loop"
},
"fullDescription": {
"text": "Reports the 'array_filter()' calls that can be replaced with 'foreach' loops.",
"markdown": "Reports the `array_filter()` calls that can be replaced with `foreach` loops."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpArrayFilterCanBeConvertedToLoopInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/Code style",
"index": 5,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpClassImplementsSolelyTraversableInspection",
"shortDescription": {
"text": "Class can't implement Traversable directly"
},
"fullDescription": {
"text": "Reports the classes that are implementing the 'Traversable' interface alone, not as part of 'Iterator' or 'IteratorAggregate' interfaces. The 'Traversable' interface is an internal engine interface; it cannot be implemented in PHP scripts. See The Traversable interface (php.net) for details.",
"markdown": "Reports the classes that are implementing the `Traversable` interface alone, not as part of `Iterator` or `IteratorAggregate` interfaces.\n\n\nThe `Traversable` interface is an internal engine interface; it cannot be implemented in PHP scripts. See [The Traversable interface (php.net)](https://www.php.net/manual/en/class.traversable.php) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "error",
"parameters": {
"suppressToolId": "PhpClassImplementsSolelyTraversableInspection",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnusedSwitchBranchInspection",
"shortDescription": {
"text": "Unused 'switch' branch"
},
"fullDescription": {
"text": "Reports the branches in 'switch' statements that do not belong to the set of enum cases and as a result are never executed. See Enumerations (php.net) for details.",
"markdown": "Reports the branches in `switch` statements that do not belong to the set of enum cases and as a result are never executed.\n\n\nSee [Enumerations (php.net)](https://wiki.php.net/rfc/enumerations) for details."
},
"defaultConfiguration": {
"enabled": true,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnusedSwitchBranchInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/Probable bugs",
"index": 11,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpPromotedFieldUsageInspection",
"shortDescription": {
"text": "Promoted property usage"
},
"fullDescription": {
"text": "Reports properties declared through promoted constructor parameters. Using promoted properties is only possible since PHP 8.0. In earlier PHP versions, it leads to a parse error. See Constructor Property Promotion (php.net) for details.",
"markdown": "Reports properties declared through promoted constructor parameters.\n\n\nUsing promoted properties is only possible since PHP 8.0. In earlier PHP versions, it leads to a parse error.\n\n\nSee [Constructor Property Promotion (php.net)](https://wiki.php.net/rfc/constructor_promotion) for details."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpPromotedFieldUsageInspection",
"ideaSeverity": "INFORMATION",
"qodanaSeverity": "Info"
}
},
"relationships": [
{
"target": {
"id": "PHP/General",
"index": 8,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpDocFieldTypeMismatchInspection",
"shortDescription": {
"text": "Type doesn't match property's declared type"
},
"fullDescription": {
"text": "Reports the properties' types in PHPDoc '@var' tags that do not match the declared type of a property.",
"markdown": "Reports the properties' types in PHPDoc `@var` tags that do not match the declared type of a property."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpDocFieldTypeMismatchInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPDoc",
"index": 4,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpUnitDeprecatedDataProviderSignatureInspection",
"shortDescription": {
"text": "Deprecated usage of data provider since PHPUnit 10"
},
"fullDescription": {
"text": "Reports the references to functions/methods in the '@dataProvider' PHPDoc tag that are resolved to non-static or non-public methods. Usage of these methods as PHPUnit data providers is deprecated starting from PHPUnit 10.",
"markdown": "Reports the references to functions/methods in the `@dataProvider` PHPDoc tag that are resolved to non-static or non-public methods. Usage of these methods as PHPUnit data providers is deprecated starting from PHPUnit 10."
},
"defaultConfiguration": {
"enabled": false,
"level": "note",
"parameters": {
"suppressToolId": "PhpUnitDeprecatedDataProviderSignatureInspection",
"ideaSeverity": "WEAK WARNING",
"qodanaSeverity": "Moderate"
}
},
"relationships": [
{
"target": {
"id": "PHP/PHPUnit",
"index": 25,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
}
],
"language": "en-US",
"contents": [
"localizedData",
"nonLocalizedData"
],
"isComprehensive": false
},
{
"name": "com.jetbrains.sh",
"version": "232.10072.32",
"rules": [
{
"id": "ShellCheck",
"shortDescription": {
"text": "ShellCheck"
},
"fullDescription": {
"text": "Reports shell script bugs detected by the integrated ShellCheck static analysis tool.",
"markdown": "Reports shell script bugs detected by the integrated [ShellCheck](https://github.com/koalaman/shellcheck) static analysis tool."
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "ShellCheck",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "Shell script",
"index": 7,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
}
],
"language": "en-US",
"contents": [
"localizedData",
"nonLocalizedData"
],
"isComprehensive": false
},
{
"name": "Karma",
"version": "232.10072.32",
"rules": [
{
"id": "KarmaConfigFile",
"shortDescription": {
"text": "Invalid Karma configuration file"
},
"fullDescription": {
"text": "Reports a potential error in a file path ('basePath', 'files') for a Karma configuration file, for example, 'karma.conf.js'.",
"markdown": "Reports a potential error in a file path ('basePath', 'files') for a Karma configuration file, for example, `karma.conf.js`."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "KarmaConfigFile",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "JavaScript and TypeScript/Unit testing",
"index": 10,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
}
],
"language": "en-US",
"contents": [
"localizedData",
"nonLocalizedData"
],
"isComprehensive": false
},
{
"name": "com.intellij.database",
"version": "232.10072.32",
"rules": [
{
"id": "MysqlLoadDataPathInspection",
"shortDescription": {
"text": "LOAD statement path"
},
"fullDescription": {
"text": "Reports paths that start with the tilde character in LOAD statements. Example (MySQL): 'CREATE TABLE table_name (id int);\nLOAD DATA LOCAL INFILE '~/Documents/some_file.txt'\nINTO TABLE table_name FIELDS TERMINATED BY ',' LINES TERMINATED BY '\\n'\nIGNORE 1 LINES;' Instead of the tilde character, use a full path to the file.",
"markdown": "Reports paths that start with the tilde character in LOAD statements.\n\nExample (MySQL):\n\n CREATE TABLE table_name (id int);\n LOAD DATA LOCAL INFILE '~/Documents/some_file.txt'\n INTO TABLE table_name FIELDS TERMINATED BY ',' LINES TERMINATED BY '\\n'\n IGNORE 1 LINES;\n\nInstead of the tilde character, use a full path to the file."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MysqlLoadDataPath",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MySQL",
"index": 12,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MysqlSpaceAfterFunctionNameInspection",
"shortDescription": {
"text": "Whitespace between the function name and the open parenthesis"
},
"fullDescription": {
"text": "Reports any whitespace in a function call between the function name and the open parenthesis, which is not supported by default. Example (MySQL): 'SELECT MAX (qty) FROM orders;'",
"markdown": "Reports any whitespace in a function call between the function name and the open parenthesis, which is not supported by default.\n\nExample (MySQL):\n\n SELECT MAX (qty) FROM orders;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "MysqlSpaceAfterFunctionName",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "MySQL",
"index": 12,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlMissingReturnInspection",
"shortDescription": {
"text": "Missing return statement"
},
"fullDescription": {
"text": "Reports functions that have no RETURN statements. Example (Oracle): 'CREATE FUNCTION foo RETURN int AS\nBEGIN\nEND;' The 'foo' function must return the integer value but the function body returns nothing. To fix the error, add a RETURN statement (for example, 'return 1;'). 'CREATE FUNCTION foo RETURN int AS\nBEGIN\n RETURN 1;\nEND;'",
"markdown": "Reports functions that have no RETURN statements.\n\nExample (Oracle):\n\n CREATE FUNCTION foo RETURN int AS\n BEGIN\n END;\n\nThe `foo` function must return the integer value but the function body returns nothing. To fix the error,\nadd a RETURN statement (for example, `return 1;`).\n\n CREATE FUNCTION foo RETURN int AS\n BEGIN\n RETURN 1;\n END;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "SqlMissingReturn",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlCaseVsIfInspection",
"shortDescription": {
"text": "Using CASE instead of conditional function and vice versa"
},
"fullDescription": {
"text": "Reports situations when CASE and IF are interchangeable. Example (MySQL): 'SELECT CASE\nWHEN C1 IS NULL THEN 1\nELSE 0\nEND\nFROM dual;' To keep your code short, you can replace the CASE structure with IF. You can do that by applying the Replace with 'IF' call intention action. The example code will look as follows: 'SELECT IF(C1 IS NULL, 1, 0)\nFROM dual;' To revert IF to CASE, click IF and apply the Replace with CASE expression intention action.",
"markdown": "Reports situations when CASE and IF are interchangeable.\n\nExample (MySQL):\n\n SELECT CASE\n WHEN C1 IS NULL THEN 1\n ELSE 0\n END\n FROM dual;\n\nTo keep your code short, you can replace the CASE structure with IF. You can do that by applying the **Replace with 'IF' call**\nintention action. The example code will look as follows:\n\n SELECT IF(C1 IS NULL, 1, 0)\n FROM dual;\n\nTo revert IF to CASE, click IF and apply the **Replace with CASE expression** intention action."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlCaseVsIf",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlShouldBeInGroupByInspection",
"shortDescription": {
"text": "Column should be in group by clause"
},
"fullDescription": {
"text": "Reports columns that are not in the GROUP BY clause or inside an aggregate function call. Example (Microsoft SQL Server): 'CREATE TABLE t1 (a INT, b INT);\nSELECT a, b FROM t1 GROUP BY a;' If you run the SELECT query, you will receive an error because Microsoft SQL Server expects the 'b' column in GROUP BY or used inside an aggregate function. The following two examples will fix the error. 'SELECT a, b FROM t1 GROUP BY a, b;\nSELECT a, max(b) max_b FROM t1 GROUP BY a;'",
"markdown": "Reports columns that are not in the GROUP BY clause or inside an aggregate function call.\n\nExample (Microsoft SQL Server):\n\n CREATE TABLE t1 (a INT, b INT);\n SELECT a, b FROM t1 GROUP BY a;\n\nIf you run the SELECT query, you will receive an error because Microsoft SQL Server expects the `b` column in GROUP BY or used\ninside an aggregate function. The following two examples will fix the error.\n\n SELECT a, b FROM t1 GROUP BY a, b;\n SELECT a, max(b) max_b FROM t1 GROUP BY a;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlShouldBeInGroupBy",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlAutoIncrementDuplicateInspection",
"shortDescription": {
"text": "Auto-increment duplicate"
},
"fullDescription": {
"text": "Reports tables that contain two columns with an automatic increment. In MySQL, Microsoft SQL Server, and Db2 dialects, a table can have only one field with a auto-increment option, and this field must be a key. Example (MySQL): 'CREATE TABLE my_table\n(\n id INT AUTO_INCREMENT,\n c2 INT AUTO_INCREMENT,\n);' The AUTO_INCREMENT constraint for 'c2' will be highlighted as 'c1' already has this constraint. To fix the warning, you can make 'id' a primary key and delete AUTO_INCREMENT for 'c2'. 'CREATE TABLE my_table\n(\n id INT AUTO_INCREMENT PRIMARY KEY,\n c2 INT,\n);'",
"markdown": "Reports tables that contain two columns with an automatic increment. In MySQL, Microsoft SQL Server, and Db2 dialects, a table can have only one field with a auto-increment option, and this field must be a key.\n\nExample (MySQL):\n\n CREATE TABLE my_table\n (\n id INT AUTO_INCREMENT,\n c2 INT AUTO_INCREMENT,\n );\n\nThe AUTO_INCREMENT constraint for `c2` will be highlighted as `c1` already has this constraint. To fix the warning,\nyou can make `id` a primary key and delete AUTO_INCREMENT for `c2`.\n\n CREATE TABLE my_table\n (\n id INT AUTO_INCREMENT PRIMARY KEY,\n c2 INT,\n );\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlAutoIncrementDuplicate",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlStringLengthExceededInspection",
"shortDescription": {
"text": "Implicit string truncation"
},
"fullDescription": {
"text": "Reports variables that exceed the defined length in characters. Example (Microsoft SQL Server): 'CREATE PROCEDURE test() AS\nBEGIN\nDECLARE myVarOk VARCHAR(5) = 'abcde';\nDECLARE myVarExceeded VARCHAR(5) = 'abcde12345';\n\nSET myVarOk = 'xyz';\nSET myVarExceeded = '123456789';\nEND;' The 'myVarExceeded' variable is defined as 'VARCHAR(5)' but both assigned values (''abcde12345'' and ''123456789'') exceed this limitation. You can truncate assigned values or increase the defined length. To increase the length, use the Increase type length quick-fix. After the quick-fix is applied: 'CREATE PROCEDURE test() AS\nBEGIN\nDECLARE myVarOk VARCHAR(5) = 'abcde';\nDECLARE myVarExceeded VARCHAR(10) = 'abcde12345';\n\nSET myVarOk = 'xyz';\nSET myVarExceeded = '123456789';\nEND;'",
"markdown": "Reports variables that exceed the defined length in characters.\n\nExample (Microsoft SQL Server):\n\n CREATE PROCEDURE test() AS\n BEGIN\n DECLARE myVarOk VARCHAR(5) = 'abcde';\n DECLARE myVarExceeded VARCHAR(5) = 'abcde12345';\n\n SET myVarOk = 'xyz';\n SET myVarExceeded = '123456789';\n END;\n\nThe `myVarExceeded` variable is defined as `VARCHAR(5)` but both assigned values (`'abcde12345'` and\n`'123456789'`) exceed this limitation. You can truncate assigned values or increase the defined length.\nTo increase the length, use the **Increase type length** quick-fix.\n\nAfter the quick-fix is applied:\n\n CREATE PROCEDURE test() AS\n BEGIN\n DECLARE myVarOk VARCHAR(5) = 'abcde';\n DECLARE myVarExceeded VARCHAR(10) = 'abcde12345';\n\n SET myVarOk = 'xyz';\n SET myVarExceeded = '123456789';\n END;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlStringLengthExceeded",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlDtInspection",
"shortDescription": {
"text": "Ill-formed date/time literals"
},
"fullDescription": {
"text": "Reports errors in date and time literals. This inspection is available in MySQL, Oracle, Db2, and H2. Example (MySQL): 'SELECT TIME '10 -12:13:14' FROM dual;\nSELECT TIME ' 12 : 13 : 14 ' FROM dual;\nSELECT TIME '12 13 14' FROM dual;\nSELECT TIME '12-13-14' FROM dual;\nSELECT TIME '12.13.14' FROM dual;\nSELECT TIME '12:13:' FROM dual;\nSELECT TIME '12:13' FROM dual;\nSELECT TIME '12:' FROM dual;' In this example, dates ignore the MySQL standard for date and time literals. Therefore, they will be highlighted. For more information about date and time literals in MySQL, see Date and Time Literals at dev.mysql.com. The following date and type literals are valid for MySQL. 'SELECT TIME '12:13:14' FROM dual;\nSELECT TIME '12:13:14.555' FROM dual;\nSELECT TIME '12:13:14.' FROM dual;\nSELECT TIME '-12:13:14' FROM dual;\nSELECT TIME '10 12:13:14' FROM dual;\nSELECT TIME '-10 12:13:14' FROM dual;'",
"markdown": "Reports errors in date and time literals. This inspection is available in MySQL, Oracle, Db2, and H2.\n\nExample (MySQL):\n\n SELECT TIME '10 -12:13:14' FROM dual;\n SELECT TIME ' 12 : 13 : 14 ' FROM dual;\n SELECT TIME '12 13 14' FROM dual;\n SELECT TIME '12-13-14' FROM dual;\n SELECT TIME '12.13.14' FROM dual;\n SELECT TIME '12:13:' FROM dual;\n SELECT TIME '12:13' FROM dual;\n SELECT TIME '12:' FROM dual;\n\nIn this example, dates ignore the MySQL standard for date and time literals. Therefore, they will be highlighted.\nFor more information about date and time literals in MySQL, see [Date and Time Literals at dev.mysql.com](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-literals.html).\n\nThe following date and type literals are valid for MySQL.\n\n SELECT TIME '12:13:14' FROM dual;\n SELECT TIME '12:13:14.555' FROM dual;\n SELECT TIME '12:13:14.' FROM dual;\n SELECT TIME '-12:13:14' FROM dual;\n SELECT TIME '10 12:13:14' FROM dual;\n SELECT TIME '-10 12:13:14' FROM dual;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlDateTime",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlInsertValuesInspection",
"shortDescription": {
"text": "VALUES clause cardinality"
},
"fullDescription": {
"text": "Reports situations when a number of parameters in VALUES does not match a number of columns in a target table. Example (MySQL): 'CREATE TABLE foo(a INT, b INT, c INT);\n\nINSERT INTO foo VALUES (1,2,3,4)' The 'foo' table has three columns but in the INSERT INTO statement we pass four.",
"markdown": "Reports situations when a number of parameters in VALUES does not match a number of columns in a target table.\n\nExample (MySQL):\n\n CREATE TABLE foo(a INT, b INT, c INT);\n\n INSERT INTO foo VALUES (1,2,3,4)\n\nThe `foo` table has three columns but in the INSERT INTO statement we pass four."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlInsertValues",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlRedundantElseNullInspection",
"shortDescription": {
"text": "Redundant ELSE NULL clause"
},
"fullDescription": {
"text": "Reports redundant ELSE NULL clauses. Example (MySQL): 'SELECT CASE WHEN 2 > 1 THEN 'OK' ELSE NULL END AS alias FROM foo;' The 'ELSE NULL' part will never be executed and may be omitted.",
"markdown": "Reports redundant ELSE NULL clauses.\n\nExample (MySQL):\n\n SELECT CASE WHEN 2 > 1 THEN 'OK' ELSE NULL END AS alias FROM foo;\n\nThe `ELSE NULL` part will never be executed and may be omitted."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlRedundantElseNull",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlCallNotationInspection",
"shortDescription": {
"text": "Using of named and positional arguments"
},
"fullDescription": {
"text": "Reports calls in which positional arguments go after the named ones. Works in PostgreSQL, Oracle, and Db2. Example (In PostgreSQL): 'CREATE FUNCTION foo(a int, b int, c int) RETURNS int\n LANGUAGE plpgsql AS\n$$\nBEGIN\n RETURN a + b + c;\nEND\n$$;\nSELECT foo(a => 1, b => 2, c => 3);\n -- `3` goes after the named argument\nSELECT foo(1, b => 2, 3);\n -- `1` and `3` go after the named argument\nSELECT foo(b => 2, 1, 3);'",
"markdown": "Reports calls in which positional arguments go after the named ones. Works in PostgreSQL, Oracle, and Db2.\n\nExample (In PostgreSQL):\n\n CREATE FUNCTION foo(a int, b int, c int) RETURNS int\n LANGUAGE plpgsql AS\n $$\n BEGIN\n RETURN a + b + c;\n END\n $$;\n SELECT foo(a => 1, b => 2, c => 3);\n -- `3` goes after the named argument\n SELECT foo(1, b => 2, 3);\n -- `1` and `3` go after the named argument\n SELECT foo(b => 2, 1, 3);\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "SqlCallNotation",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MysqlParsingInspection",
"shortDescription": {
"text": "Unsupported syntax in pre-8.0 versions"
},
"fullDescription": {
"text": "Reports invalid usages of UNION in queries. The inspection works in MySQL versions that are earlier than 8.0. Example (MySQL): 'SELECT * FROM (SELECT 1 UNION (SELECT 1 UNION SELECT 2)) a;'",
"markdown": "Reports invalid usages of UNION in queries.\n\nThe inspection works in MySQL versions that are earlier than 8.0.\n\nExample (MySQL):\n\n\n SELECT * FROM (SELECT 1 UNION (SELECT 1 UNION SELECT 2)) a;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MysqlParsing",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MySQL",
"index": 12,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlShadowingAliasInspection",
"shortDescription": {
"text": "Column is shadowed by alias"
},
"fullDescription": {
"text": "Reports SELECT aliases with names that match column names in the FROM clause. Example (MySQL): 'CREATE TABLE foo (a INT, b INT, c INT);\nSELECT a b, c FROM foo;' The 'a' column uses the 'b' alias but the 'b' name is also used by the column from the 'foo' table.",
"markdown": "Reports SELECT aliases with names that match column names in the FROM clause.\n\nExample (MySQL):\n\n CREATE TABLE foo (a INT, b INT, c INT);\n SELECT a b, c FROM foo;\n\nThe `a` column uses the `b` alias but the `b` name is also used by the column from the `foo`\ntable."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlShadowingAlias",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlUnreachableCodeInspection",
"shortDescription": {
"text": "Unreachable code"
},
"fullDescription": {
"text": "Reports unreachable statements inside SQL routines. Example (Microsoft SQL Server): 'CREATE FUNCTION foo() RETURNS INT AS\nBEGIN\n THROW;\n RETURN 1;\nEND;' In Microsoft SQL Server, the 'THROW' statement raises an exception and transfers execution to the CATCH block of the TRY...CATCH construct. Therefore, the 'RETURN 1;' part will never be executed.",
"markdown": "Reports unreachable statements inside SQL routines.\n\nExample (Microsoft SQL Server):\n\n CREATE FUNCTION foo() RETURNS INT AS\n BEGIN\n THROW;\n RETURN 1;\n END;\n\nIn Microsoft SQL Server, the `THROW` statement raises an exception and transfers execution to the CATCH block of the TRY...CATCH\nconstruct. Therefore, the `RETURN 1;` part will never be executed."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlUnreachable",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlNoDataSourceInspection",
"shortDescription": {
"text": "No data sources configured"
},
"fullDescription": {
"text": "Reports the absence of data sources in the Database tool window (View | Tool Windows | Database).",
"markdown": "Reports the absence of data sources in the **Database** tool window (**View \\| Tool Windows \\| Database**)."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlNoDataSourceInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlResolveInspection",
"shortDescription": {
"text": "Unresolved reference"
},
"fullDescription": {
"text": "Reports unresolved SQL references. Example (MySQL): 'CREATE TABLE users(id INT, name VARCHAR(40));\nCREATE TABLE admins(id INT, col1 INT);\n\nSELECT users.id, admins.id FROM admins WHERE admins.id > 1;' The 'users.id' column is unresolved because the 'users' table is missing in the FROM clause.",
"markdown": "Reports unresolved SQL references.\n\nExample (MySQL):\n\n CREATE TABLE users(id INT, name VARCHAR(40));\n CREATE TABLE admins(id INT, col1 INT);\n\n SELECT users.id, admins.id FROM admins WHERE admins.id > 1;\n\nThe `users.id` column is unresolved because the `users` table is missing in the FROM clause."
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "SqlResolve",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlCurrentSchemaInspection",
"shortDescription": {
"text": "Current console schema introspected"
},
"fullDescription": {
"text": "Reports schemas and databases in the current session that are not introspected. For example, this warning might occur when you try to create a table in the schema that is not introspected. Introspection is a method of inspecting a data source. When you perform introspection, structural information in the data source is inspected to detect tables, columns, functions, and other elements with their attributes.",
"markdown": "Reports schemas and databases in the current session that are not introspected.\n\nFor example, this warning might occur when you try to create a table in the schema that is not introspected.\n\nIntrospection is a method of inspecting a data source. When you perform introspection, structural information in the data source is\ninspected to detect tables, columns, functions, and other elements with their attributes."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlCurrentSchemaInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlMisleadingReferenceInspection",
"shortDescription": {
"text": "Misleading references"
},
"fullDescription": {
"text": "Reports ambiguous references in SQL code. For example, when a name refer to both a table column and a routine parameter. The execution of such code might lead to errors or unexpected results due to counter-intuitive resolution logic. Usually, names with a more local scope have higher priority. Example (PostgreSQL): 'CREATE TABLE foo\n(\n id INT,\n name VARCHAR(5)\n);\nCREATE FUNCTION func(name VARCHAR(5)) RETURNS INT AS\n$$\nDECLARE\n b INT;\nBEGIN\n -- `name` is ambiguous as it is used as a column name and a parameter\n SELECT COUNT(*) INTO b FROM foo t WHERE t.name = name;\n RETURN b;\nEND;\n$$ LANGUAGE plpgsql;' In PostgreSQL, you can use the '#variable_conflict' directives to explicitly specify a correct reference. For example, use '#variable_conflict use_column' to refer to a column name, or '#variable_conflict use_variable' to refer to a parameter. 'CREATE TABLE foo\n(\n id INT,\n name VARCHAR(5)\n);\nCREATE FUNCTION func(name VARCHAR(5)) RETURNS INT AS\n$$\n #variable_conflict use_column\nDECLARE\n b INT;\nBEGIN\n SELECT COUNT(*) INTO b FROM foo t WHERE t.name = name;\n RETURN b;\nEND;\n$$ LANGUAGE plpgsql;'",
"markdown": "Reports ambiguous references in SQL code.\n\nFor example, when a name refer to both a table column and a routine parameter. The execution of such code might lead to errors or unexpected\nresults due to counter-intuitive resolution logic. Usually, names with a more local scope have higher priority.\n\nExample (PostgreSQL):\n\n CREATE TABLE foo\n (\n id INT,\n name VARCHAR(5)\n );\n CREATE FUNCTION func(name VARCHAR(5)) RETURNS INT AS\n $$\n DECLARE\n b INT;\n BEGIN\n -- `name` is ambiguous as it is used as a column name and a parameter\n SELECT COUNT(*) INTO b FROM foo t WHERE t.name = name;\n RETURN b;\n END;\n $$ LANGUAGE plpgsql;\n\nIn PostgreSQL, you can use the `#variable_conflict` directives to explicitly specify a correct reference. For example,\nuse `#variable_conflict use_column` to refer to a column name, or `#variable_conflict use_variable` to refer to a\nparameter.\n\n CREATE TABLE foo\n (\n id INT,\n name VARCHAR(5)\n );\n CREATE FUNCTION func(name VARCHAR(5)) RETURNS INT AS\n $$\n #variable_conflict use_column\n DECLARE\n b INT;\n BEGIN\n SELECT COUNT(*) INTO b FROM foo t WHERE t.name = name;\n RETURN b;\n END;\n $$ LANGUAGE plpgsql;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlMisleadingReference",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlRedundantLimitInspection",
"shortDescription": {
"text": "Redundant row limiting in queries"
},
"fullDescription": {
"text": "Reports redundant row limiting clauses like FETCH and LIMIT in queries. Example (PostgreSQL): 'CREATE TABLE foo(a INT);\n\nSELECT * FROM foo WHERE EXISTS(SELECT * FROM foo LIMIT 2);\nSELECT * FROM foo WHERE EXISTS(SELECT * FROM foo FETCH FIRST 2 ROWS ONLY);' To fix the warning, you can add OFFSET to limiting clauses. If OFFSET is missing, then LIMIT is redundant because the usage of LIMIT does not influence the operation result of EXISTS. In case with OFFSET, we skip first 'N' rows and this will influence the output. 'SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo OFFSET 1 ROW LIMIT 2);\nSELECT * FROM foo WHERE EXISTS(SELECT * FROM foo OFFSET 1 ROW FETCH FIRST 2 ROWS ONLY);'",
"markdown": "Reports redundant row limiting clauses like FETCH and LIMIT in queries.\n\nExample (PostgreSQL):\n\n CREATE TABLE foo(a INT);\n\n SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo LIMIT 2);\n SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo FETCH FIRST 2 ROWS ONLY);\n\nTo fix the warning, you can add OFFSET to limiting clauses. If OFFSET is missing, then LIMIT is redundant because\nthe usage of LIMIT does not influence the operation result of EXISTS. In case with OFFSET, we skip first `N` rows and this will\ninfluence the output.\n\n SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo OFFSET 1 ROW LIMIT 2);\n SELECT * FROM foo WHERE EXISTS(SELECT * FROM foo OFFSET 1 ROW FETCH FIRST 2 ROWS ONLY);\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlRedundantLimit",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlInsertNullIntoNotNullInspection",
"shortDescription": {
"text": "Insert NULL into NOT NULL column"
},
"fullDescription": {
"text": "Reports cases when you insert NULL values into columns that accept only NOT NULL values. Example (Microsoft SQL Server): 'CREATE TABLE br2 (\nid INT NOT NULL,\ncol1 NVARCHAR (20) NOT NULL,\ncol2 NVARCHAR (20) NOT NULL,\n);\n--\nINSERT INTO br2 (id, col1, col2)\nVALUES (1, NULL, NULL);' You cannot insert NULL values in 'col1' and 'col2' because they are defined as NOT NULL. If you run the script as is, you will receive an error. To fix this code, replace NULL in the VALUES part with some values (for example, '42' and ''bird''). INSERT INTO br2 (id, col1, col2)\nVALUES (1, 42, 'bird');",
"markdown": "Reports cases when you insert NULL values into columns that accept only NOT NULL values.\n\nExample (Microsoft SQL Server):\n\n CREATE TABLE br2 (\n id INT NOT NULL,\n col1 NVARCHAR (20) NOT NULL,\n col2 NVARCHAR (20) NOT NULL,\n );\n --\n INSERT INTO br2 (id, col1, col2)\n VALUES (1, NULL, NULL);\n\nYou cannot insert NULL values in `col1` and `col2` because they are defined as NOT NULL. If you run the script as\nis,\nyou will receive an error. To fix this code, replace NULL in the VALUES part with some values (for example, `42` and\n`'bird'`).\n\n```\nINSERT INTO br2 (id, col1, col2)\nVALUES (1, 42, 'bird');\n```"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlInsertNullIntoNotNull",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlDerivedTableAliasInspection",
"shortDescription": {
"text": "Each derived table should have alias"
},
"fullDescription": {
"text": "Reports derived tables without aliases. Example (MySQL): 'CREATE TABLE table1 (id INT, name VARCHAR(20), cats FLOAT);\nCREATE TABLE table2 (id INT, age INTEGER);\n\nSELECT id AS ID, name, cats, age\nFROM (SELECT table1.id, name, cats, age\nFROM table1\nJOIN table2 ON table1.id = table2.id);' According to Derived Tables at dev.mysql.com, an alias is mandatory. You can add the alias by using the Introduce alias quick-fix. After the quick-fix is applied: 'SELECT id AS ID, name, cats, age\nFROM (SELECT table1.id, name, cats, age\nFROM table1\nJOIN table2 ON table1.id = table2.id);'",
"markdown": "Reports derived tables without aliases.\n\nExample (MySQL):\n\n CREATE TABLE table1 (id INT, name VARCHAR(20), cats FLOAT);\n CREATE TABLE table2 (id INT, age INTEGER);\n\n SELECT id AS ID, name, cats, age\n FROM (SELECT table1.id, name, cats, age\n FROM table1\n JOIN table2 ON table1.id = table2.id);\n\nAccording to [Derived Tables at dev.mysql.com](https://dev.mysql.com/doc/refman/8.0/en/derived-tables.html), an alias is\nmandatory. You can add the alias by using the **Introduce alias** quick-fix.\n\nAfter the quick-fix is applied:\n\n SELECT id AS ID, name, cats, age\n FROM (SELECT table1.id, name, cats, age\n FROM table1\n JOIN table2 ON table1.id = table2.id);\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlDerivedTableAlias",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlTriggerTransitionInspection",
"shortDescription": {
"text": "Suspicious code in triggers"
},
"fullDescription": {
"text": "Reports incorrect usages of transition table variables in triggers. Example (HSQLDB): 'CREATE TABLE foo(a INT);\n\nCREATE TRIGGER trg\n AFTER DELETE ON foo\nBEGIN\n SELECT * FROM NEW;\nEND;\n\nCREATE TRIGGER trig AFTER INSERT ON foo\n REFERENCING OLD ROW AS newrow\n FOR EACH ROW WHEN (a > 1)\n INSERT INTO foo VALUES (1)' In HSQLDB, DELETE triggers may be used only with the OLD state while INSERT triggers may have only the NEW state. So, in the previous example, NEW in 'SELECT * FROM NEW;' will be highlighted as well as OLD in 'REFERENCING OLD ROW AS newrow'.",
"markdown": "Reports incorrect usages of transition table variables in triggers.\n\nExample (HSQLDB):\n\n CREATE TABLE foo(a INT);\n\n CREATE TRIGGER trg\n AFTER DELETE ON foo\n BEGIN\n SELECT * FROM NEW;\n END;\n\n CREATE TRIGGER trig AFTER INSERT ON foo\n REFERENCING OLD ROW AS newrow\n FOR EACH ROW WHEN (a > 1)\n INSERT INTO foo VALUES (1)\n\nIn HSQLDB, DELETE triggers may be used only with the OLD state while INSERT triggers may have only the NEW state. So, in the previous\nexample, NEW in `SELECT * FROM NEW;` will be highlighted as well as OLD in `REFERENCING OLD ROW AS newrow`."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlTriggerTransition",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlNamedArgumentsInspection",
"shortDescription": {
"text": "Named arguments should be used"
},
"fullDescription": {
"text": "Reports arguments that are used without names in routine calls. By default, this inspection is disabled. For more information about the difference between named and unnamed parameters, see Binding Parameters by Name (Named Parameters) at docs.microsoft.com . Example (Microsoft SQL Server): 'CREATE FUNCTION foo(n INT, m INT) RETURNS INT AS\nBEGIN\n RETURN n + m;\nEND;\n\nCREATE PROCEDURE test AS\nBEGIN\n foo n = 1, m = 2;\n\n--- The following call misses parameter names and will be highlighted\n foo 1, 2;\nEND;' Parameters '1, 2' in the 'foo 1, 2;' call are highlighted because they miss names.",
"markdown": "Reports arguments that are used without names in routine calls. By default, this inspection is disabled.\n\nFor more information about the difference between named and unnamed parameters, see [Binding Parameters by Name (Named Parameters) at docs.microsoft.com](https://docs.microsoft.com/en-us/sql/odbc/reference/develop-app/binding-parameters-by-name-named-parameters).\n\nExample (Microsoft SQL Server):\n\n CREATE FUNCTION foo(n INT, m INT) RETURNS INT AS\n BEGIN\n RETURN n + m;\n END;\n\n CREATE PROCEDURE test AS\n BEGIN\n foo n = 1, m = 2;\n\n --- The following call misses parameter names and will be highlighted\n foo 1, 2;\n END;\n\nParameters `1, 2` in the `foo 1, 2;` call are highlighted because they miss names."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlNamedArguments",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlCaseVsCoalesceInspection",
"shortDescription": {
"text": "Using CASE instead of COALESCE function and vice versa"
},
"fullDescription": {
"text": "Reports situations when CASE and COALESCE calls are interchangeable. This inspection has the following intention actions: Replace with 'COALESCE' call and the opposite one Replace with CASE expression. Example (MySQL): 'SELECT\n -- this CASE may be replaced by COALESCE\n\tCASE\n\t\tWHEN C1 IS NOT NULL THEN C1\n\t\tELSE 0\n\t\tEND\nFROM dual;' In the example, the CASE statement can be replaced with 'SELECT COALESCE(C1, 0)' that produces the same output. If you prefer using CASE expressions, select the Prefer CASE expressions over COALESCE function option on the inspection page.",
"markdown": "Reports situations when CASE and COALESCE calls are interchangeable. This inspection has the following intention actions: **Replace\nwith 'COALESCE' call** and the opposite one **Replace with CASE expression** .\n\nExample (MySQL):\n\n SELECT\n -- this CASE may be replaced by COALESCE\n \tCASE\n \t\tWHEN C1 IS NOT NULL THEN C1\n \t\tELSE 0\n \t\tEND\n FROM dual;\n\nIn the example, the CASE statement can be replaced with `SELECT COALESCE(C1, 0)` that produces the same output.\n\nIf you prefer using CASE expressions, select the **Prefer CASE expressions over COALESCE function** option on\nthe inspection page."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlCaseVsCoalesce",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlRedundantAliasInspection",
"shortDescription": {
"text": "Redundant alias expressions"
},
"fullDescription": {
"text": "Reports alias expressions that duplicate names of columns in tables and might be redundant. Example (PostgreSQL): 'CREATE TABLE foo(a INT, b INT);\n\nSELECT * FROM foo foo(a, b);\nSELECT * FROM foo foo(a);\nSELECT * FROM foo foo(x);\nSELECT * FROM foo foo(x, y);' The first two aliases use the same column names as in the 'foo' table. They are considered redundant because they column names are identical.",
"markdown": "Reports alias expressions that duplicate names of columns in tables and might be redundant.\n\nExample (PostgreSQL):\n\n CREATE TABLE foo(a INT, b INT);\n\n SELECT * FROM foo foo(a, b);\n SELECT * FROM foo foo(a);\n SELECT * FROM foo foo(x);\n SELECT * FROM foo foo(x, y);\n\nThe first two aliases use the same column names as in the `foo` table. They are considered redundant because they\ncolumn names are identical."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlRedundantAlias",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlTransactionStatementInTriggerInspection",
"shortDescription": {
"text": "Use of transaction management statements in triggers"
},
"fullDescription": {
"text": "Reports usages of transaction management statements like COMMIT or ROLLBACK in trigger bodies. With COMMIT or ROLLBACK statements in a trigger body, the trigger will not compile. The fail happens because triggers start during transactions. When the trigger starts the current transaction is still not complete. As COMMIT terminates a transaction, both statements (COMMIT and ROLLBACK) would lead to an exception. Changes that are executed in a trigger should be committed (or rolled back) by the owning transaction that started the trigger. Example (Oracle): 'CREATE TABLE employee_audit\n(\n id INT NOT NULL,\n update_date DATE NOT NULL,\n old_name VARCHAR2(100),\n new_name VARCHAR2(100)\n);\n\nCREATE TABLE employees\n(\n id INT NOT NULL,\n name VARCHAR2(100) NOT NULL\n);\n\nCREATE OR REPLACE TRIGGER trig_commit\n AFTER UPDATE OF name\n ON employees\n FOR EACH ROW\nBEGIN\n INSERT INTO employee_audit VALUES (:old.id, SYSDATE, :old.name, :new.name);\n COMMIT;\nEND;\n\nCREATE OR REPLACE TRIGGER trig_rollback\n AFTER UPDATE OF name\n ON employees\n FOR EACH ROW\nBEGIN\n INSERT INTO employee_audit VALUES (:old.id, SYSDATE, :old.name, :new.name);\n ROLLBACK;\nEND;'",
"markdown": "Reports usages of transaction management statements like COMMIT or ROLLBACK in trigger bodies.\n\nWith COMMIT or ROLLBACK statements in a trigger body, the trigger will not compile.\nThe fail happens because triggers start during transactions. When the trigger starts the current transaction is still not complete. As\nCOMMIT\nterminates a transaction, both statements (COMMIT and ROLLBACK) would lead to an exception.\nChanges that are executed in a trigger should be committed (or rolled back) by the owning transaction that started the trigger.\n\nExample (Oracle):\n\n CREATE TABLE employee_audit\n (\n id INT NOT NULL,\n update_date DATE NOT NULL,\n old_name VARCHAR2(100),\n new_name VARCHAR2(100)\n );\n\n CREATE TABLE employees\n (\n id INT NOT NULL,\n name VARCHAR2(100) NOT NULL\n );\n\n CREATE OR REPLACE TRIGGER trig_commit\n AFTER UPDATE OF name\n ON employees\n FOR EACH ROW\n BEGIN\n INSERT INTO employee_audit VALUES (:old.id, SYSDATE, :old.name, :new.name);\n COMMIT;\n END;\n\n CREATE OR REPLACE TRIGGER trig_rollback\n AFTER UPDATE OF name\n ON employees\n FOR EACH ROW\n BEGIN\n INSERT INTO employee_audit VALUES (:old.id, SYSDATE, :old.name, :new.name);\n ROLLBACK;\n END;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlTransactionStatementInTrigger",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlRedundantCodeInCoalesceInspection",
"shortDescription": {
"text": "Redundant code in COALESCE call"
},
"fullDescription": {
"text": "Reports all the arguments except for the first expression that does not evaluate to NULL in COALESCE functions. Example (MySQL): 'SELECT COALESCE(NULL, NULL, NULL, 42, NULL, 'string') as a;' The first NOT NULL argument is '42', all other arguments will be grayed out.",
"markdown": "Reports all the arguments except for the first expression that does not evaluate to NULL in COALESCE functions.\n\nExample (MySQL):\n\n SELECT COALESCE(NULL, NULL, NULL, 42, NULL, 'string') as a;\n\nThe first NOT NULL argument is `42`, all other arguments will be grayed out."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlRedundantCodeInCoalesce",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlAggregatesInspection",
"shortDescription": {
"text": "Aggregate-related problems"
},
"fullDescription": {
"text": "Reports invalid usages of SQL aggregate functions. The following situations are considered: Columns that are used in HAVING and ORDER BY clauses but are missed in GROUP BY clauses. 'CREATE TABLE foo(id INT PRIMARY KEY, a INT, b INT);\nSELECT a, MAX(b) FROM foo GROUP BY a HAVING b > 0;\nSELECT * FROM foo GROUP BY a ORDER BY b;' This rule does not apply when grouping is made by the primary key. 'SELECT * FROM foo GROUP BY id ORDER BY b;' Aggregate functions in a wrong context. Usually, you can use aggregate functions in the following contexts: a list of expressions in SELECT; in HAVING and ORDER BY sections; and other dialect-specific cases. The following queries will display an error. 'SELECT a FROM foo WHERE MAX(b) > 0;\nSELECT a FROM foo GROUP BY MAX(a);' Nested calls of aggregate functions. 'SELECT MAX(SUM(a)) FROM foo GROUP BY a;' This rule does not apply to analytic functions. The following query is valid and correct. 'SELECT MAX(SUM(a) OVER ()) FROM foo;' Usages of HAVING without aggregate functions. In this case, consider rewriting your code using the WHERE section. 'SELECT a, MAX(b) FROM foo GROUP BY a HAVING a > 0;'",
"markdown": "Reports invalid usages of SQL aggregate functions.\n\nThe following situations are considered:\n\n* Columns that are used in HAVING and ORDER BY clauses but are missed in GROUP BY clauses.\n\n CREATE TABLE foo(id INT PRIMARY KEY, a INT, b INT);\n SELECT a, MAX(b) FROM foo GROUP BY a HAVING b > 0;\n SELECT * FROM foo GROUP BY a ORDER BY b;\n\n This rule does not apply when grouping is made by the primary key.\n\n SELECT * FROM foo GROUP BY id ORDER BY b;\n\n* Aggregate functions in a wrong context. Usually, you can use aggregate functions in the following contexts: a list of expressions in\n SELECT; in HAVING and ORDER BY sections; and other dialect-specific cases. The following queries will display an error.\n\n SELECT a FROM foo WHERE MAX(b) > 0;\n SELECT a FROM foo GROUP BY MAX(a);\n\n* Nested calls of aggregate functions.\n\n SELECT MAX(SUM(a)) FROM foo GROUP BY a;\n\n This rule does not apply to analytic functions. The following query is valid and correct.\n\n SELECT MAX(SUM(a) OVER ()) FROM foo;\n\n* Usages of HAVING without aggregate functions. In this case, consider rewriting your code using the WHERE section.\n\n SELECT a, MAX(b) FROM foo GROUP BY a HAVING a > 0;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlAggregates",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlConstantExpressionInspection",
"shortDescription": {
"text": "Constant expression"
},
"fullDescription": {
"text": "Reports conditions and expressions that are always true, false or null. Example (MySQL): 'CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);\nSELECT a FROM t1 WHERE 'Cat' = 'Cat';\nSELECT a FROM t1 WHERE 'Cat' = null;' The ''Cat' = 'Cat'' is always true and will be reported. The ''Cat' = null' is always null and will be reported.",
"markdown": "Reports conditions and expressions that are always true, false or null.\n\nExample (MySQL):\n\n CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);\n SELECT a FROM t1 WHERE 'Cat' = 'Cat';\n SELECT a FROM t1 WHERE 'Cat' = null;\n\nThe `'Cat' = 'Cat'` is always true and will be reported.\n\nThe `'Cat' = null` is always null and will be reported."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlConstantExpression",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlMissingColumnAliasesInspection",
"shortDescription": {
"text": "Missing column aliases"
},
"fullDescription": {
"text": "Reports queries without explicit aliases in output expressions (for example, in the SELECT statement). Example (PostgreSQL): 'CREATE TABLE foo(a INT, b INT);\n\nSELECT 1, a + 1 AS A2, MAX(b) AS M\nFROM foo;'",
"markdown": "Reports queries without explicit aliases in output expressions (for example, in the SELECT statement).\n\nExample (PostgreSQL):\n\n CREATE TABLE foo(a INT, b INT);\n\n SELECT 1, a + 1 AS A2, MAX(b) AS M\n FROM foo;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlMissingColumnAliases",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlAddNotNullColumnInspection",
"shortDescription": {
"text": "Adding not null column without default value"
},
"fullDescription": {
"text": "Reports attempts to create NOT NULL columns without DEFAULT values. Example (Microsoft SQL Server): 'CREATE TABLE foo (a INT, b INT)\n\nALTER TABLE foo ADD c INT NOT NULL;' By default, a column holds NULL values. In the example, we use the NOT NULL constraint that enforces a column not to accept NULL values. If we prohibit to use NULL values, we must set the DEFAULT value that SQL can use when we create a new record. 'ALTER TABLE foo ADD c INT NOT NULL DEFAULT 42;' You can quickly add the DEFAULT value by using the Add DEFAULT value quick-fix.",
"markdown": "Reports attempts to create NOT NULL columns without DEFAULT values.\n\nExample (Microsoft SQL Server):\n\n CREATE TABLE foo (a INT, b INT)\n\n ALTER TABLE foo ADD c INT NOT NULL;\n\nBy default, a column holds NULL values. In the example, we use the NOT NULL constraint that enforces a column not to accept NULL values.\nIf we prohibit to use NULL values, we must set the DEFAULT value that SQL can use when we create a new record.\n\n ALTER TABLE foo ADD c INT NOT NULL DEFAULT 42;\n\nYou can quickly add the DEFAULT value by using the **Add DEFAULT value** quick-fix."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlAddNotNullColumn",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "OraMissingBodyInspection",
"shortDescription": {
"text": "Missing body for package/object type specification"
},
"fullDescription": {
"text": "Reports package and object type specifications that are missing body declarations. Package specifications and object types that declare routines as well as package specifications with cursors must have body declarations where those routines and cursors are implemented. Absence of a body leads to a runtime error when routines or cursors are invoked in program code. Example (Oracle): 'CREATE OR REPLACE PACKAGE ppp IS\n FUNCTION foo(a INT) RETURN INT;\nEND;'",
"markdown": "Reports package and object type specifications that are missing body declarations.\n\nPackage specifications and object types that declare routines as well as package specifications with cursors must have body\ndeclarations where those routines and cursors are implemented. Absence of a body leads to a runtime error when routines or cursors are\ninvoked in program code.\n\nExample (Oracle):\n\n CREATE OR REPLACE PACKAGE ppp IS\n FUNCTION foo(a INT) RETURN INT;\n END;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlMissingBody",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Oracle",
"index": 99,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "OraUnmatchedForwardDeclarationInspection",
"shortDescription": {
"text": "Forward declaration without definition"
},
"fullDescription": {
"text": "Reports declarations of procedures and functions that are missing their implementation in code. In Oracle, you can declare a procedure or a function without its body, and write the implementation later. The inspection will report names of such procedures or functions that are left without implementation. Example (Oracle): 'DECLARE PROCEDURE foo(a int, b varchar2);\nBEGIN\n NULL;\nEND;' The 'foo' procedure is declared but is missing implementation. We can add the implementation to get rid of the error. 'DECLARE PROCEDURE foo(a int, b varchar2);\n PROCEDURE foo(a int, b varchar2) IS\nBEGIN\n NULL;\nEND;\nBEGIN\n NULL;\nEND;'",
"markdown": "Reports declarations of procedures and functions that are missing their implementation in code.\n\nIn Oracle, you can declare a procedure or a function without its body, and write the implementation later. The inspection will report names\nof such procedures or functions that are left without implementation.\n\nExample (Oracle):\n\n DECLARE PROCEDURE foo(a int, b varchar2);\n BEGIN\n NULL;\n END;\n\nThe `foo` procedure is declared but is missing implementation. We can add the implementation to get rid of the error.\n\n DECLARE PROCEDURE foo(a int, b varchar2);\n PROCEDURE foo(a int, b varchar2) IS\n BEGIN\n NULL;\n END;\n BEGIN\n NULL;\n END;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "SqlUnmatchedForwardDeclaration",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "Oracle",
"index": 99,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MongoJSExtResolveInspection",
"shortDescription": {
"text": "Resolution problems"
},
"fullDescription": {
"text": "Reports unresolved references in MongoDB and JavaScript code.",
"markdown": "Reports unresolved references in MongoDB and JavaScript code."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MongoJSResolve",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MongoJS",
"index": 101,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlWithoutWhereInspection",
"shortDescription": {
"text": "Delete or update statement without where clauses"
},
"fullDescription": {
"text": "Reports usages of DELETE or UPDATE statements without WHERE clauses. Without WHERE clauses, DELETE drops all the data from the table, and UPDATE overwrites values for all the table rows. Example (MySQL): 'CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);\nupdate t1 set a = 'Smith';\ndelete from t1;'",
"markdown": "Reports usages of DELETE or UPDATE statements without WHERE clauses.\n\nWithout WHERE clauses, DELETE drops all the data from the table, and UPDATE overwrites values for all the table rows.\n\nExample (MySQL):\n\n CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);\n update t1 set a = 'Smith';\n delete from t1;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlWithoutWhere",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlUnusedCteInspection",
"shortDescription": {
"text": "Unused common table expression"
},
"fullDescription": {
"text": "Reports unused common table expressions (CTE) inside the query. Example (PostgreSQL): 'CREATE TABLE foo(a INT);\n\nWITH a AS (SELECT 1 AS x FROM foo)\nSELECT 1 + 2 FROM foo;' By using WITH, we create a temporary named result set with the name 'a', also known as a common table expression (CTE). But we do not use this CTE later in the code. The unused CTE is greyed out.",
"markdown": "Reports unused common table expressions (CTE) inside the query.\n\nExample (PostgreSQL):\n\n CREATE TABLE foo(a INT);\n\n WITH a AS (SELECT 1 AS x FROM foo)\n SELECT 1 + 2 FROM foo;\n\nBy using WITH, we create a temporary named result set with the name `a`, also known as a common table expression (CTE). But\nwe do not use this CTE later in the code. The unused CTE is greyed out."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlUnusedCte",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MongoJSResolveInspection",
"shortDescription": {
"text": "Resolution problems"
},
"fullDescription": {
"text": "Reports unresolved references in MongoDB and JavaScript code. Example: 'db\nuse foo\n -- a reference to a non-existing collection\ndb.non_existing_collection\ndb['non_existing_collection']\ndb['non_existing_collection'].find().hasNext()' The 'non_existing_collection' collection does not exist in the database and will be reported.",
"markdown": "Reports unresolved references in MongoDB and JavaScript code.\n\nExample:\n\n db\n use foo\n -- a reference to a non-existing collection\n db.non_existing_collection\n db['non_existing_collection']\n db['non_existing_collection'].find().hasNext()\n\nThe `non_existing_collection` collection does not exist in the database and will be reported."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MongoJSResolve",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MongoJS",
"index": 101,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MongoJSSideEffectsInspection",
"shortDescription": {
"text": "Statement with side effects"
},
"fullDescription": {
"text": "Reports statements that can cause side effects while the data source is in read-only mode. For more information about enabling read-only mode, see Enable read-only mode for a connection in the IDE documentation. The Disable read-only mode quick-fix turns off the read-only mode for the respective data source. Example: 'db.my_collection.insertOne()'",
"markdown": "Reports statements that can cause side effects while the data source is in read-only mode.\n\nFor more information about enabling read-only mode, see\n[Enable\nread-only mode for a connection in the IDE documentation](https://www.jetbrains.com/help/datagrip/configuring-database-connections.html#enable-read-only-mode-for-a-connection).\n\nThe **Disable read-only mode** quick-fix turns off the read-only mode for the respective data source.\n\nExample:\n\n\n db.my_collection.insertOne()\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MongoJSSideEffects",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MongoJS",
"index": 101,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MongoJSExtSideEffectsInspection",
"shortDescription": {
"text": "Statement with side effects"
},
"fullDescription": {
"text": "Reports statements that may cause side effects while the data source is in read-only mode. The quick-fix turns off the read-only mode for the respective data source. Example: 'db.my_collection.insertOne()'",
"markdown": "Reports statements that may cause side effects while the data source is in read-only mode.\n\nThe quick-fix turns off the read-only mode for the respective data source.\n\nExample:\n\n\n db.my_collection.insertOne()\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MongoJSSideEffects",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MongoJS",
"index": 101,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlUnusedSubqueryItemInspection",
"shortDescription": {
"text": "Unused subquery item"
},
"fullDescription": {
"text": "Reports columns, aliases, and other subquery items that are not referenced in the outer query expression. Example (PostgreSQL): 'CREATE TABLE for_subquery(id INT);\nSELECT a, q FROM (SELECT 1 AS a, 10 AS b, 2 + 3 AS q, id\n FROM for_subquery) x;' We reference 'a' and 'q' aliases from a subquery. But the 'b' alias and the 'id' column are not referenced in the outer SELECT statement. Therefore, 'b' and 'id' are grayed out.",
"markdown": "Reports columns, aliases, and other subquery items that are not referenced in the outer query expression.\n\nExample (PostgreSQL):\n\n CREATE TABLE for_subquery(id INT);\n SELECT a, q FROM (SELECT 1 AS a, 10 AS b, 2 + 3 AS q, id\n FROM for_subquery) x;\n\nWe reference `a` and `q` aliases from a subquery. But the `b` alias and the `id` column are\nnot referenced in the outer SELECT statement. Therefore, `b` and `id` are grayed out."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlUnused",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlSideEffectsInspection",
"shortDescription": {
"text": "Statement with side effects"
},
"fullDescription": {
"text": "Reports statements that might lead to modification of a database during a read-only connection. To enable read-only mode for a connection, right-click a data source in the Database tool window (View | Tool Windows | Database) and select Properties. In the Data Sources and Drivers dialog, click the Options tab and select the Read-only checkbox. Example (MySQL): 'CREATE TABLE foo(a INT);\nINSERT INTO foo VALUES (1);' As 'CREATE TABLE' and 'INSERT INTO' statements lead to a database modification, these statements will be highlighted in read-only connection mode.",
"markdown": "Reports statements that might lead to modification of a database during a read-only connection.\n\nTo enable read-only mode for a\nconnection,\nright-click a data source in the **Database** tool window (**View \\| Tool Windows \\| Database** ) and select **Properties** .\nIn the **Data Sources and Drivers** dialog, click the **Options** tab and select the **Read-only** checkbox.\n\nExample (MySQL):\n\n CREATE TABLE foo(a INT);\n INSERT INTO foo VALUES (1);\n\nAs `CREATE TABLE` and `INSERT INTO` statements lead to a database modification, these statements will be highlighted\nin read-only connection mode."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlSideEffects",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlIllegalCursorStateInspection",
"shortDescription": {
"text": "Illegal cursor state"
},
"fullDescription": {
"text": "Reports illegal cursor states inside SQL routines. A routine has CLOSE or FETCH statements but a cursor might be closed. A routine has the OPEN statement but a cursor might be opened. Example (Microsoft SQL Server): 'CREATE TABLE t(col INT);\n\nCREATE PROCEDURE foo() AS\nBEGIN\nDECLARE my_cursor CURSOR FOR SELECT * FROM t;\nDECLARE a INT;\nFETCH my_cursor INTO a;\nCLOSE my_cursor;\nEND;' According to CLOSE (Transact-SQL) at docs.microsoft.com, CLOSE must be issued on an open cursor, and CLOSE is not allowed on cursors that have only been declared or are already closed. So, we need to open the cursor to fix the warning. 'CREATE PROCEDURE foo() AS\nBEGIN\nDECLARE my_cursor CURSOR FOR SELECT * FROM t;\nDECLARE a INT;\nOPEN my_cursor;\nFETCH my_cursor INTO a;\nCLOSE my_cursor;\nEND;'",
"markdown": "Reports illegal cursor states inside SQL routines.\n\n* A routine has CLOSE or FETCH statements but a cursor might be closed.\n* A routine has the OPEN statement but a cursor might be opened.\n\nExample (Microsoft SQL Server):\n\n CREATE TABLE t(col INT);\n\n CREATE PROCEDURE foo() AS\n BEGIN\n DECLARE my_cursor CURSOR FOR SELECT * FROM t;\n DECLARE a INT;\n FETCH my_cursor INTO a;\n CLOSE my_cursor;\n END;\n\nAccording to [CLOSE (Transact-SQL) at\ndocs.microsoft.com](https://docs.microsoft.com/en-us/sql/t-sql/language-elements/close-transact-sql), CLOSE must be issued on an open cursor, and CLOSE is not allowed on cursors that have only been declared or are\nalready closed. So, we need to open the cursor to fix the warning.\n\n CREATE PROCEDURE foo() AS\n BEGIN\n DECLARE my_cursor CURSOR FOR SELECT * FROM t;\n DECLARE a INT;\n OPEN my_cursor;\n FETCH my_cursor INTO a;\n CLOSE my_cursor;\n END;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlIllegalCursorState",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlJoinWithoutOnInspection",
"shortDescription": {
"text": "Unsafe 'join' clause in 'delete' statement"
},
"fullDescription": {
"text": "Reports missing conditional checks for statements that might modify the whole database. For example, usages of JOIN clauses inside DELETE statements without ON or WHERE. Without conditional checks on JOIN, DELETE drops contents of the entire table. Example (MySQL): 'CREATE TABLE foo (a INT,b INT,c INT);\nCREATE TABLE bar (a INT,b INT,c INT);\n\nDELETE table1 FROM foo table1 INNER JOIN bar table2;'",
"markdown": "Reports missing conditional checks for statements that might modify the whole database.\n\nFor example, usages of JOIN clauses inside DELETE statements without ON or WHERE. Without conditional checks on JOIN, DELETE drops\ncontents of the entire table.\n\nExample (MySQL):\n\n CREATE TABLE foo (a INT,b INT,c INT);\n CREATE TABLE bar (a INT,b INT,c INT);\n\n DELETE table1 FROM foo table1 INNER JOIN bar table2;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlJoinWithoutOn",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlDropIndexedColumnInspection",
"shortDescription": {
"text": "Index is dependent on column"
},
"fullDescription": {
"text": "Reports cases when you try to drop columns from indexed tables. This inspection is available in Microsoft SQL Server and Sybase ASE. Example (Microsoft SQL Server): 'CREATE TABLE test_index\n(\ncol INT NOT NULL,\ncol2 INT NOT NULL,\ncol3 INT NOT NULL UNIQUE,\ncol4 VARCHAR(200)\n);\n\nCREATE UNIQUE INDEX aaaa ON test_index (col, col2);\n\nALTER TABLE test_index\nDROP COLUMN col;' You cannot delete the 'col' column because it is in the indexed table. To delete the column, you need to delete the 'aaaa' index first (for example, DROP INDEX aaaa).",
"markdown": "Reports cases when you try to drop columns from indexed tables. This inspection is available in Microsoft SQL Server and Sybase ASE.\n\nExample (Microsoft SQL Server):\n\n CREATE TABLE test_index\n (\n col INT NOT NULL,\n col2 INT NOT NULL,\n col3 INT NOT NULL UNIQUE,\n col4 VARCHAR(200)\n );\n\n CREATE UNIQUE INDEX aaaa ON test_index (col, col2);\n\n ALTER TABLE test_index\n DROP COLUMN col;\n\nYou cannot delete the `col` column because it is in the indexed table. To delete the column, you need to delete the\n`aaaa` index first (for example, DROP INDEX aaaa)."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlDropIndexedColumn",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlCheckUsingColumnsInspection",
"shortDescription": {
"text": "Check using clause columns"
},
"fullDescription": {
"text": "Reports columns in the USING clause that does not exist in both tables. Example (MySQL): 'CREATE TABLE t1 (i INT, j INT);\nCREATE TABLE t2 (k INT, l INT);\nSELECT * FROM t1 JOIN t2 USING (j);' In USING clauses, a column name must be present in both tables, and the SELECT query will automatically join those tables by using the given column name. As we do not have the 'j' column in 't2', we can rewrite the query using ON. The ON clause can join tables where the column names do not match in both tables. 'SELECT * FROM t1 JOIN t2 ON t1.j = t2.l;'",
"markdown": "Reports columns in the USING clause that does not exist in both tables.\n\nExample (MySQL):\n\n CREATE TABLE t1 (i INT, j INT);\n CREATE TABLE t2 (k INT, l INT);\n SELECT * FROM t1 JOIN t2 USING (j);\n\nIn USING clauses, a column name must be present in both tables, and the SELECT query will automatically join\nthose tables by using the given column name. As we do not have the `j` column in `t2`, we can\nrewrite the query using ON. The ON clause can join tables where the column names do not match in both tables.\n\n SELECT * FROM t1 JOIN t2 ON t1.j = t2.l;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlCheckUsingColumns",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlConstantConditionInspection",
"shortDescription": {
"text": "Constant condition"
},
"fullDescription": {
"text": "Reports conditions in WHERE or JOIN clauses that are always TRUE or always FALSE. Example (MySQL): 'CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);\nSELECT a FROM t1 WHERE 'Cat' = 'Cat';' The ''Cat' = 'Cat'' is always true and will be reported.",
"markdown": "Reports conditions in WHERE or JOIN clauses that are always TRUE or always FALSE.\n\nExample (MySQL):\n\n CREATE TABLE t1 (a TEXT, b INT, c BOOLEAN);\n SELECT a FROM t1 WHERE 'Cat' = 'Cat';\n\nThe `'Cat' = 'Cat'` is always true and will be reported."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlConstantCondition",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlDialectInspection",
"shortDescription": {
"text": "SQL dialect detection"
},
"fullDescription": {
"text": "Reports situations when a dialect is not assigned to an SQL file. For example, when you open a new SQL file without assigning a dialect to it, you see a notification where the best matching dialect is advised. Click the Use <dialect> link to use the advised dialect. Alternatively, click the Change dialect to link to select the other dialect.",
"markdown": "Reports situations when a dialect is not assigned to an SQL file.\n\nFor example, when you open a new SQL file without assigning a dialect\nto it, you see a notification where the best matching dialect is advised. Click the **Use \\<dialect\\>** link to use the advised\ndialect. Alternatively, click the **Change dialect to** link to select the other dialect."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlDialectInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MongoJSExtDeprecationInspection",
"shortDescription": {
"text": "Deprecated element"
},
"fullDescription": {
"text": "Reports usages of deprecated methods in MongoDB and JavaScript code. The quick-fix replaces deprecated methods with recommended alternatives. Example: 'db.my_collection.insert()' After the quick-fix is applied: 'db.my_collection.insertOne()'",
"markdown": "Reports usages of deprecated methods in MongoDB and JavaScript code.\n\nThe quick-fix replaces deprecated methods with recommended alternatives.\n\nExample:\n\n\n db.my_collection.insert()\n\nAfter the quick-fix is applied:\n\n\n db.my_collection.insertOne()\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MongoJSDeprecation",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MongoJS",
"index": 101,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlDuplicateColumnInspection",
"shortDescription": {
"text": "Duplicating column name in SELECT"
},
"fullDescription": {
"text": "Reports duplicated names of column aliases in SELECT lists. Example (Sybase ASE): 'CREATE TABLE t1 (a TEXT, b INT, c INT);\n\nSELECT a AS x, b AS x FROM t1;' The 'x' alias name is used for 'a' and 'b' columns. These assignments are highlighted as errors because you cannot use identical alias names for columns in Sybase ASE.",
"markdown": "Reports duplicated names of column aliases in SELECT lists.\n\nExample (Sybase ASE):\n\n CREATE TABLE t1 (a TEXT, b INT, c INT);\n\n SELECT a AS x, b AS x FROM t1;\n\nThe `x` alias name is used for `a` and `b` columns. These assignments are highlighted as errors because\nyou cannot use identical alias names for columns in Sybase ASE."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlDuplicateColumn",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MongoJSDeprecationInspection",
"shortDescription": {
"text": "Deprecated element"
},
"fullDescription": {
"text": "Reports usages of deprecated methods in MongoDB and JavaScript code. The quick-fix replaces deprecated methods with recommended alternatives. Example: 'db.my_collection.insert()' After the quick-fix is applied: 'db.my_collection.insertOne()'",
"markdown": "Reports usages of deprecated methods in MongoDB and JavaScript code.\n\nThe quick-fix replaces deprecated methods with recommended alternatives.\n\nExample:\n\n db.my_collection.insert()\n\nAfter the quick-fix is applied:\n\n db.my_collection.insertOne()\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MongoJSDeprecation",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "MongoJS",
"index": 101,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlTypeInspection",
"shortDescription": {
"text": "Types compatibility"
},
"fullDescription": {
"text": "Reports type-related errors.",
"markdown": "Reports type-related errors."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlType",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlUnicodeStringLiteralInspection",
"shortDescription": {
"text": "Unicode usage in SQL"
},
"fullDescription": {
"text": "Reports string literals that use national characters without the 'N' prefix. Without the N prefix, the string is converted to the default code page of the database. This default code page may not recognize certain characters. For more information, see nchar and nvarchar (Transact-SQL) at docs.microsoft.com. Example (Microsoft SQL Server): 'SELECT 'abcde' AS a;\nSELECT N'abcde' AS b;\nSELECT 'абвгд' AS c;\nSELECT N'абвгд' AS d;' The 'SELECT 'абвгд' AS c;' does not have the 'N' prefix, the ''абвгд'' part will be highlighted.",
"markdown": "Reports string literals that use national characters without the `N` prefix.\n\nWithout the N prefix, the string is converted to the default\ncode page of the database. This default code page may not recognize certain characters. For more information, see\n[nchar and nvarchar\n(Transact-SQL)\nat docs.microsoft.com](https://docs.microsoft.com/en-us/sql/t-sql/data-types/nchar-and-nvarchar-transact-sql).\n\nExample (Microsoft SQL Server):\n\n SELECT 'abcde' AS a;\n SELECT N'abcde' AS b;\n SELECT 'абвгд' AS c;\n SELECT N'абвгд' AS d;\n\nThe `SELECT 'абвгд' AS c;` does not have the `N` prefix, the `'абвгд'` part will be highlighted."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlUnicodeStringLiteral",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlUnusedVariableInspection",
"shortDescription": {
"text": "Unused variable"
},
"fullDescription": {
"text": "Reports unused arguments, variables, or parameters. Example (PostgreSQL): 'CREATE FUNCTION foo(PARAMUSED INT, PARAMUNUSED INT) RETURNS INT AS\n$$\nBEGIN\n RETURN PARAMUSED;\nEND\n$$ LANGUAGE plpgsql;' The 'PARAMUNUSED' parameter is not used in the function and might be deleted.",
"markdown": "Reports unused arguments, variables, or parameters.\n\nExample (PostgreSQL):\n\n CREATE FUNCTION foo(PARAMUSED INT, PARAMUNUSED INT) RETURNS INT AS\n $$\n BEGIN\n RETURN PARAMUSED;\n END\n $$ LANGUAGE plpgsql;\n\nThe `PARAMUNUSED` parameter is not used in the function and might be deleted."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlUnused",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PgSelectFromProcedureInspection",
"shortDescription": {
"text": "Postgres: Select from procedure call"
},
"fullDescription": {
"text": "Reports situations when you make SELECT from a function or a DBLINK without an alias with a type (for example, 'AS t1(s VARCHAR)'). This requirement does not apply to scalar functions. Example (PostgreSQL): 'CREATE FUNCTION produce_a_table() RETURNS RECORD AS $$\nSELECT 1;\n$$ LANGUAGE sql;\nSELECT * FROM produce_a_table() AS s (c1 INT);\nSELECT * FROM produce_a_table() AS s (c1);\nSELECT * FROM DBLINK('dbname=mydb', 'SELECT proname, prosrc FROM pg_proc') AS t1;' The 'AS s (c1 INT)' has a typed alias, while 'AS s (c1)' and 'AS t1' do not. In this case, the second call of 'produce_a_table()' and 'DBLINK()' will be highlighted.",
"markdown": "Reports situations when you make SELECT from a function or a DBLINK without an alias with a type (for example, `AS t1(s VARCHAR)`).\n\nThis requirement does not apply to scalar functions.\n\nExample (PostgreSQL):\n\n CREATE FUNCTION produce_a_table() RETURNS RECORD AS $$\n SELECT 1;\n $$ LANGUAGE sql;\n SELECT * FROM produce_a_table() AS s (c1 INT);\n SELECT * FROM produce_a_table() AS s (c1);\n SELECT * FROM DBLINK('dbname=mydb', 'SELECT proname, prosrc FROM pg_proc') AS t1;\n\nThe `AS s (c1 INT)` has a typed alias, while `AS s (c1)` and `AS t1` do not.\nIn this case, the second call of `produce_a_table()` and `DBLINK()` will be highlighted."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PgSelectFromProcedure",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PostgreSQL",
"index": 113,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlInsertIntoGeneratedColumnInspection",
"shortDescription": {
"text": "Insertion into generated columns"
},
"fullDescription": {
"text": "Reports INSERT statements that assign values to generated columns. Generated columns can be read, but their values can not be directly written. Example (PostgreSQL): 'CREATE TABLE foo\n(\n col1 INT,\n col2 INT GENERATED ALWAYS AS (col1 + 1) STORED\n);\nINSERT INTO foo(col1, col2) VALUES (1, 2);'\n You cannot insert '2' into the 'col2' column because this column is generated. For this script to work, you can change '2' to DEFAULT. 'INSERT INTO foo(col1, col2) VALUES (1, DEFAULT);'",
"markdown": "Reports INSERT statements that assign values to generated columns. Generated columns can be read, but their values can not be directly written.\n\nExample (PostgreSQL):\n\n CREATE TABLE foo\n (\n col1 INT,\n col2 INT GENERATED ALWAYS AS (col1 + 1) STORED\n );\n INSERT INTO foo(col1, col2) VALUES (1, 2);\n\nYou cannot insert `2` into the `col2` column because this column is generated.\nFor this script to work, you can change `2` to DEFAULT.\n`INSERT INTO foo(col1, col2) VALUES (1, DEFAULT);`"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlInsertIntoGeneratedColumn",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MsBuiltinInspection",
"shortDescription": {
"text": "Builtin functions"
},
"fullDescription": {
"text": "Reports truncations of string arguments in ISNULL functions. The ISNULL syntax is 'ISNULL(check_expression, replacement_value)'. According to ISNULL at docs.microsoft.com, 'replacement_value' will be truncated if 'replacement_value' is longer than 'check_expression'. Example (Microsoft SQL Server): 'DECLARE @name1 VARCHAR(2) = NULL;\nDECLARE @name2 VARCHAR(10) = 'Example';\nDECLARE @name3 VARCHAR(2) = 'Hi';\n\n -- `@name2` is VARCHAR(10) and will be truncated\nSELECT ISNULL(@name1, @name2);\n\n -- `@name3` is VARCHAR(2) as `@name1` and will not be truncated\nSELECT ISNULL(@name1, @name3);'",
"markdown": "Reports truncations of string arguments in ISNULL functions.\n\nThe ISNULL syntax is `ISNULL(check_expression, replacement_value)`.\n\nAccording to [ISNULL at\ndocs.microsoft.com](https://docs.microsoft.com/en-us/sql/t-sql/functions/isnull-transact-sql), `replacement_value` will be truncated if `replacement_value` is longer than\n`check_expression`.\n\nExample (Microsoft SQL Server):\n\n DECLARE @name1 VARCHAR(2) = NULL;\n DECLARE @name2 VARCHAR(10) = 'Example';\n DECLARE @name3 VARCHAR(2) = 'Hi';\n\n -- `@name2` is VARCHAR(10) and will be truncated\n SELECT ISNULL(@name1, @name2);\n\n -- `@name3` is VARCHAR(2) as `@name1` and will not be truncated\n SELECT ISNULL(@name1, @name3);\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MssqlBuiltin",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL server",
"index": 117,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlMultipleLimitClausesInspection",
"shortDescription": {
"text": "Multiple row limiting/offset clauses in queries"
},
"fullDescription": {
"text": "Reports usages of multiple row limiting clauses in a single query. Example (Microsoft SQL Server): 'create table foo(a int);\nselect top 1 * from foo order by a offset 10 rows fetch next 20 rows only;' The SELECT TOP clause is used to specify that only 1 record must be returned. The FETCH clause specifies the number of rows to return after the OFFSET clause has been processed. But as we already have the SELECT TOP limiting clause, the FETCH clause might be redundant.",
"markdown": "Reports usages of multiple row limiting clauses in a single query.\n\nExample (Microsoft SQL Server):\n\n create table foo(a int);\n select top 1 * from foo order by a offset 10 rows fetch next 20 rows only;\n\nThe SELECT TOP clause is used to specify that only 1 record must be\nreturned. The FETCH clause specifies the number of rows to return after the OFFSET\nclause has been processed. But as we already have the SELECT TOP limiting clause, the FETCH clause might be redundant."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlMultipleLimitClauses",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlIdentifierInspection",
"shortDescription": {
"text": "Identifier should be quoted"
},
"fullDescription": {
"text": "Reports situations when you use SQL reserved keywords as identifier names in your query. Example (Microsoft SQL Server): 'CREATE TABLE select (identity INT IDENTITY NOT NULL, order INT NOT NULL);' We use 'select', 'identity', and 'order' as table and column names. But they are also reserved keywords in Microsoft SQL Server. Therefore, in order to use them as object names in the query, you must quote these identifiers. To quote them, you can use the Quote identifier quick-fix. After the quick-fix is applied: 'CREATE TABLE [select] ([identity] INT IDENTITY NOT NULL, [order] INT NOT NULL);'",
"markdown": "Reports situations when you use SQL reserved keywords as identifier names in your query.\n\nExample (Microsoft SQL Server):\n\n CREATE TABLE select (identity INT IDENTITY NOT NULL, order INT NOT NULL);\n\nWe use `select`, `identity`, and `order` as table and column names.\nBut they are also reserved keywords in Microsoft SQL Server.\nTherefore, in order to use them as object names in the query, you must quote these identifiers. To quote them, you can use the\n**Quote identifier** quick-fix.\n\nAfter the quick-fix is applied:\n\n CREATE TABLE [select] ([identity] INT IDENTITY NOT NULL, [order] INT NOT NULL);\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlIdentifier",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlStorageInspection",
"shortDescription": {
"text": "SQL source modification detection"
},
"fullDescription": {
"text": "Reports situations when source code of a database object has been changed. The inspection is triggered when you perform database or object introspection. The introspection is run when you open source code of an object, run statements, and perform code refactoring. Also, you can run introspection by right-clicking an object and selecting Refresh. The inspection covers the following situations: Object source code was changed in the database but code in the editor was not updated. Works in PostgreSQL, Microsoft SQL Server, Oracle, and Sybase ASE. You changed the object source code, introspected the database, but source code has been already changed by someone else. The database introspector was updated in the IDE and you need to download new object properties that were missing in the previous introspector version.",
"markdown": "Reports situations when source code of a database object has been changed.\n\nThe inspection is triggered when you perform database or object introspection. The introspection is run when you open source code of an\nobject, run statements, and perform code refactoring.\nAlso, you can run introspection by right-clicking an object and selecting **Refresh**.\n\nThe inspection covers the following situations:\n\n* Object source code was changed in the database but code in the editor was not updated. Works in PostgreSQL, Microsoft SQL Server, Oracle, and Sybase ASE.\n* You changed the object source code, introspected the database, but source code has been already changed by someone else.\n* The database introspector was updated in the IDE and you need to download new object properties that were missing in the previous introspector version."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlStorageInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MsOrderByInspection",
"shortDescription": {
"text": "ORDER BY in queries"
},
"fullDescription": {
"text": "Reports usages when the 'ORDER BY' clause is used without 'TOP', 'OFFSET', or 'FOR XML' in views, inline functions, derived tables, subqueries, and common table expressions. For more information about usages of 'ORDER BY', see SELECT - ORDER BY Clause (Transact-SQL) at docs.microsoft.com. Example (Microsoft SQL server): 'CREATE TABLE foo (a INT NOT NULL, b INT NOT NULL);\n\nSELECT *\nFROM (SELECT a, b\nFROM foo A\nWHERE a < 89\nORDER BY b) ALIAS;' In a subquery, ORDER BY will be highlighted as an error. You can add TOP, OFFSET, or FOR XML to a subquery. Alternatively, use the Delete element quick-fix to delete the ORDER BY section. After the quick-fix is applied: 'SELECT *\nFROM (SELECT a, b\nFROM foo A\nWHERE a < 89) ALIAS;'",
"markdown": "Reports usages when the `ORDER BY` clause is used without `TOP`, `OFFSET`, or `FOR XML` in views, inline functions, derived tables, subqueries, and common table expressions.\n\nFor more information about usages of `ORDER BY`, see [SELECT - ORDER BY Clause (Transact-SQL) at\ndocs.microsoft.com](https://docs.microsoft.com/en-us/sql/t-sql/queries/select-order-by-clause-transact-sql).\n\nExample (Microsoft SQL server):\n\n CREATE TABLE foo (a INT NOT NULL, b INT NOT NULL);\n\n SELECT *\n FROM (SELECT a, b\n FROM foo A\n WHERE a < 89\n ORDER BY b) ALIAS;\n\nIn a subquery, ORDER BY will be highlighted as an error. You can add TOP, OFFSET, or FOR XML to a subquery.\nAlternatively, use the **Delete element** quick-fix to delete the ORDER BY section.\n\nAfter the quick-fix is applied:\n\n SELECT *\n FROM (SELECT a, b\n FROM foo A\n WHERE a < 89) ALIAS;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "error",
"parameters": {
"suppressToolId": "MsOrderBy",
"ideaSeverity": "ERROR",
"qodanaSeverity": "Critical"
}
},
"relationships": [
{
"target": {
"id": "SQL server",
"index": 117,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlSignatureInspection",
"shortDescription": {
"text": "Function signature"
},
"fullDescription": {
"text": "Reports signature issues for built-in functions. The inspection will report a wrong number of arguments, invalid keywords, wrong data types, and other issues. Example (MySQL): 'CREATE TABLE foo (a INT, b INT, c INT)\n\nSELECT IFNULL() FROM foo; -- error\nSELECT IFNULL(a) FROM foo; -- error\nSELECT IFNULL(a, b) FROM foo; -- OK\nSELECT IFNULL(a, b, c) FROM foo; -- error' In MySQL, the 'IFNULL()' function accepts strictly two arguments. So, only the 'SELECT IFNULL(a, b) FROM foo;' query is correct.",
"markdown": "Reports signature issues for built-in functions.\n\nThe inspection will report a wrong number of arguments, invalid keywords, wrong data types, and other issues.\n\nExample (MySQL):\n\n CREATE TABLE foo (a INT, b INT, c INT)\n\n SELECT IFNULL() FROM foo; -- error\n SELECT IFNULL(a) FROM foo; -- error\n SELECT IFNULL(a, b) FROM foo; -- OK\n SELECT IFNULL(a, b, c) FROM foo; -- error\n\nIn MySQL, the `IFNULL()` function accepts strictly two arguments. So, only the `SELECT IFNULL(a, b) FROM foo;`\nquery is correct."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlSignature",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlRedundantOrderingDirectionInspection",
"shortDescription": {
"text": "Redundant ordering direction"
},
"fullDescription": {
"text": "Reports redundant ordering directions like ASC and DESC in ORDER BY clauses. Example (MySQL): 'CREATE TABLE foo(a INT, b INT, c INT);\nSELECT * FROM foo ORDER BY a ASC, b DESC, c ASC;' The ORDER BY keyword sorts the records in the ascending order by default. So, the 'ASC' keyword for 'a' and 'c' columns is redundant.",
"markdown": "Reports redundant ordering directions like ASC and DESC in ORDER BY clauses.\n\nExample (MySQL):\n\n CREATE TABLE foo(a INT, b INT, c INT);\n SELECT * FROM foo ORDER BY a ASC, b DESC, c ASC;\n\nThe ORDER BY keyword sorts the records in the ascending order by default. So, the `ASC` keyword for `a` and\n`c` columns is redundant."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlRedundantOrderingDirection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlDeprecateTypeInspection",
"shortDescription": {
"text": "Deprecated type"
},
"fullDescription": {
"text": "Reports usages of types that are deprecated and might disappear in future versions of DBMS. Reported types: LONG in Oracle (see Deprecated and Desupported Features at docs.oracle.com). TEXT, NTEXT, and IMAGE in Microsoft SQL Server (see Deprecated Database Engine Features in SQL Server 2016 at docs.microsoft.com). Example (Oracle): 'CREATE TABLE ot.foo(\na NUMBER GENERATED BY DEFAULT AS IDENTITY,\nb LONG NOT NULL\n);'",
"markdown": "Reports usages of types that are deprecated and might disappear in future versions of DBMS.\n\nReported types:\n\n* LONG in Oracle (see [Deprecated\n and Desupported Features at docs.oracle.com](https://docs.oracle.com/cd/A91202_01/901_doc/server.901/a90120/ch4_dep.htm#6690)).\n* TEXT, NTEXT, and IMAGE in Microsoft SQL Server (see [Deprecated Database Engine Features in SQL Server 2016 at docs.microsoft.com](https://docs.microsoft.com/en-us/sql/database-engine/deprecated-database-engine-features-in-sql-server-2016?view=sql-server-ver15)).\n\nExample (Oracle):\n\n CREATE TABLE ot.foo(\n a NUMBER GENERATED BY DEFAULT AS IDENTITY,\n b LONG NOT NULL\n );\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlDeprecateType",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "OraOverloadInspection",
"shortDescription": {
"text": "Overloading errors"
},
"fullDescription": {
"text": "Reports invalid cases of subprogram overloading in Oracle. Example (Oracle): 'DECLARE\n SUBTYPE fff IS BINARY_INTEGER;\n SUBTYPE ggg IS NATURAL;\n PROCEDURE foo (a IN ggg) IS BEGIN NULL; END;\n PROCEDURE foo (a IN fff) IS BEGIN NULL; END;\nBEGIN\n NULL;\nEND;' You cannot overload subprograms which parameters differ only in subtypes. For example, you cannot overload procedures where one accepts a BINARY INTEGER parameter and the other accepts a NATURAL parameter. For more information about restrictions on procedure overloading, see Restrictions on Overloading at docs.oracle.com.",
"markdown": "Reports invalid cases of subprogram overloading in Oracle.\n\nExample (Oracle):\n\n DECLARE\n SUBTYPE fff IS BINARY_INTEGER;\n SUBTYPE ggg IS NATURAL;\n PROCEDURE foo (a IN ggg) IS BEGIN NULL; END;\n PROCEDURE foo (a IN fff) IS BEGIN NULL; END;\n BEGIN\n NULL;\n END;\n\nYou cannot overload subprograms which parameters differ only in subtypes. For example, you cannot overload procedures where one accepts a\nBINARY INTEGER parameter and the other accepts a NATURAL parameter. For more information about restrictions on procedure overloading,\nsee [Restrictions on Overloading at docs.oracle.com](https://docs.oracle.com/cd/B19306_01/appdev.102/b14261/subprograms.htm)."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlOverload",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Oracle",
"index": 99,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlGotoInspection",
"shortDescription": {
"text": "Usages of GOTO statements"
},
"fullDescription": {
"text": "Reports usages of backward GOTO statements and GOTO statements used to exit a loop. The extensive use of GOTO statements is generally not recommended. For details, see GOTO statement in SQL procedures at ibm.com. Instead of jumping back to a previous statement using GOTO, consider using a loop. Instead of exiting the WHILE loop with GOTO, consider using other control-of-flow statements (for example, RETURN or BREAK). Example (Oracle): 'CREATE PROCEDURE test(n INT) AS\nDECLARE\n x INT;\nBEGIN\n x := 0;\n GOTO a;\n <<a>> x := 1;\n IF (n = 0) THEN\n GOTO a;\n END IF;\n WHILE TRUE\n LOOP\n GOTO b;\n END LOOP;\n <<b>> x := 3;\nEND;'",
"markdown": "Reports usages of backward GOTO statements and GOTO statements used to exit a loop.\n\nThe extensive use of GOTO statements is generally\nnot recommended. For details, see [GOTO statement in\nSQL\nprocedures at ibm.com](https://www.ibm.com/docs/no/db2/11.5?topic=procedures-goto-statement-in-sql).\n\nInstead of jumping back to a previous statement using GOTO, consider using a loop.\n\nInstead of exiting the WHILE loop with GOTO, consider using other control-of-flow statements (for example, RETURN or BREAK).\n\nExample (Oracle):\n\n CREATE PROCEDURE test(n INT) AS\n DECLARE\n x INT;\n BEGIN\n x := 0;\n GOTO a;\n <<a>> x := 1;\n IF (n = 0) THEN\n GOTO a;\n END IF;\n WHILE TRUE\n LOOP\n GOTO b;\n END LOOP;\n <<b>> x := 3;\n END;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlGoto",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlAmbiguousColumnInspection",
"shortDescription": {
"text": "Ambiguous reference"
},
"fullDescription": {
"text": "Reports columns that have identical names but belong to different tables. Example (MySQL): 'CREATE TABLE foo(id INT PRIMARY KEY);\nCREATE TABLE bar(id INT PRIMARY KEY);\n\nSELECT foo.id, bar.id FROM foo, bar WHERE id > 0;' The 'id' column appears in 'foo' and 'bar' tables. You need to qualify the column name to make the query correct. 'SELECT foo.id, bar.id FROM foo, bar WHERE foo.id > 0;'",
"markdown": "Reports columns that have identical names but belong to different tables.\n\nExample (MySQL):\n\n CREATE TABLE foo(id INT PRIMARY KEY);\n CREATE TABLE bar(id INT PRIMARY KEY);\n\n SELECT foo.id, bar.id FROM foo, bar WHERE id > 0;\n\nThe `id` column appears in `foo` and `bar` tables. You need to qualify the column name to\nmake the query correct.\n\n SELECT foo.id, bar.id FROM foo, bar WHERE foo.id > 0;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlAmbiguousColumn",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "SqlNullComparisonInspection",
"shortDescription": {
"text": "Null comparison"
},
"fullDescription": {
"text": "Reports comparisons with NULL that can be replaced with IS NULL or IS NOT NULL operators. Example (Microsoft SQL Server): 'CREATE TABLE foo ( id int );\n\nSELECT * FROM foo WHERE NULL = NULL;\nSELECT * FROM foo WHERE NULL != NULL;' The 'NULL = NULL' can be replaced with 'IS NULL', the 'NULL != NULL' comparison with 'IS NOT NULL'. To do this replacement, you can use Use IS NULL operator or Use IS NOT NULL operator quick-fixes. 'SELECT * FROM foo WHERE NULL IS NULL;\nSELECT * FROM foo WHERE NULL IS NOT NULL;'",
"markdown": "Reports comparisons with NULL that can be replaced with IS NULL or IS NOT NULL operators.\n\nExample (Microsoft SQL Server):\n\n CREATE TABLE foo ( id int );\n\n SELECT * FROM foo WHERE NULL = NULL;\n SELECT * FROM foo WHERE NULL != NULL;\n\nThe `NULL = NULL` can be replaced with `IS NULL`, the `NULL != NULL` comparison\nwith `IS NOT NULL`. To do this replacement, you can use **Use IS NULL operator** or **Use IS NOT NULL operator**\nquick-fixes.\n\n SELECT * FROM foo WHERE NULL IS NULL;\n SELECT * FROM foo WHERE NULL IS NOT NULL;\n"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "SqlNullComparison",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "SQL",
"index": 41,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
}
],
"language": "en-US",
"contents": [
"localizedData",
"nonLocalizedData"
],
"isComprehensive": false
},
{
"name": "fr.adrienbrault.idea.symfony2plugin",
"version": "2022.1.259",
"rules": [
{
"id": "TwigExtensionDeprecatedInspection",
"shortDescription": {
"text": "Deprecated Twig Extension"
},
"fullDescription": {
"text": "Detect Twig token tags which are marked as deprecated via PhpClass Deprecation inspection for Twig token tags",
"markdown": "Detect Twig token tags which are marked as deprecated via PhpClass\n\nDeprecation inspection for Twig token tags"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigExtensionDeprecatedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Twig",
"index": 14,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "RequestStackInAction",
"shortDescription": {
"text": "Symfony: Report deprecated class injection"
},
"fullDescription": {
"text": "To access the Request in your controller, add it as an argument and type-hint it with the \\Symfony\\Component\\HttpFoundation\\Request class. See https://symfony.com/doc/current/controller.html#the-request-object-as-a-controller-argument for more information.",
"markdown": "To access the Request in your controller, add it as an argument and type-hint it with the \\\\Symfony\\\\Component\\\\HttpFoundation\\\\Request class.\n\nSee https://symfony.com/doc/current/controller.html#the-request-object-as-a-controller-argument for more information."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "RequestStackInAction",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ConstructorNoToken",
"shortDescription": {
"text": "Symfony: constructor no Token access"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ConstructorNoToken",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ProjectDirParameter",
"shortDescription": {
"text": "Symfony: 'kernel.project_dir' can be used"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ProjectDirParameter",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigAssetMissingInspection",
"shortDescription": {
"text": "Twig: Missing Asset"
},
"fullDescription": {
"text": "Asset not found. See Symfony documentation for more information",
"markdown": "Asset not found. See [Symfony documentation](http://symfony.com/doc/current/assetic/asset_management.html?phpstorm) for more information"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigAssetMissingInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Asset",
"index": 53,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigRouteInspection",
"shortDescription": {
"text": "Twig: Missing Route"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigRouteInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Route",
"index": 59,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "AutowireWrongClass",
"shortDescription": {
"text": "Symfony: autowire wrong class"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "AutowireWrongClass",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ConstructorTwigExtensionHeavyConstructor",
"shortDescription": {
"text": "Symfony: Avoid heavy construction in Twig extension"
},
"fullDescription": {
"text": "Avoid heavy Twig extensions should be avoided for initialize purpose: If extensions don't define dependencies (i.e. if you don't inject services in them) performance is not affected. However, if extensions define lots of complex dependencies (e.g. those making database connections), the performance loss can be significant.",
"markdown": "Avoid heavy Twig extensions should be avoided for initialize purpose: [](https://symfony.com/doc/current/templating/twig_extension.html#creating-lazy-loaded-twig-extensions) If extensions don't define dependencies (i.e. if you don't inject services in them) performance is not affected. However, if extensions define lots of complex dependencies (e.g. those making database connections), the performance loss can be significant."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ConstructorTwigExtensionHeavyConstructor",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ServiceNamedArgumentExistsInspection",
"shortDescription": {
"text": "Symfony: Argument does not exists"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ServiceNamedArgumentExistsInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "UseControllerShortcuts",
"shortDescription": {
"text": "Symfony: A controller shortcut method is available"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "UseControllerShortcuts",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony2YamlDuplicateServiceKeyInspection",
"shortDescription": {
"text": "Duplicate Key"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Symfony2YamlDuplicateServiceKeyInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ContainerConstant",
"shortDescription": {
"text": "Constant not found"
},
"fullDescription": {
"text": "Constant not found",
"markdown": "Constant not found"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ContainerConstant",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTranslationKeyInspection",
"shortDescription": {
"text": "PHP: Missing translation key"
},
"fullDescription": {
"text": "Show missing translation related strings of PHP Files",
"markdown": "Show missing translation related strings of PHP Files"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpTranslationKeyInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Translation",
"index": 80,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "RouteControllerDeprecatedInspection",
"shortDescription": {
"text": "Deprecated Action"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "RouteControllerDeprecatedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Route",
"index": 59,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigTranslationDomain",
"shortDescription": {
"text": "Twig: Missing translation domain"
},
"fullDescription": {
"text": "Translation domain was found. See Symfony documentation",
"markdown": "Translation domain was found. [See Symfony documentation](https://symfony.com/doc/current/components/translation/usage.html)"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigTranslationDomain",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Translation",
"index": 80,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigVariablePathInspection",
"shortDescription": {
"text": "Field or method not found"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigVariablePathInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Twig",
"index": 14,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony2YamlDuplicateParameterKeyInspection",
"shortDescription": {
"text": "Duplicate Key"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Symfony2YamlDuplicateParameterKeyInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TaggedExtendsInterfaceClass",
"shortDescription": {
"text": "Missing Tag extends/interface statement"
},
"fullDescription": {
"text": "Tagged service is missing extends or interface statement See more on Symfony2 doc: The Dependency Injection Tags",
"markdown": "Tagged service is missing extends or interface statement See more on Symfony2 doc: [The Dependency Injection Tags](http://symfony.com/doc/current/reference/dic_tags.html)"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TaggedExtendsInterfaceClass",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "FormViewTemplate",
"shortDescription": {
"text": "Symfony: Create a form view for passing to template"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "FormViewTemplate",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlControllerMethod",
"shortDescription": {
"text": "Missing Controller Action"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlControllerMethod",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Route",
"index": 59,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TemplateExistsAnnotationPhpAttributeLocalInspection",
"shortDescription": {
"text": "Twig: Missing Template"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TemplateExistsAnnotationPhpAttributeLocalInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Asset",
"index": 53,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony2XmlDuplicateServiceKeyInspection",
"shortDescription": {
"text": "Duplicate Key"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Symfony2XmlDuplicateServiceKeyInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ControllerActionMissingExit",
"shortDescription": {
"text": "Symfony: Probably missing 'throw' for exception"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ControllerActionMissingExit",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTranslationDomainInspection",
"shortDescription": {
"text": "PHP: Missing translation domain"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpTranslationDomainInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Translation",
"index": 80,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ConstructorNoUser",
"shortDescription": {
"text": "Symfony: constructor no User access"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ConstructorNoUser",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "EventMethodCall",
"shortDescription": {
"text": "Create Method"
},
"fullDescription": {
"text": "Method not found in class",
"markdown": "Method not found in class"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "EventMethodCall",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "FormTypeBuilderInstance",
"shortDescription": {
"text": "Symfony: Class does not implement 'Symfony\\Component\\Form\\FormTypeInterface'"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "FormTypeBuilderInstance",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "DuplicateLocalRouteInspection",
"shortDescription": {
"text": "Duplicate Route"
},
"fullDescription": {
"text": "Duplicate routes are defined in same scope where only one overwrites the other",
"markdown": "Duplicate routes are defined in same scope where only one overwrites the other"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "DuplicateLocalRouteInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Route",
"index": 59,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ConstructorNoSession",
"shortDescription": {
"text": "Symfony: constructor no Session access"
},
"fullDescription": {
"text": "Write your description here. Start the description with a verb in 3rd person singular, like reports, detects, highlights. In the first sentence, briefly explain what exactly the inspection helps you detect. Make sure the sentence is not very long and complicated. The first sentence must be in a dedicated paragraph separated from the rest of the text. This will make the description easier to read. Make sure the description doesn’t just repeat the inspection title. See https://jetbrains.design/intellij/text/inspections/#descriptions for more information. Text after this comment will only be shown in the settings of the inspection.",
"markdown": "Write your description here. Start the description with a verb in 3rd person singular, like reports, detects, highlights. In the first sentence, briefly explain what exactly the inspection helps you detect. Make sure the sentence is not very long and complicated. The first sentence must be in a dedicated paragraph separated from the rest of the text. This will make the description easier to read. Make sure the description doesn't just repeat the inspection title. See https://jetbrains.design/intellij/text/inspections/#descriptions for more information.\n\nText after this comment will only be shown in the settings of the inspection."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ConstructorNoSession",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpTemplateMissingInspection",
"shortDescription": {
"text": "Twig: Template Missing"
},
"fullDescription": {
"text": "Twig template is not found in configured template paths",
"markdown": "Twig template is not found in configured template paths"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpTemplateMissingInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Twig",
"index": 14,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "XmlServiceInstanceInspection",
"shortDescription": {
"text": "XML: Wrong Service Instance"
},
"fullDescription": {
"text": "Provided instance of service id does not match argument",
"markdown": "Provided instance of service id does not match argument"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "XmlServiceInstanceInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ConstructorDeprecatedInjection",
"shortDescription": {
"text": "Symfony: Report deprecated class injection"
},
"fullDescription": {
"text": "Report deprecated class injection",
"markdown": "Report deprecated class injection"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ConstructorDeprecatedInjection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "Symfony2XmlDuplicateParameterKeyInspection",
"shortDescription": {
"text": "Duplicate Key"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "Symfony2XmlDuplicateParameterKeyInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpRouteMissingInspection",
"shortDescription": {
"text": "Route Missing"
},
"fullDescription": {
"text": "No route definition found. See Symfony documention for more information",
"markdown": "No route definition found. See [Symfony documention](https://symfony.com/doc/current/routing.html?phpstorm) for more information"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpRouteMissingInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Route",
"index": 59,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigWithExtendsWithRootHtml",
"shortDescription": {
"text": "Symfony: A template that extends another one cannot include content outside Twig blocks"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigWithExtendsWithRootHtml",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigTranslationKeyInspection",
"shortDescription": {
"text": "Twig: Missing translation key"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigTranslationKeyInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Translation",
"index": 80,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "XmlServiceArgumentInspection",
"shortDescription": {
"text": "Symfony: XML Arguments"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "XmlServiceArgumentInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MissingService",
"shortDescription": {
"text": "Missing Service"
},
"fullDescription": {
"text": "No Symfony service with given id was found. See Symfony documentation for more help",
"markdown": "No Symfony service with given id was found. See [Symfony documentation](https://symfony.com/doc/current/service_container.html?phpstorm) for more help"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "MissingService",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigForConditionDeprecated",
"shortDescription": {
"text": "Symfony: Twig conditional 'for' syntax is deprecated as of Twig 2.10"
},
"fullDescription": {
"text": "Twig conditional 'for' syntax is deprecated as of Twig 2.10 As of Twig 2.10, use the filter instead, or an if condition inside the for body (if your condition depends on a variable updated inside the loop and you are not using the loop variable).",
"markdown": "Twig conditional 'for' syntax is deprecated as of Twig 2.10 As of Twig 2.10, use the filter instead, or an if condition inside the for body (if your condition depends on a variable updated inside the loop and you are not using the loop variable)."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigForConditionDeprecated",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigTemplateMissingInspection",
"shortDescription": {
"text": "Twig: Missing Template"
},
"fullDescription": {
"text": "Twig template is not found in configured template paths",
"markdown": "Twig template is not found in configured template paths"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigTemplateMissingInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Template",
"index": 110,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlServiceArgumentInspection",
"shortDescription": {
"text": "Symfony: Yaml Arguments"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlServiceArgumentInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlXmlServiceInstanceInspection",
"shortDescription": {
"text": "Yaml: Wrong Service Instance"
},
"fullDescription": {
"text": "Provided instance of service id does not match argument",
"markdown": "Provided instance of service id does not match argument"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlXmlServiceInstanceInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigAssetsTagMissingInspection",
"shortDescription": {
"text": "Twig: Missing Asset"
},
"fullDescription": {
"text": "Asset not found. See Symfony documentation for more information",
"markdown": "Asset not found. See [Symfony documentation](http://symfony.com/doc/current/templating.html?phpstorm#linking-to-assets) for more information"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigAssetsTagMissingInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Asset",
"index": 53,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ConstructorNoRequestStack",
"shortDescription": {
"text": "Symfony: constructor no RequestStack"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ConstructorNoRequestStack",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlParameterInspection",
"shortDescription": {
"text": "Symfony: Missing Parameter"
},
"fullDescription": {
"text": "No parameter definition not found. See Symfony documentation for how to add one",
"markdown": "No parameter definition not found. [See Symfony documentation](https://symfony.com/doc/current/service_container/parameters.html?phpstorm) for how to add one"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlParameterInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlUnquotedColon",
"shortDescription": {
"text": "Colon in the unquoted mapping"
},
"fullDescription": {
"text": "A colon cannot be used in an unquoted mapping value.",
"markdown": "A colon cannot be used in an unquoted mapping value."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlUnquotedColon",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Yaml",
"index": 111,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigVariableDeprecatedInspection",
"shortDescription": {
"text": "Deprecated Twig variable"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigVariableDeprecatedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Twig",
"index": 14,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "AutowireControllerAsService",
"shortDescription": {
"text": "Symfony: controller should not be autowire"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "AutowireControllerAsService",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "DoctrineQueryBuilderAdder",
"shortDescription": {
"text": "Symfony: Previous QueryBuilder method call should be removed, because is overwritten here"
},
"fullDescription": {
"text": "",
"markdown": ""
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "DoctrineQueryBuilderAdder",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "TwigPathReplacement",
"shortDescription": {
"text": "Symfony: Twig route path exits"
},
"fullDescription": {
"text": "A Symfony routes exists for linking page and path should be used",
"markdown": "A Symfony routes exists for linking page and [path](https://symfony.com/doc/current/templates.html#templates-link-to-pages) should be used"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "TwigPathReplacement",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "FormTypeAsClassConstant",
"shortDescription": {
"text": "Fully-qualified class name (FQCN) in form types"
},
"fullDescription": {
"text": "Type names were deprecated use fully-qualified class name (FQCN) instead",
"markdown": "Type names were deprecated use fully-qualified class name (FQCN) instead"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "FormTypeAsClassConstant",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Form",
"index": 114,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ContainerSettingDeprecatedInspection",
"shortDescription": {
"text": "Symfony: Container settings deprecated"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ContainerSettingDeprecatedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PhpAssetMissingInspection",
"shortDescription": {
"text": "Symfony: Missing Asset"
},
"fullDescription": {
"text": "Asset not found. See Symfony documentation for more information",
"markdown": "Asset not found. See [Symfony documentation](http://symfony.com/doc/current/assetic/asset_management.html?phpstorm) for more information"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "PhpAssetMissingInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Asset",
"index": 53,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlClassInspection",
"shortDescription": {
"text": "Yaml: Missing Class"
},
"fullDescription": {
"text": "PHP class for this service definition was not found",
"markdown": "PHP class for this service definition was not found"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlClassInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlQuotedEscapedInspection",
"shortDescription": {
"text": "Quoted issues"
},
"fullDescription": {
"text": "Deprecated quoted issues",
"markdown": "Deprecated quoted issues"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlQuotedEscapedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Yaml",
"index": 111,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "RouteSettingDeprecatedInspection",
"shortDescription": {
"text": "Symfony: Route settings deprecated"
},
"fullDescription": {},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "RouteSettingDeprecatedInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Route",
"index": 59,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "YamlDeprecatedClasses",
"shortDescription": {
"text": "Deprecated Class"
},
"fullDescription": {
"text": "Class is deprecated, you should replace this class",
"markdown": "Class is deprecated, you should replace this class"
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "YamlDeprecatedClasses",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony/Service",
"index": 66,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "ConstructorCommandHeavyConstructor",
"shortDescription": {
"text": "Symfony: Avoid heavy construction in Command"
},
"fullDescription": {
"text": "Avoid heavy Commands for initialize purpose (similar like Twig extension): If extensions don't define dependencies (i.e. if you don't inject services in them) performance is not affected. However, if extensions define lots of complex dependencies (e.g. those making database connections), the performance loss can be significant. A common pitfall: composer install / update requires a Database connection.",
"markdown": "Avoid heavy Commands for initialize purpose (similar like Twig extension): [](https://symfony.com/doc/current/templating/twig_extension.html#creating-lazy-loaded-twig-extensions) If extensions don't define dependencies (i.e. if you don't inject services in them) performance is not affected. However, if extensions define lots of complex dependencies (e.g. those making database connections), the performance loss can be significant. A common pitfall: composer install / update requires a Database connection."
},
"defaultConfiguration": {
"enabled": false,
"level": "warning",
"parameters": {
"suppressToolId": "ConstructorCommandHeavyConstructor",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "Symfony",
"index": 13,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
}
],
"language": "en-US",
"contents": [
"localizedData",
"nonLocalizedData"
],
"isComprehensive": false
},
{
"name": "com.funivan.idea.phpClean",
"version": "2023.04.01",
"rules": [
{
"id": "MissingReturnTypeInspection",
"shortDescription": {
"text": "Missing return type declaration"
},
"fullDescription": {
"text": "Always specify result type of the function. function phrase() { // <-- Missing return type\n return 'hi';\n}",
"markdown": "Always specify result type of the function.\n\n```\nfunction phrase() { // <-- Missing return type\n return 'hi';\n}\n```"
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "MissingReturnTypeInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PhpClean",
"index": 17,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "MethodShouldBeFinalInspection",
"shortDescription": {
"text": "Method should be final"
},
"fullDescription": {
"text": "Methods should be closed (make method or class final) class User {\n public function name(): string { // <-- Method should be final\n return '';\n }\n}",
"markdown": "Methods should be closed (make method or class final)\n\n```\nclass User {\n public function name(): string { // <-- Method should be final\n return '';\n }\n}\n```"
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "MethodShouldBeFinalInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PhpClean",
"index": 17,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "PropertyAnnotationInspection",
"shortDescription": {
"text": "Property annotation"
},
"fullDescription": {
"text": "Properties that are not initialized in the constructor should be annotated as nullable. class User {\n /** @var string */ // <-- Property is not annotated correctly. Add null type\n private $name;\n public function getName() { }\n public function setName(string $name) { }\n}",
"markdown": "Properties that are not initialized in the constructor should be annotated as nullable.\n\n```\nclass User {\n /** @var string */ // <-- Property is not annotated correctly. Add null type\n private $name;\n public function getName() { }\n public function setName(string $name) { }\n}\n```"
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "PropertyAnnotationInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"
}
},
"relationships": [
{
"target": {
"id": "PHP/PhpClean",
"index": 17,
"toolComponent": {
"name": "PS"
}
},
"kinds": [
"superset"
]
}
]
},
{
"id": "GlobalVariableUsageInspection",
"shortDescription": {
"text": "Global variable usage"
},
"fullDescription": {
"text": "This inspection detects usages of global variables. echo $_GET['name']; // <-- Global variable usage",
"markdown": "This inspection detects usages of global variables.\n\n```\necho $_GET['name']; // <-- Global variable usage\n```"
},
"defaultConfiguration": {
"enabled": true,
"level": "warning",
"parameters": {
"suppressToolId": "GlobalVariableUsageInspection",
"ideaSeverity": "WARNING",
"qodanaSeverity": "High"