{ "$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: '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 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 '' PHPDoc syntax.", "markdown": "Reports the assignments and return statements whose arguments do not match the expected ranges specified via `int` 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 '' 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 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 \\** 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 <> 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 <> 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 <> 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 <> 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" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "AssignMisusedInspection", "shortDescription": { "text": "Assign misused" }, "fullDescription": { "text": "Detects assignment and comparison operators in one statement. while (false !== $current = ldap_next_entry($con, $current)) {\n // ^^^ Hard to read this statements\n yield $this->getSingleEntry($con, $current);\n}", "markdown": "Detects assignment and comparison operators in one statement.\n\n```\nwhile (false !== $current = ldap_next_entry($con, $current)) {\n // ^^^ Hard to read this statements\n yield $this->getSingleEntry($con, $current);\n}\n```" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "AssignMisusedInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "MethodVisibilityInspection", "shortDescription": { "text": "Method visibility" }, "fullDescription": { "text": "Protected methods make our classes more open. Write private or public methods only. The better way is to use object composition technique if you want to make you object more flexible.", "markdown": "Protected methods make our classes more open. Write private or public methods only. The better way is to use [object composition](https://en.wikipedia.org/wiki/Object_composition) technique if you want to make you object more flexible." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "MethodVisibilityInspection", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RedundantDocCommentTagInspection", "shortDescription": { "text": "Redundant doc comment tag" }, "fullDescription": { "text": "Types that are specified in the php can be omitted in the PhpDoc blocks /**\n * @return void // <-- Redundant PhpDoc tag\n */\n function show(string $message): void {}", "markdown": "Types that are specified in the php can be omitted in the PhpDoc blocks \n\n```\n/**\n * @return void // <-- Redundant PhpDoc tag\n */\n function show(string $message): void {}\n```" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "RedundantDocCommentTagInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "DeprecatedDocTagInspection", "shortDescription": { "text": "Deprecated doc tag" }, "fullDescription": { "text": "You can deprecate some PhpDoc tags in your project.", "markdown": "You can deprecate some PhpDoc tags in your project." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "DeprecatedDocTagInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ProhibitedClassExtendInspection", "shortDescription": { "text": "Prohibited class extend" }, "fullDescription": { "text": "Classes marked with `@final` doc tag should not be extended /**\n * @final\n */\n class User {};\n\n class Admin extends User {}; // <- Prohibited extentions of @final class User.", "markdown": "Classes marked with \\`@final\\` doc tag should not be extended\n\n```\n/**\n * @final\n */\n class User {};\n\n class Admin extends User {}; // <- Prohibited extentions of @final class User.\n```" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ProhibitedClassExtendInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "VirtualTypeCheckInspection", "shortDescription": { "text": "Virtual type check" }, "fullDescription": { "text": "Use assert to check variable type instead of doc comment. /** @var User $user */ // <-- Use assert to check variable type\nassert($user instanceof User);", "markdown": "Use assert to check variable type instead of doc comment.\n\n```\n/** @var User $user */ // <-- Use assert to check variable type\nassert($user instanceof User);\n```" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "VirtualTypeCheckInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "MethodCanBePrivateInspection", "shortDescription": { "text": "Method can be private" }, "fullDescription": { "text": "Protected methods can be converted to private. final class User {\n protected function name() {} // <-- Method can be private\n}", "markdown": "Protected methods can be converted to private.\n\n```\nfinal class User {\n protected function name() {} // <-- Method can be private\n}\n```" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "MethodCanBePrivateInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "PropertyCanBePrivateInspection", "shortDescription": { "text": "Property can be private" }, "fullDescription": { "text": "Protected properties can be converted to private. class User {\n protected $user; // <-- Property can be private\n}", "markdown": "Protected properties can be converted to private.\n\n```\nclass User {\n protected $user; // <-- Property can be private\n}\n```" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "PropertyCanBePrivateInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ParentPropertyDeprecatedInspection", "shortDescription": { "text": "Parent property is deprecated" }, "fullDescription": { "text": "Check if parent property is deprecated. class A {\n /** @deprecated */\n protected $name;\n }\n class B extends A {\n protected $name; // <-- Warn about deprecation\n }\n The recommended way of resolving this error is to provide deprecated tag for deprecated properties. Another case it to remove parent deprecated property.", "markdown": "Check if parent property is deprecated.\n\n```\n class A {\n /** @deprecated */\n protected $name;\n }\n class B extends A {\n protected $name; // <-- Warn about deprecation\n }\n```\n\nThe recommended way of resolving this error is to provide deprecated tag for deprecated properties. Another case it to remove parent deprecated property." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ParentPropertyDeprecatedInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ClassNameCollisionInspection", "shortDescription": { "text": "Class name collision" }, "fullDescription": { "text": "Classes with same name in different namespaces can be confused. (Disabled by default) namespace App {\n class User {}; // <- Class name collision with \\Cli\\User\n}\nnamespace Cli {\n class User {}; // <- Class name collision with \\App\\User\n}", "markdown": "Classes with same name in different namespaces can be confused. (Disabled by default)\n\n```\nnamespace App {\n class User {}; // <- Class name collision with \\Cli\\User\n}\nnamespace Cli {\n class User {}; // <- Class name collision with \\App\\User\n}\n```" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ClassNameCollisionInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ToStringCallInspection", "shortDescription": { "text": "Deprecated __toString call" }, "fullDescription": { "text": "Detect automatic type casting class Hello {\n public function randomize(): self { /* ... */return $this; }\n public function __toString() { return 'Hi'; }\n}\necho (new Hello())->randomize(); // <-- Deprecated __toString call", "markdown": "Detect automatic type casting\n\n```\nclass Hello {\n public function randomize(): self { /* ... */return $this; }\n public function __toString() { return 'Hi'; }\n}\necho (new Hello())->randomize(); // <-- Deprecated __toString call\n```" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ToStringCallInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "MissingParameterTypeDeclarationInspection", "shortDescription": { "text": "Missing parameter type declaration" }, "fullDescription": { "text": "Always specify parameter type. This is a good practice. class User {\n public function withName($name) {} // <-- Missing parameter type\n}", "markdown": "Always specify parameter type. This is a good practice.\n\n```\nclass User {\n public function withName($name) {} // <-- Missing parameter type\n}\n```" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "MissingParameterTypeDeclarationInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "PHP/PhpClean", "index": 17, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] } ], "language": "en-US", "contents": [ "localizedData", "nonLocalizedData" ], "isComprehensive": false }, { "name": "org.jetbrains.plugins.sass", "version": "232.10072.32", "rules": [ { "id": "SassScssResolvedByNameOnly", "shortDescription": { "text": "Missing import" }, "fullDescription": { "text": "Reports a reference to a variable, mixin, or function that is declared in another file but this file isn't explicitly imported in the current file. Example: '* {\n margin: $var-in-other-file;\n}'", "markdown": "Reports a reference to a variable, mixin, or function that is declared in another file but this file isn't explicitly [imported](https://sass-lang.com/documentation/at-rules/import) in the current file.\n\n**Example:**\n\n\n * {\n margin: $var-in-other-file;\n }\n" }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "SassScssResolvedByNameOnly", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "Sass/SCSS", "index": 18, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "SassScssUnresolvedVariable", "shortDescription": { "text": "Unresolved variable" }, "fullDescription": { "text": "Reports an unresolved Sass/SCSS variable reference. Example: '* {\n margin: $unknown-var;\n}'", "markdown": "Reports an unresolved [Sass/SCSS variable](https://sass-lang.com/documentation/variables) reference.\n\n**Example:**\n\n\n * {\n margin: $unknown-var;\n }\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "SassScssUnresolvedVariable", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Sass/SCSS", "index": 18, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "SassScssUnresolvedMixin", "shortDescription": { "text": "Unresolved mixin" }, "fullDescription": { "text": "Reports an unresolved Sass/SCSS mixin reference. Example: '* {\n @include unknown-mixin;\n}'", "markdown": "Reports an unresolved [Sass/SCSS mixin](https://sass-lang.com/documentation/at-rules/mixin) reference.\n\n**Example:**\n\n\n * {\n @include unknown-mixin;\n }\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "SassScssUnresolvedMixin", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Sass/SCSS", "index": 18, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "SassScssUnresolvedPlaceholderSelector", "shortDescription": { "text": "Unresolved placeholder selector" }, "fullDescription": { "text": "Reports an unresolved Sass/SCSS placeholder selector reference. Example: '* {\n @extend %unknown-placeholder-selector;\n}'", "markdown": "Reports an unresolved [Sass/SCSS placeholder selector](https://sass-lang.com/documentation/variables) reference.\n\n**Example:**\n\n\n * {\n @extend %unknown-placeholder-selector;\n }\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "SassScssUnresolvedPlaceholderSelector", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Sass/SCSS", "index": 18, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] } ], "language": "en-US", "contents": [ "localizedData", "nonLocalizedData" ], "isComprehensive": false }, { "name": "com.intellij", "version": "232.10072.32", "rules": [ { "id": "HtmlUnknownBooleanAttribute", "shortDescription": { "text": "Incorrect boolean attribute" }, "fullDescription": { "text": "Reports an HTML non-boolean attribute without a value. Suggests configuring attributes that should not be reported.", "markdown": "Reports an HTML non-boolean attribute without a value. Suggests configuring attributes that should not be reported." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "HtmlUnknownBooleanAttribute", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "DuplicatedCode", "shortDescription": { "text": "Duplicated code fragment" }, "fullDescription": { "text": "Reports duplicated blocks of code from the selected scope: the same file or the entire project. The inspection features quick-fixes that help you to set the size of detected duplicates, navigate to repetitive code fragments, and compare them in a tool window. The inspection options allow you to select the scope of the reported duplicated fragments and set the initial size for the duplicated language constructs. You can also configure the constructs that you want to anonymize in Settings | Editor | Duplicates.", "markdown": "Reports duplicated blocks of code from the selected scope: the same file or the entire project.\n\nThe inspection features quick-fixes that help you to set the size of detected duplicates, navigate to repetitive code fragments, and compare them in a tool window.\n\nThe inspection options allow you to select the scope of the reported duplicated fragments and set the initial size for the duplicated language constructs.\n\nYou can also configure the constructs that you want to anonymize in [Settings \\| Editor \\| Duplicates](settings://duplicates.index)." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "DuplicatedCode", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "InconsistentLineSeparators", "shortDescription": { "text": "Inconsistent line separators" }, "fullDescription": { "text": "Reports files with line separators different from the ones that are specified in the project's settings. For example, the inspection will be triggered if you set the line separator to '\\n' in Settings | Editor | Code Style | Line separator, while the file you are editing uses '\\r\\n' as a line separator. The inspection also warns you about mixed line separators within a file.", "markdown": "Reports files with line separators different from the ones that are specified in the project's settings.\n\nFor example, the inspection will be triggered if you set the line separator to `\\n` in\n[Settings \\| Editor \\| Code Style \\| Line separator](settings://preferences.sourceCode?Line%20separator),\nwhile the file you are editing uses `\\r\\n` as a line separator.\n\nThe inspection also warns you about mixed line separators within a file." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "InconsistentLineSeparators", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RedundantSuppression", "shortDescription": { "text": "Redundant suppression" }, "fullDescription": { "text": "Reports usages of the following elements that can be safely removed because the inspection they affect is no longer applicable in this context: '@SuppressWarning' annotation, or '// noinspection' line comment, or '/** noinspection */' JavaDoc comment Example: 'public class C {\n // symbol is already private,\n // but annotation is still around\n @SuppressWarnings({\"WeakerAccess\"})\n private boolean CONST = true;\n void f() {\n CONST = false;\n }\n}'", "markdown": "Reports usages of the following elements that can be safely removed because the inspection they affect is no longer applicable in this context:\n\n* `@SuppressWarning` annotation, or\n* `// noinspection` line comment, or\n* `/** noinspection */` JavaDoc comment\n\nExample:\n\n\n public class C {\n // symbol is already private,\n // but annotation is still around\n @SuppressWarnings({\"WeakerAccess\"})\n private boolean CONST = true;\n void f() {\n CONST = false;\n }\n }\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "RedundantSuppression", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ProblematicWhitespace", "shortDescription": { "text": "Problematic whitespace" }, "fullDescription": { "text": "Reports the following problems: Tabs used for indentation when the code style is configured to use only spaces. Spaces used for indentation when the code style is configured to use only tabs. Spaces used for indentation and tabs used for alignment when the code style is configured to use smart tabs.", "markdown": "Reports the following problems:\n\n* Tabs used for indentation when the code style is configured to use only spaces.\n* Spaces used for indentation when the code style is configured to use only tabs.\n* Spaces used for indentation and tabs used for alignment when the code style is configured to use smart tabs." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ProblematicWhitespace", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "HtmlUnknownTarget", "shortDescription": { "text": "Unresolved file in a link" }, "fullDescription": { "text": "Reports an unresolved file in a link.", "markdown": "Reports an unresolved file in a link." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "HtmlUnknownTarget", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "LongLine", "shortDescription": { "text": "Line is longer than allowed by code style" }, "fullDescription": { "text": "Reports lines that are longer than the Hard wrap at parameter specified in Settings | Editor | Code Style | General.", "markdown": "Reports lines that are longer than the **Hard wrap at** parameter specified in [Settings \\| Editor \\| Code Style \\| General](settings://preferences.sourceCode?Hard%20wrap%20at)." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "LongLine", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlWrongRootElement", "shortDescription": { "text": "Wrong root element" }, "fullDescription": { "text": "Reports a root tag name different from the name specified in the '' tag.", "markdown": "Reports a root tag name different from the name specified in the `` tag." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "XmlWrongRootElement", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "HtmlUnknownAttribute", "shortDescription": { "text": "Unknown attribute" }, "fullDescription": { "text": "Reports an unknown HTML attribute. Suggests configuring attributes that should not be reported.", "markdown": "Reports an unknown HTML attribute. Suggests configuring attributes that should not be reported." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "HtmlUnknownAttribute", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpRedundantEscape", "shortDescription": { "text": "Redundant character escape" }, "fullDescription": { "text": "Reports redundant character escape sequences that can be replaced with unescaped characters preserving the meaning. Many escape sequences that are necessary outside of a character class are redundant inside square brackets '[]' of a character class. Although unescaped opening curly braces '{' outside of character classes are allowed in some dialects (JavaScript, Python, and so on), it can cause confusion and make the pattern less portable, because there are dialects that require escaping curly braces as characters. For this reason the inspection does not report escaped opening curly braces. Example: '\\-\\;[\\.]' After the quick-fix is applied: '-;[.]' The Ignore escaped closing brackets '}' and ']' option specifies whether to report '\\}' and '\\]' outside of a character class when they are allowed to be unescaped by the RegExp dialect. New in 2017.3", "markdown": "Reports redundant character escape sequences that can be replaced with unescaped characters preserving the meaning. Many escape sequences that are necessary outside of a character class are redundant inside square brackets `[]` of a character class.\n\n\nAlthough unescaped opening curly braces `{` outside of character classes are allowed in some dialects (JavaScript, Python, and so on),\nit can cause confusion and make the pattern less portable, because there are dialects that require escaping curly braces as characters.\nFor this reason the inspection does not report escaped opening curly braces.\n\n**Example:**\n\n\n \\-\\;[\\.]\n\nAfter the quick-fix is applied:\n\n\n -;[.]\n\n\nThe **Ignore escaped closing brackets '}' and '\\]'** option specifies whether to report `\\}` and `\\]` outside of a character class\nwhen they are allowed to be unescaped by the RegExp dialect.\n\nNew in 2017.3" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "RegExpRedundantEscape", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CustomRegExpInspection", "shortDescription": { "text": "Custom RegExp inspection" }, "fullDescription": { "text": "Custom Regex Inspection", "markdown": "Custom Regex Inspection" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "CustomRegExpInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "IncorrectFormatting", "shortDescription": { "text": "Incorrect formatting" }, "fullDescription": { "text": "Reports formatting issues that appear if your code doesn't follow your project's code style settings. This inspection is not compatible with languages that require third-party formatters for code formatting, for example, Go or C with CLangFormat enabled.", "markdown": "Reports formatting issues that appear if your code doesn't\nfollow your project's code style settings.\n\n\nThis inspection is not compatible with languages that require\nthird-party formatters for code formatting, for example, Go or\nC with CLangFormat enabled." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "IncorrectFormatting", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "HtmlExtraClosingTag", "shortDescription": { "text": "Redundant closing tag" }, "fullDescription": { "text": "Reports redundant closing tags on empty elements, for example, 'img' or 'br'. Example: '\n \n

\n \n ' After the quick-fix is applied: '\n \n
\n \n '", "markdown": "Reports redundant closing tags on empty elements, for example, `img` or `br`.\n\n**Example:**\n\n\n \n \n

\n \n \n\nAfter the quick-fix is applied:\n\n\n \n \n
\n \n \n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "HtmlExtraClosingTag", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpUnexpectedAnchor", "shortDescription": { "text": "Begin or end anchor in unexpected position" }, "fullDescription": { "text": "Reports '^' or '\\A' anchors not at the beginning of the pattern and '$', '\\Z' or '\\z' anchors not at the end of the pattern. In the wrong position these RegExp anchors prevent the pattern from matching anything. In case of the '^' and '$' anchors, most likely the literal character was meant and the escape forgotten. Example: '(Price $10)' New in 2018.1", "markdown": "Reports `^` or `\\A` anchors not at the beginning of the pattern and `$`, `\\Z` or `\\z` anchors not at the end of the pattern. In the wrong position these RegExp anchors prevent the pattern from matching anything. In case of the `^` and `$` anchors, most likely the literal character was meant and the escape forgotten.\n\n**Example:**\n\n\n (Price $10)\n\n\nNew in 2018.1" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpUnexpectedAnchor", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "SpellCheckingInspection", "shortDescription": { "text": "Typo" }, "fullDescription": { "text": "Reports typos and misspellings in your code, comments, and literals and fixes them with one click.", "markdown": "Reports typos and misspellings in your code, comments, and literals and fixes them with one click." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "SpellCheckingInspection", "ideaSeverity": "TYPO", "qodanaSeverity": "Low" } }, "relationships": [ { "target": { "id": "Proofreading", "index": 75, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CheckXmlFileWithXercesValidator", "shortDescription": { "text": "Failed external validation" }, "fullDescription": { "text": "Reports a discrepancy in an XML file with the specified DTD or schema detected by the Xerces validator.", "markdown": "Reports a discrepancy in an XML file with the specified DTD or schema detected by the Xerces validator." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "CheckXmlFileWithXercesValidator", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "HtmlUnknownTag", "shortDescription": { "text": "Unknown tag" }, "fullDescription": { "text": "Reports an unknown HTML tag. Suggests configuring tags that should not be reported.", "markdown": "Reports an unknown HTML tag. Suggests configuring tags that should not be reported." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "HtmlUnknownTag", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpEscapedMetaCharacter", "shortDescription": { "text": "Escaped meta character" }, "fullDescription": { "text": "Reports escaped meta characters. Some RegExp coding styles specify that meta characters should be placed inside a character class, to make the regular expression easier to understand. This inspection does not warn about the meta character '[', ']' and '^', because those would need additional escaping inside a character class. Example: '\\d+\\.\\d+' After the quick-fix is applied: '\\d+[.]\\d+' New in 2017.1", "markdown": "Reports escaped meta characters. Some RegExp coding styles specify that meta characters should be placed inside a character class, to make the regular expression easier to understand. This inspection does not warn about the meta character `[`, `]` and `^`, because those would need additional escaping inside a character class.\n\n**Example:**\n\n\n \\d+\\.\\d+\n\nAfter the quick-fix is applied:\n\n\n \\d+[.]\\d+\n\nNew in 2017.1" }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "RegExpEscapedMetaCharacter", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlHighlighting", "shortDescription": { "text": "XML highlighting" }, "fullDescription": { "text": "Reports XML validation problems in the results of a batch code inspection.", "markdown": "Reports XML validation problems in the results of a batch code inspection." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "XmlHighlighting", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlDuplicatedId", "shortDescription": { "text": "Duplicate 'id' attribute" }, "fullDescription": { "text": "Reports a duplicate 'id' attribute in XML.", "markdown": "Reports a duplicate `id` attribute in XML." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "XmlDuplicatedId", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpDuplicateCharacterInClass", "shortDescription": { "text": "Duplicate character in character class" }, "fullDescription": { "text": "Reports duplicate characters inside a RegExp character class. Duplicate characters are unnecessary and can be removed without changing the semantics of the regex. Example: '[aabc]' After the quick-fix is applied: '[abc]'", "markdown": "Reports duplicate characters inside a RegExp character class. Duplicate characters are unnecessary and can be removed without changing the semantics of the regex.\n\n**Example:**\n\n\n [aabc]\n\nAfter the quick-fix is applied:\n\n\n [abc]\n" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpDuplicateCharacterInClass", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlUnboundNsPrefix", "shortDescription": { "text": "Unbound namespace prefix" }, "fullDescription": { "text": "Reports an unbound namespace prefix in XML.", "markdown": "Reports an unbound namespace prefix in XML." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "XmlUnboundNsPrefix", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RequiredAttributes", "shortDescription": { "text": "Missing required attribute" }, "fullDescription": { "text": "Reports a missing mandatory attribute in an XML/HTML tag. Suggests configuring attributes that should not be reported.", "markdown": "Reports a missing mandatory attribute in an XML/HTML tag. Suggests configuring attributes that should not be reported." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "RequiredAttributes", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlUnusedNamespaceDeclaration", "shortDescription": { "text": "Unused schema declaration" }, "fullDescription": { "text": "Reports an unused namespace declaration or location hint in XML.", "markdown": "Reports an unused namespace declaration or location hint in XML." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "XmlUnusedNamespaceDeclaration", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpRedundantClassElement", "shortDescription": { "text": "Redundant '\\d', '[:digit:]', or '\\D' class elements" }, "fullDescription": { "text": "Reports redundant '\\d' or '[:digit:]' that are used in one class with '\\w' or '[:word:]' ('\\D' with '\\W') and can be removed. Example: '[\\w\\d]' After the quick-fix is applied: '[\\w]' New in 2022.2", "markdown": "Reports redundant `\\d` or `[:digit:]` that are used in one class with `\\w` or `[:word:]` (`\\D` with `\\W`) and can be removed.\n\n**Example:**\n\n\n [\\w\\d]\n\nAfter the quick-fix is applied:\n\n\n [\\w]\n\nNew in 2022.2" }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "RegExpRedundantClassElement", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpSimplifiable", "shortDescription": { "text": "Regular expression can be simplified" }, "fullDescription": { "text": "Reports regular expressions that can be simplified. Example: '[a] xx* [ah-hz]' After the quick-fix is applied: 'a x+ [ahz]' New in 2022.1", "markdown": "Reports regular expressions that can be simplified.\n\n**Example:**\n\n\n [a] xx* [ah-hz]\n\nAfter the quick-fix is applied:\n\n\n a x+ [ahz]\n\nNew in 2022.1" }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "RegExpSimplifiable", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpEmptyAlternationBranch", "shortDescription": { "text": "Empty branch in alternation" }, "fullDescription": { "text": "Reports empty branches in a RegExp alternation. An empty branch will only match the empty string, and in most cases that is not what is desired. This inspection will not report a single empty branch at the start or the end of an alternation. Example: '(alpha||bravo)' After the quick-fix is applied: '(alpha|bravo)' New in 2017.2", "markdown": "Reports empty branches in a RegExp alternation. An empty branch will only match the empty string, and in most cases that is not what is desired. This inspection will not report a single empty branch at the start or the end of an alternation.\n\n**Example:**\n\n\n (alpha||bravo)\n\nAfter the quick-fix is applied:\n\n\n (alpha|bravo)\n\nNew in 2017.2" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpEmptyAlternationBranch", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlPathReference", "shortDescription": { "text": "Unresolved file reference" }, "fullDescription": { "text": "Reports an unresolved file reference in XML.", "markdown": "Reports an unresolved file reference in XML." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "XmlPathReference", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpUnnecessaryNonCapturingGroup", "shortDescription": { "text": "Unnecessary non-capturing group" }, "fullDescription": { "text": "Reports unnecessary non-capturing groups, which have no influence on the match result. Example: 'Everybody be cool, (?:this) is a robbery!' After the quick-fix is applied: 'Everybody be cool, this is a robbery!' New in 2021.1", "markdown": "Reports unnecessary non-capturing groups, which have no influence on the match result.\n\n**Example:**\n\n\n Everybody be cool, (?:this) is a robbery!\n\nAfter the quick-fix is applied:\n\n\n Everybody be cool, this is a robbery!\n\nNew in 2021.1" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpUnnecessaryNonCapturingGroup", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TodoComment", "shortDescription": { "text": "TODO comment" }, "fullDescription": { "text": "Reports TODO comments in your code. You can configure the format for TODO comments in Settings | Editor | TODO. Enable the Only warn on TODO comments without any details option to only warn on empty TODO comments, that don't provide any description on the task that should be done. Disable to report all TODO comments.", "markdown": "Reports **TODO** comments in your code.\n\nYou can configure the format for **TODO** comments in [Settings \\| Editor \\| TODO](settings://preferences.toDoOptions).\n\nEnable the **Only warn on TODO comments without any details** option to only warn on empty TODO comments, that\ndon't provide any description on the task that should be done. Disable to report all TODO comments." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "TodoComment", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "Json5StandardCompliance", "shortDescription": { "text": "Compliance with JSON5 standard" }, "fullDescription": { "text": "Reports inconsistency with the language specification in a JSON5 file.", "markdown": "Reports inconsistency with [the language specification](http://json5.org) in a JSON5 file." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "Json5StandardCompliance", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JSON and JSON5", "index": 92, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "HtmlWrongAttributeValue", "shortDescription": { "text": "Wrong attribute value" }, "fullDescription": { "text": "Reports an incorrect HTML attribute value.", "markdown": "Reports an incorrect HTML attribute value." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "HtmlWrongAttributeValue", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlDefaultAttributeValue", "shortDescription": { "text": "Redundant attribute with default value" }, "fullDescription": { "text": "Reports a redundant assignment of the default value to an XML attribute.", "markdown": "Reports a redundant assignment of the default value to an XML attribute." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "XmlDefaultAttributeValue", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JsonSchemaCompliance", "shortDescription": { "text": "Compliance with JSON schema" }, "fullDescription": { "text": "Reports inconsistence between a JSON file and the JSON schema that is assigned to it.", "markdown": "Reports inconsistence between a JSON file and the [JSON schema](https://json-schema.org) that is assigned to it. " }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "JsonSchemaCompliance", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JSON and JSON5", "index": 92, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "EmptyDirectory", "shortDescription": { "text": "Empty directory" }, "fullDescription": { "text": "Reports empty directories. Available only from Code | Inspect Code or Code | Analyze Code | Run Inspection by Name and isn't reported in the editor. Use the Only report empty directories located under a source folder option to have only directories under source roots reported.", "markdown": "Reports empty directories.\n\nAvailable only from **Code \\| Inspect Code** or\n**Code \\| Analyze Code \\| Run Inspection by Name** and isn't reported in the editor.\n\nUse the **Only report empty directories located under a source folder** option to have only directories under source\nroots reported." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "EmptyDirectory", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CheckDtdRefs", "shortDescription": { "text": "Unresolved DTD reference" }, "fullDescription": { "text": "Reports inconsistency in a DTD-specific reference, for example, in a reference to an XML entity or to a DTD element declaration. Works in DTD an XML files.", "markdown": "Reports inconsistency in a DTD-specific reference, for example, in a reference to an XML entity or to a DTD element declaration. Works in DTD an XML files." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "CheckDtdRefs", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "NonAsciiCharacters", "shortDescription": { "text": "Non-ASCII characters" }, "fullDescription": { "text": "Reports code elements that use non-ASCII symbols in an unusual context. Example: Non-ASCII characters used in identifiers, strings, or comments. Identifiers written in different languages, such as 'myСollection' with the letter 'C' written in Cyrillic. Comments or strings containing Unicode symbols, such as long dashes and arrows.", "markdown": "Reports code elements that use non-ASCII symbols in an unusual context.\n\nExample:\n\n* Non-ASCII characters used in identifiers, strings, or comments.\n* Identifiers written in different languages, such as `my`**С**`ollection` with the letter **C** written in Cyrillic.\n* Comments or strings containing Unicode symbols, such as long dashes and arrows." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "NonAsciiCharacters", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Internationalization", "index": 100, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "LossyEncoding", "shortDescription": { "text": "Lossy encoding" }, "fullDescription": { "text": "Reports characters that cannot be displayed because of the current document encoding. Examples: If you type international characters in a document with the US-ASCII charset, some characters will be lost on save. If you load a UTF-8-encoded file using the ISO-8859-1 one-byte charset, some characters will be displayed incorrectly. You can fix this by changing the file encoding either by specifying the encoding directly in the file, e.g. by editing 'encoding=' attribute in the XML prolog of XML file, or by changing the corresponding options in Settings | Editor | File Encodings.", "markdown": "Reports characters that cannot be displayed because of the current document encoding.\n\nExamples:\n\n* If you type international characters in a document with the **US-ASCII** charset, some characters will be lost on save.\n* If you load a **UTF-8** -encoded file using the **ISO-8859-1** one-byte charset, some characters will be displayed incorrectly.\n\nYou can fix this by changing the file encoding\neither by specifying the encoding directly in the file, e.g. by editing `encoding=` attribute in the XML prolog of XML file,\nor by changing the corresponding options in **Settings \\| Editor \\| File Encodings**." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "LossyEncoding", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Internationalization", "index": 100, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "IgnoreFileDuplicateEntry", "shortDescription": { "text": "Ignore file duplicates" }, "fullDescription": { "text": "Reports duplicate entries (patterns) in the ignore file (e.g. .gitignore, .hgignore). Duplicate entries in these files are redundant and can be removed. Example: '# Output directories\n /out/\n /target/\n /out/'", "markdown": "Reports duplicate entries (patterns) in the ignore file (e.g. .gitignore, .hgignore). Duplicate entries in these files are redundant and can be removed.\n\nExample:\n\n\n # Output directories\n /out/\n /target/\n /out/\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "IgnoreFileDuplicateEntry", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Version control", "index": 103, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JsonStandardCompliance", "shortDescription": { "text": "Compliance with JSON standard" }, "fullDescription": { "text": "Reports the following discrepancies of a JSON file with the language specification: A line or block comment (configurable). Multiple top-level values (expect for JSON Lines files, configurable for others). A trailing comma in an object or array (configurable). A single quoted string. A property key is a not a double quoted strings. A NaN or Infinity/-Infinity numeric value as a floating point literal (configurable).", "markdown": "Reports the following discrepancies of a JSON file with [the language specification](https://tools.ietf.org/html/rfc7159):\n\n* A line or block comment (configurable).\n* Multiple top-level values (expect for JSON Lines files, configurable for others).\n* A trailing comma in an object or array (configurable).\n* A single quoted string.\n* A property key is a not a double quoted strings.\n* A NaN or Infinity/-Infinity numeric value as a floating point literal (configurable)." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "JsonStandardCompliance", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JSON and JSON5", "index": 92, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JsonSchemaDeprecation", "shortDescription": { "text": "Deprecated JSON property" }, "fullDescription": { "text": "Reports a deprecated property in a JSON file. Note that deprecation mechanism is not defined in the JSON Schema specification yet, and this inspection uses a non-standard extension 'deprecationMessage'.", "markdown": "Reports a deprecated property in a JSON file. \nNote that deprecation mechanism is not defined in the JSON Schema specification yet, and this inspection uses a non-standard extension 'deprecationMessage'." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JsonSchemaDeprecation", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JSON and JSON5", "index": 92, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JsonSchemaRefReference", "shortDescription": { "text": "Unresolved '$ref' and '$schema' references" }, "fullDescription": { "text": "Reports an unresolved '$ref' or '$schema' path in a JSON schema.", "markdown": "Reports an unresolved `$ref` or `$schema` path in a JSON schema. " }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "JsonSchemaRefReference", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JSON and JSON5", "index": 92, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "SSBasedInspection", "shortDescription": { "text": "Structural search inspection" }, "fullDescription": { "text": "Allows configuring Structural Search/Structural Replace templates that you can apply to the file you are editing. All matches will be highlighted and marked with the template name that you have configured. If you configure the Structural Replace pattern as well, the corresponding replace option will be available as a quick-fix.", "markdown": "Allows configuring **Structural Search/Structural Replace** templates that you can apply to the file you are editing.\n\nAll matches will be highlighted and marked with the template name that you have configured.\nIf you configure the **Structural Replace** pattern as well, the corresponding replace option will be available as a quick-fix." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "SSBasedInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Structural search", "index": 105, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CheckValidXmlInScriptTagBody", "shortDescription": { "text": "Malformed content of 'script' tag" }, "fullDescription": { "text": "Reports contents of 'script' tags that are invalid XML. Example: '' After the quick-fix is applied: ''", "markdown": "Reports contents of `script` tags that are invalid XML. \n\n**Example:**\n\n\n \n\nAfter the quick-fix is applied:\n\n\n \n" }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "CheckValidXmlInScriptTagBody", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpSuspiciousBackref", "shortDescription": { "text": "Suspicious back reference" }, "fullDescription": { "text": "Reports back references that will not be resolvable at runtime. This means that the back reference can never match anything. A back reference will not be resolvable when the group is defined after the back reference, or if the group is defined in a different branch of an alternation. Example of a group defined after its back reference: '\\1(abc)' Example of a group and a back reference in different branches: 'a(b)c|(xy)\\1z' New in 2022.1", "markdown": "Reports back references that will not be resolvable at runtime. This means that the back reference can never match anything. A back reference will not be resolvable when the group is defined after the back reference, or if the group is defined in a different branch of an alternation.\n\n**Example of a group defined after its back reference:**\n\n\n \\1(abc)\n\n**Example of a group and a back reference in different branches:**\n\n\n a(b)c|(xy)\\1z\n\nNew in 2022.1" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpSuspiciousBackref", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpSingleCharAlternation", "shortDescription": { "text": "Single character alternation" }, "fullDescription": { "text": "Reports single char alternation in a RegExp. It is simpler to use a character class instead. This may also provide better matching performance. Example: 'a|b|c|d' After the quick-fix is applied: '[abcd]' New in 2017.1", "markdown": "Reports single char alternation in a RegExp. It is simpler to use a character class instead. This may also provide better matching performance.\n\n**Example:**\n\n\n a|b|c|d\n\nAfter the quick-fix is applied:\n\n\n [abcd]\n\n\nNew in 2017.1" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpSingleCharAlternation", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CheckTagEmptyBody", "shortDescription": { "text": "Empty element content" }, "fullDescription": { "text": "Reports XML elements without contents. Example: '\n \n ' After the quick-fix is applied: '\n \n '", "markdown": "Reports XML elements without contents.\n\n**Example:**\n\n\n \n \n \n\nAfter the quick-fix is applied:\n\n\n \n \n \n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "CheckTagEmptyBody", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "UnresolvedReference", "shortDescription": { "text": "Unresolved reference" }, "fullDescription": { "text": "Reports an unresolved reference to a named pattern ('define') in RELAX-NG files that use XML syntax. Suggests creating the referenced 'define' element.", "markdown": "Reports an unresolved reference to a named pattern (`define`) in RELAX-NG files that use XML syntax. Suggests creating the referenced `define` element." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "UnresolvedReference", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "RELAX NG", "index": 108, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "HtmlMissingClosingTag", "shortDescription": { "text": "Missing closing tag" }, "fullDescription": { "text": "Reports an HTML element without a closing tag. Some coding styles require that HTML elements have closing tags even where this is optional. Example: '\n \n

Behold!\n \n ' After the quick-fix is applied: '\n \n

Behold!

\n \n '", "markdown": "Reports an HTML element without a closing tag. Some coding styles require that HTML elements have closing tags even where this is optional.\n\n**Example:**\n\n\n \n \n

Behold!\n \n \n\nAfter the quick-fix is applied:\n\n\n \n \n

Behold!

\n \n \n" }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "HtmlMissingClosingTag", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "HtmlUnknownAnchorTarget", "shortDescription": { "text": "Unresolved fragment in a link" }, "fullDescription": { "text": "Reports an unresolved last part of an URL after the '#' sign.", "markdown": "Reports an unresolved last part of an URL after the `#` sign." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "HtmlUnknownAnchorTarget", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlInvalidId", "shortDescription": { "text": "Unresolved 'id' reference" }, "fullDescription": { "text": "Reports an unresolved 'id' reference in XML.", "markdown": "Reports an unresolved `id` reference in XML." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "XmlInvalidId", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ReassignedToPlainText", "shortDescription": { "text": "Reassigned to plain text" }, "fullDescription": { "text": "Reports files that were explicitly re-assigned to Plain Text File Type. This association is unnecessary because the platform auto-detects text files by content automatically. You can dismiss this warning by removing the file type association in Settings | Editor | File Types | Text.", "markdown": "Reports files that were explicitly re-assigned to Plain Text File Type. This association is unnecessary because the platform auto-detects text files by content automatically.\n\nYou can dismiss this warning by removing the file type association\nin **Settings \\| Editor \\| File Types \\| Text**." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ReassignedToPlainText", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "Annotator", "shortDescription": { "text": "Annotator" }, "fullDescription": { "text": "Reports issues essential to this file (e.g., syntax errors) in the result of a batch code inspection run. These issues are usually always highlighted in the editor and can't be configured, unlike inspections. These options control the scope of checks performed by this inspection: Option \"Report syntax errors\": report parser-related issues. Option \"Report issues from language-specific annotators\": report issues found by annotators configured for the relevant language. See Custom Language Support: Annotators for details. Option \"Report other highlighting problems\": report issues specific to the language of the current file (e.g., type mismatches or unreported exceptions). See Custom Language Support: Highlighting for details.", "markdown": "Reports issues essential to this file (e.g., syntax errors) in the result of a batch code inspection run. These issues are usually always highlighted in the editor and can't be configured, unlike inspections. These options control the scope of checks performed by this inspection:\n\n* Option \"**Report syntax errors**\": report parser-related issues.\n* Option \"**Report issues from language-specific annotators** \": report issues found by annotators configured for the relevant language. See [Custom Language Support: Annotators](https://plugins.jetbrains.com/docs/intellij/annotator.html) for details.\n* Option \"**Report other highlighting problems** \": report issues specific to the language of the current file (e.g., type mismatches or unreported exceptions). See [Custom Language Support: Highlighting](https://plugins.jetbrains.com/docs/intellij/syntax-highlighting-and-error-highlighting.html#semantic-highlighting) for details." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "Annotator", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "General", "index": 34, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JsonDuplicatePropertyKeys", "shortDescription": { "text": "Duplicate keys in object literals" }, "fullDescription": { "text": "Reports a duplicate key in an object literal.", "markdown": "Reports a duplicate key in an object literal." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "JsonDuplicatePropertyKeys", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JSON and JSON5", "index": 92, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpRedundantNestedCharacterClass", "shortDescription": { "text": "Redundant nested character class" }, "fullDescription": { "text": "Reports unnecessary nested character classes. Example: '[a-c[x-z]]' After the quick-fix is applied: '[a-cx-z]' New in 2020.2", "markdown": "Reports unnecessary nested character classes.\n\n**Example:**\n\n\n [a-c[x-z]]\n\nAfter the quick-fix is applied:\n\n\n [a-cx-z]\n\nNew in 2020.2" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpRedundantNestedCharacterClass", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "XmlDeprecatedElement", "shortDescription": { "text": "Deprecated symbol" }, "fullDescription": { "text": "Reports a deprecated XML element or attribute. Symbols can be marked by XML comment or documentation tag with text 'deprecated'.", "markdown": "Reports a deprecated XML element or attribute.\n\nSymbols can be marked by XML comment or documentation tag with text 'deprecated'." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "XmlDeprecatedElement", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "XML", "index": 48, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpOctalEscape", "shortDescription": { "text": "Octal escape" }, "fullDescription": { "text": "Reports octal escapes, which are easily confused with back references. Use hexadecimal escapes to avoid confusion. Example: '\\07' After the quick-fix is applied: '\\x07' New in 2017.1", "markdown": "Reports octal escapes, which are easily confused with back references. Use hexadecimal escapes to avoid confusion.\n\n**Example:**\n\n\n \\07\n\nAfter the quick-fix is applied:\n\n\n \\x07\n\nNew in 2017.1" }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "RegExpOctalEscape", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "UnusedDefine", "shortDescription": { "text": "Unused define" }, "fullDescription": { "text": "Reports an unused named pattern ('define') in a RELAX-NG file (XML or Compact Syntax). 'define' elements that are used through an include in another file are ignored.", "markdown": "Reports an unused named pattern (`define`) in a RELAX-NG file (XML or Compact Syntax). `define` elements that are used through an include in another file are ignored." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "UnusedDefine", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RELAX NG", "index": 108, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpAnonymousGroup", "shortDescription": { "text": "Anonymous capturing group or numeric back reference" }, "fullDescription": { "text": "Reports anonymous capturing groups and numeric back references in a RegExp. These are only reported when the RegExp dialect supports named group and named group references. Named groups and named back references improve code readability and are recommended to use instead. When a capture is not needed, matching can be more performant and use less memory by using a non-capturing group, i.e. '(?:xxx)' instead of '(xxx)'. Example: '(\\d\\d\\d\\d)\\1' A better regex pattern could look like this: '(?\\d\\d\\d\\d)\\k' New in 2017.2", "markdown": "Reports anonymous capturing groups and numeric back references in a RegExp. These are only reported when the RegExp dialect supports named group and named group references. Named groups and named back references improve code readability and are recommended to use instead. When a capture is not needed, matching can be more performant and use less memory by using a non-capturing group, i.e. `(?:xxx)` instead of `(xxx)`.\n\n**Example:**\n\n\n (\\d\\d\\d\\d)\\1\n\nA better regex pattern could look like this:\n\n\n (?\\d\\d\\d\\d)\\k\n\nNew in 2017.2" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "RegExpAnonymousGroup", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpRepeatedSpace", "shortDescription": { "text": "Consecutive spaces" }, "fullDescription": { "text": "Reports multiple consecutive spaces in a RegExp. Because spaces are not visible by default, it can be hard to see how many spaces are required. The RegExp can be made more clear by replacing the consecutive spaces with a single space and a counted quantifier. Example: '( )' After the quick-fix is applied: '( {5})' New in 2017.1", "markdown": "Reports multiple consecutive spaces in a RegExp. Because spaces are not visible by default, it can be hard to see how many spaces are required. The RegExp can be made more clear by replacing the consecutive spaces with a single space and a counted quantifier.\n\n**Example:**\n\n\n ( )\n\nAfter the quick-fix is applied:\n\n\n ( {5})\n\n\nNew in 2017.1" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpRepeatedSpace", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "RegExpDuplicateAlternationBranch", "shortDescription": { "text": "Duplicate branch in alternation" }, "fullDescription": { "text": "Reports duplicate branches in a RegExp alternation. Duplicate branches slow down matching and obscure the intent of the expression. Example: '(alpha|bravo|charlie|alpha)' After the quick-fix is applied: '(alpha|bravo|charlie)' New in 2017.1", "markdown": "Reports duplicate branches in a RegExp alternation. Duplicate branches slow down matching and obscure the intent of the expression.\n\n**Example:**\n\n\n (alpha|bravo|charlie|alpha)\n\nAfter the quick-fix is applied:\n\n\n (alpha|bravo|charlie)\n\nNew in 2017.1" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "RegExpDuplicateAlternationBranch", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "RegExp", "index": 61, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CheckEmptyScriptTag", "shortDescription": { "text": "Empty tag" }, "fullDescription": { "text": "Reports empty tags that do not work in some browsers. Example: '\n \n '", "markdown": "Reports empty tags that do not work in some browsers.\n\n**Example:**\n\n\n \n \n \n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "CheckEmptyScriptTag", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "HTML", "index": 19, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] } ], "language": "en-US", "contents": [ "localizedData", "nonLocalizedData" ], "isComprehensive": false }, { "name": "gherkin", "version": "232.10072.32", "rules": [ { "id": "GherkinScenarioToScenarioOutline", "shortDescription": { "text": "Scenario with Examples section" }, "fullDescription": { "text": "Reports Gherkin scenarios that contain an 'Examples' section. Use the quick-fix to convert 'Scenario' to 'Scenario Outline'.", "markdown": "Reports Gherkin scenarios that contain an `Examples` section.\n\nUse the quick-fix to convert `Scenario` to `Scenario Outline`." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "GherkinScenarioToScenarioOutline", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "Cucumber", "index": 20, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CucumberTableInspection", "shortDescription": { "text": "Unused or missing columns in Cucumber tables" }, "fullDescription": { "text": "Reports tables in 'Examples' sections in Cucumber .feature files with unused or missing columns.", "markdown": "Reports tables in `Examples` sections in Cucumber .feature files with unused or missing columns." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "CucumberTableInspection", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Cucumber", "index": 20, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "GherkinBrokenTableInspection", "shortDescription": { "text": "Gherkin table is broken" }, "fullDescription": { "text": "Reports a table if there is at least one row with the number of cells different from the number of cells in the table header.", "markdown": "Reports a table if there is at least one row with the number of cells different from the number of cells in the table header." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "GherkinBrokenTableInspection", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "Cucumber", "index": 20, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "GherkinMisplacedBackground", "shortDescription": { "text": "Misplaced background section" }, "fullDescription": { "text": "Reports 'Background' sections that are located incorrectly. The 'Background' section must be located before the 'Scenario' section.", "markdown": "Reports `Background` sections that are located incorrectly. The `Background` section must be located before the `Scenario` section." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "GherkinMisplacedBackground", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "Cucumber", "index": 20, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CucumberMissedExamples", "shortDescription": { "text": "Missing examples section" }, "fullDescription": { "text": "Reports scenario outlines in Cucumber .feature files that do not have the 'Examples' section. Use the quick-fix to automatically create the 'Examples' section with a pre-filled table header.", "markdown": "Reports scenario outlines in Cucumber .feature files that do not have the `Examples` section.\n\nUse the quick-fix to automatically create the `Examples` section with a pre-filled table header." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "CucumberMissedExamples", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "Cucumber", "index": 20, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CucumberUndefinedStep", "shortDescription": { "text": "Undefined step" }, "fullDescription": { "text": "Reports steps in Cucumber (or some other Gherkin) .feature files that do not have matching step definitions. Use the quick-fix to automatically create a new step definition.", "markdown": "Reports steps in Cucumber (or some other Gherkin) .feature files that do not have matching step definitions.\n\nUse the quick-fix to automatically create a new step definition." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "CucumberUndefinedStep", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "Cucumber", "index": 20, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "CucumberExamplesColon", "shortDescription": { "text": "Missing ':' after examples keyword" }, "fullDescription": { "text": "Reports 'Examples' sections in Cucumber .feature files if they do not have ':' after the 'Examples' keyword.", "markdown": "Reports `Examples` sections in Cucumber .feature files if they do not have ':' after the `Examples` keyword." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "CucumberExamplesColon", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "Cucumber", "index": 20, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] } ], "language": "en-US", "contents": [ "localizedData", "nonLocalizedData" ], "isComprehensive": false }, { "name": "JavaScript", "version": "232.10072.32", "rules": [ { "id": "JSUnusedAssignment", "shortDescription": { "text": "Unused assignment" }, "fullDescription": { "text": "Reports a variable whose value is never used after assignment. Suggests removing the unused variable to shorten the code and to avoid redundant allocations. The following cases are reported: A variable is never read after assignment. The value of a variable is always overwritten with another assignment before the variable is read next time. The initializer of a variable is redundant (for one of the above-mentioned reasons).", "markdown": "Reports a variable whose value is never used after assignment. \nSuggests removing the unused variable to shorten the code and to avoid redundant allocations.\n\nThe following cases are reported:\n\n* A variable is never read after assignment.\n* The value of a variable is always overwritten with another assignment before the variable is read next time.\n* The initializer of a variable is redundant (for one of the above-mentioned reasons)." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSUnusedAssignment", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Unused symbols", "index": 21, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "FlowJSError", "shortDescription": { "text": "Flow type checker" }, "fullDescription": { "text": "Reports errors from Flow.", "markdown": "Reports errors from [Flow](https://flowtype.org/)." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "FlowJSError", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Flow type checker", "index": 22, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ReuseOfLocalVariableJS", "shortDescription": { "text": "Reuse of local variable" }, "fullDescription": { "text": "Reports reusing a local variable and overwriting its value with a new value that is not related to the original variable usage. Reusing a local variable in this way may be confusing because the intended semantics of the local variable may vary with each usage. It may also cause bugs, if code changes result in values that were expected to be overwritten while they are actually live. It is good practices to keep variable lifetimes as short as possible, and not reuse local variables for the sake of brevity.", "markdown": "Reports reusing a local variable and overwriting its value with a new value that is not related to the original variable usage. Reusing a local variable in this way may be confusing because the intended semantics of the local variable may vary with each usage. It may also cause bugs, if code changes result in values that were expected to be overwritten while they are actually live. It is good practices to keep variable lifetimes as short as possible, and not reuse local variables for the sake of brevity." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ReuseOfLocalVariableJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Data flow", "index": 23, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ShiftOutOfRangeJS", "shortDescription": { "text": "Shift operation by possibly wrong constant" }, "fullDescription": { "text": "Reports a shift operation where the second operand is a constant outside the reasonable range, for example, an integer shift operation outside the range '0..31', shifting by negative or overly large values.", "markdown": "Reports a shift operation where the second operand is a constant outside the reasonable range, for example, an integer shift operation outside the range `0..31`, shifting by negative or overly large values." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ShiftOutOfRangeJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Bitwise operation issues", "index": 28, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSClosureCompilerSyntax", "shortDescription": { "text": "Incorrect usage of JSDoc tags" }, "fullDescription": { "text": "Reports warnings implied by Google Closure Compiler annotations including correct use of '@abstract', '@interface', and '@implements' tags.", "markdown": "Reports warnings implied by *Google Closure Compiler* annotations including correct use of `@abstract`, `@interface`, and `@implements` tags." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSClosureCompilerSyntax", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6ConvertLetToConst", "shortDescription": { "text": "'let' is used instead of 'const'" }, "fullDescription": { "text": "Reports a 'let' declaration that can be made 'const'.", "markdown": "Reports a `let` declaration that can be made `const`. " }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "ES6ConvertLetToConst", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/ES2015 migration aids", "index": 32, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSXDomNesting", "shortDescription": { "text": "Invalid DOM element nesting" }, "fullDescription": { "text": "Detects HTML elements in JSX files which are not nested properly according to the DOM specification. React reports runtime warnings on incorrectly nested elements.", "markdown": "Detects HTML elements in JSX files which are not nested properly according to the DOM specification. React reports runtime warnings on incorrectly nested elements." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSXDomNesting", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/React", "index": 36, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "BadExpressionStatementJS", "shortDescription": { "text": "Expression statement which is not assignment or call" }, "fullDescription": { "text": "Reports an expression statement that is neither an assignment nor a call. Such statements usually indicate an error.", "markdown": "Reports an expression statement that is neither an assignment nor a call. Such statements usually indicate an error." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "BadExpressionStatementJS", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Validity issues", "index": 37, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ConfusingFloatingPointLiteralJS", "shortDescription": { "text": "Confusing floating point literal" }, "fullDescription": { "text": "Reports any floating point number that does not have a decimal point, or any numbers before the decimal point, or and numbers after the decimal point. Such literals may be confusing, and violate several coding standards.", "markdown": "Reports any floating point number that does not have a decimal point, or any numbers before the decimal point, or and numbers after the decimal point. Such literals may be confusing, and violate several coding standards." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ConfusingFloatingPointLiteralJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ContinueOrBreakFromFinallyBlockJS", "shortDescription": { "text": "'continue' or 'break' inside 'finally' block" }, "fullDescription": { "text": "Reports a 'break' or 'continue' statement inside a 'finally' block. Such statements are very confusing, may hide exceptions, and complicate debugging.", "markdown": "Reports a `break` or `continue` statement inside a `finally` block. Such statements are very confusing, may hide exceptions, and complicate debugging." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ContinueOrBreakFromFinallyBlockJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Try statement issues", "index": 42, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "UnnecessaryLocalVariableJS", "shortDescription": { "text": "Redundant local variable" }, "fullDescription": { "text": "Reports an unnecessary local variable that does not make a function more comprehensible: a local variable that is immediately returned a local variable that is immediately assigned to another variable and is not used anymore a local variable that always has the same value as another local variable or parameter. Use the checkbox below to have this inspection ignore variables that are immediately returned or thrown. Some coding styles suggest using such variables for clarity and ease of debugging.", "markdown": "Reports an unnecessary local variable that does not make a function more comprehensible:\n\n* a local variable that is immediately returned\n* a local variable that is immediately assigned to another variable and is not used anymore\n* a local variable that always has the same value as another local variable or parameter.\n\n\nUse the checkbox below to have this inspection ignore variables that are immediately\nreturned or thrown. Some coding styles suggest using such variables for clarity and\nease of debugging." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "UnnecessaryLocalVariableJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Data flow", "index": 23, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSMethodCanBeStatic", "shortDescription": { "text": "Method can be made 'static'" }, "fullDescription": { "text": "Reports a class method that can be safely made 'static'. A method can be 'static' if it does not reference any of its class' non-static methods and non-static fields and is not overridden in a subclass. Use the first checkbox below to inspect only 'private' methods.", "markdown": "Reports a class method that can be safely made `static`. A method can be `static` if it does not reference any of its class' non-static methods and non-static fields and is not overridden in a subclass.\n\n\nUse the first checkbox below to inspect only `private` methods." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JSMethodCanBeStatic", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSXUnresolvedComponent", "shortDescription": { "text": "Unresolved JSX component" }, "fullDescription": { "text": "Reports an unresolved reference to a JSX component. Suggests adding a missing import statement if the referenced component is defined in the project or its dependencies or creating a new component with this name. The template for a new component can be modified in Editor | File and Code Templates.", "markdown": "Reports an unresolved reference to a JSX component. Suggests adding a missing import statement if the referenced component is defined in the project or its dependencies or creating a new component with this name.\n\nThe template for a new component can be modified in Editor \\| File and Code Templates." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "JSXUnresolvedComponent", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "UnnecessaryLabelOnBreakStatementJS", "shortDescription": { "text": "Unnecessary label on 'break' statement" }, "fullDescription": { "text": "Reports a labeled 'break' statement whose labels may be removed without changing the flow of control.", "markdown": "Reports a labeled `break` statement whose labels may be removed without changing the flow of control." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "UnnecessaryLabelOnBreakStatementJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Control flow issues", "index": 49, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ContinueStatementJS", "shortDescription": { "text": "'continue' statement" }, "fullDescription": { "text": "Reports a 'continue' statement.", "markdown": "Reports a `continue` statement." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ContinueStatementJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially undesirable code constructs", "index": 50, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSUndeclaredVariable", "shortDescription": { "text": "Implicitly declared global JavaScript variable" }, "fullDescription": { "text": "Reports an implicit declaration of a global variable. Example: 'var aaa = 1; // good\n bbb = 2; // bad, if bbb is not declared with 'var' somewhere'", "markdown": "Reports an implicit declaration of a global variable.\n\nExample:\n\n\n var aaa = 1; // good\n bbb = 2; // bad, if bbb is not declared with 'var' somewhere\n" }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "JSUndeclaredVariable", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "DivideByZeroJS", "shortDescription": { "text": "Division by zero" }, "fullDescription": { "text": "Reports division by zero or a remainder by zero.", "markdown": "Reports division by zero or a remainder by zero." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "DivideByZeroJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Probable bugs", "index": 55, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSReferencingMutableVariableFromClosure", "shortDescription": { "text": "Referencing mutable variable from closure" }, "fullDescription": { "text": "Reports access to outer mutable variables from functions. Example: 'for (var i = 1; i <= 3; i++) {\n setTimeout(function() {\n console.log(i); // bad\n }, 0);\n }'", "markdown": "Reports access to outer mutable variables from functions.\n\nExample:\n\n\n for (var i = 1; i <= 3; i++) {\n setTimeout(function() {\n console.log(i); // bad\n }, 0);\n }\n" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSReferencingMutableVariableFromClosure", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ChainedEqualityJS", "shortDescription": { "text": "Chained equality" }, "fullDescription": { "text": "Reports a chained equality comparison (i.e. 'a==b==c'). Such comparisons are confusing.", "markdown": "Reports a chained equality comparison (i.e. `a==b==c`). Such comparisons are confusing." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ChainedEqualityComparisonsJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Code style issues", "index": 63, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "SillyAssignmentJS", "shortDescription": { "text": "Variable is assigned to itself" }, "fullDescription": { "text": "Reports an assignment in the form 'x = x'.", "markdown": "Reports an assignment in the form `x = x`." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "SillyAssignmentJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Assignment issues", "index": 64, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6ConvertRequireIntoImport", "shortDescription": { "text": "'require()' is used instead of 'import'" }, "fullDescription": { "text": "Reports a 'require()' statement. Suggests converting it to a 'require()' call with an 'import' statement. Enable 'Convert require() inside inner scopes with Fix all action' to convert all 'require()' calls inside the nested functions and statements when using the 'Fix all' action. Please note that converting 'require()' statements inside inner scopes to 'import' statements may cause changes in the semantics of the code. Import statements are static module dependencies and are hoisted, which means that they are moved to the top of the current module. 'require()' calls load modules dynamically. They can be executed conditionally, and their scope is defined by the expression in which they are used. Clear the 'Convert require() inside inner scopes with Fix all action' checkbox to prevent any changes in these complex cases when using the 'Fix all' action.", "markdown": "Reports a `require()` statement. Suggests converting it to a `require()` call with an `import` statement. \n\nEnable 'Convert require() inside inner scopes with Fix all action' to convert all `require()` calls inside the nested functions and statements when using the 'Fix all' action. \n\nPlease note that converting `require()` statements inside inner scopes to `import` statements may cause changes in the semantics of the code. Import statements are static module dependencies and are hoisted, which means that they are moved to the top of the current module. `require()` calls load modules dynamically. They can be executed conditionally, and their scope is defined by the expression in which they are used. \nClear the 'Convert require() inside inner scopes with Fix all action' checkbox to prevent any changes in these complex cases when using the 'Fix all' action." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "ES6ConvertRequireIntoImport", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/ES2015 migration aids", "index": 32, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TypeScriptCheckImport", "shortDescription": { "text": "Unresolved imported name" }, "fullDescription": { "text": "Reports an unresolved name or binding in an 'import' declaration in TypeScript code.", "markdown": "Reports an unresolved name or binding in an `import` declaration in TypeScript code." }, "defaultConfiguration": { "enabled": true, "level": "error", "parameters": { "suppressToolId": "TypeScriptCheckImport", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/TypeScript", "index": 69, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSXSyntaxUsed", "shortDescription": { "text": "JSX syntax used" }, "fullDescription": { "text": "Reports a usage of a JSX tag in JavaScript code.", "markdown": "Reports a usage of a JSX tag in JavaScript code." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "JSXSyntaxUsed", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSJoinVariableDeclarationAndAssignment", "shortDescription": { "text": "Variable declaration can be merged with the first assignment to the variable" }, "fullDescription": { "text": "Reports a variable that is declared without an initializer and is used much further in the code or in a single nested scope. Suggests moving the variable closer to its usages and joining it with the initializer expression.", "markdown": "Reports a variable that is declared without an initializer and is used much further in the code or in a single nested scope. Suggests moving the variable closer to its usages and joining it with the initializer expression." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JSJoinVariableDeclarationAndAssignment", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSRedundantSwitchStatement", "shortDescription": { "text": "'switch' statement is redundant and can be replaced" }, "fullDescription": { "text": "Reports a 'switch' statement with an empty body, or with only one 'case' branch, or with a 'default' branch only.", "markdown": "Reports a `switch` statement with an empty body, or with only one `case` branch, or with a `default` branch only." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JSRedundantSwitchStatement", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Switch statement issues", "index": 71, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSUnusedGlobalSymbols", "shortDescription": { "text": "Unused global symbol" }, "fullDescription": { "text": "Reports an unused globally accessible public function, variable, class, or property.", "markdown": "Reports an unused globally accessible public function, variable, class, or property." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "JSUnusedGlobalSymbols", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Unused symbols", "index": 21, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6ConvertModuleExportToExport", "shortDescription": { "text": "'module.exports' is used instead of 'export'" }, "fullDescription": { "text": "Reports a 'module.export' statement. Suggests replacing it with an 'export' or 'export default' statement. Please note that the quick-fix for converting 'module.export' into 'export' is not available for 'module.export' inside functions or statements because 'export' statements can only be at the top level of a module.", "markdown": "Reports a `module.export` statement. Suggests replacing it with an `export` or `export default` statement. \n\nPlease note that the quick-fix for converting `module.export` into `export` is not available for `module.export` inside functions or statements because `export` statements can only be at the top level of a module." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "ES6ConvertModuleExportToExport", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/ES2015 migration aids", "index": 32, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "DocumentWriteJS", "shortDescription": { "text": "Call to 'document.write()'" }, "fullDescription": { "text": "Reports a method call to 'document.write()' or 'document.writeln()'. Most usages of such calls are performed better with explicit DOM calls, such as 'getElementByID()' and 'createElement()'. Additionally, the 'write()' and 'writeln()' calls will not work with XML DOMs, including DOMs for XHTML if viewed as XML. This can result in difficulty to point out bugs.", "markdown": "Reports a method call to `document.write()` or `document.writeln()`. Most usages of such calls are performed better with explicit DOM calls, such as `getElementByID()` and `createElement()`. Additionally, the `write()` and `writeln()` calls will not work with XML DOMs, including DOMs for XHTML if viewed as XML. This can result in difficulty to point out bugs." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "DocumentWriteJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/DOM issues", "index": 72, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "BlockStatementJS", "shortDescription": { "text": "Unnecessary block statement" }, "fullDescription": { "text": "Reports a block statement that is not used as the body of 'if', 'for', 'while', 'do', 'with', or 'try' statements, or as the body of a function declaration. Starting from ECMAScript 6, JavaScript blocks introduce new scopes for 'let' and 'const' variables, but still free-standing block statements may be confusing and result in subtle bugs when used with 'var' variables.", "markdown": "Reports a block statement that is not used as the body of `if`, `for`, `while`, `do`, `with`, or `try` statements, or as the body of a function declaration. Starting from ECMAScript 6, JavaScript blocks introduce new scopes for `let` and `const` variables, but still free-standing block statements may be confusing and result in subtle bugs when used with `var` variables." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "BlockStatementJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "InfiniteRecursionJS", "shortDescription": { "text": "Infinite recursion" }, "fullDescription": { "text": "Reports a function which must either recurse infinitely or throw an exception. Such functions may not return normally.", "markdown": "Reports a function which must either recurse infinitely or throw an exception. Such functions may not return normally." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "InfiniteRecursionJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Probable bugs", "index": 55, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "NestedConditionalExpressionJS", "shortDescription": { "text": "Nested conditional expression" }, "fullDescription": { "text": "Reports a ternary conditional expression within another ternary condition. Such nested conditionals may be extremely confusing, and best replaced by more explicit conditional logic.", "markdown": "Reports a ternary conditional expression within another ternary condition. Such nested conditionals may be extremely confusing, and best replaced by more explicit conditional logic." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "NestedConditionalExpressionJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "IncompatibleMaskJS", "shortDescription": { "text": "Incompatible bitwise mask operation" }, "fullDescription": { "text": "Reports a bitwise mask expression which for sure evaluates to 'true' or 'false'. Expressions are of the form '(var & constant1) == constant2' or '(var | constant1) == constant2', where 'constant1' and 'constant2' are incompatible bitmask constants. Example: '// Incompatible mask: as the last byte in mask is zero,\n// something like 0x1200 would be possible, but not 0x1234\nif ((mask & 0xFF00) == 0x1234) {...}'", "markdown": "Reports a bitwise mask expression which for sure evaluates to `true` or `false`. Expressions are of the form `(var & constant1) == constant2` or `(var | constant1) == constant2`, where `constant1` and `constant2` are incompatible bitmask constants.\n\nExample:\n\n\n // Incompatible mask: as the last byte in mask is zero,\n // something like 0x1200 would be possible, but not 0x1234\n if ((mask & 0xFF00) == 0x1234) {...}\n" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "IncompatibleBitwiseMaskOperation", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Bitwise operation issues", "index": 28, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TextLabelInSwitchStatementJS", "shortDescription": { "text": "Text label in 'switch' statement" }, "fullDescription": { "text": "Reports a labeled statement inside a 'switch' statement, which often results from a typo. Example: 'switch(x)\n {\n case 1:\n case2: //typo!\n case 3:\n break;\n }'", "markdown": "Reports a labeled statement inside a `switch` statement, which often results from a typo.\n\nExample:\n\n\n switch(x)\n {\n case 1:\n case2: //typo!\n case 3:\n break;\n }\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "TextLabelInSwitchStatementJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Switch statement issues", "index": 71, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6PossiblyAsyncFunction", "shortDescription": { "text": "'await' in non-async function" }, "fullDescription": { "text": "Reports a usage of 'await' in a function that was possibly intended to be async but is actually missing the 'async' modifier. Although 'await' can be used as an identifier, it is likely that it was intended to be used as an operator, so the containing function should be made 'async'.", "markdown": "Reports a usage of `await` in a function that was possibly intended to be async but is actually missing the `async` modifier. Although `await` can be used as an identifier, it is likely that it was intended to be used as an operator, so the containing function should be made `async`." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "ES6PossiblyAsyncFunction", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Async code and promises", "index": 73, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "FlowJSFlagCommentPlacement", "shortDescription": { "text": "Misplaced @flow flag" }, "fullDescription": { "text": "Reports a '@flow' flag comment that is not located at the top of a file.", "markdown": "Reports a `@flow` flag comment that is not located at the top of a file." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "FlowJSFlagCommentPlacement", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Flow type checker", "index": 22, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSDuplicatedDeclaration", "shortDescription": { "text": "Duplicate declaration" }, "fullDescription": { "text": "Reports multiple declarations in a scope.", "markdown": "Reports multiple declarations in a scope." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSDuplicatedDeclaration", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSOctalInteger", "shortDescription": { "text": "Octal integer" }, "fullDescription": { "text": "Reports a deprecated octal integer literal prefixed with '0' instead of '0o'. Such literals are not allowed in modern ECMAScript code, and using them in the strict mode is an error. To force this inspection for ES5 and ES3 language levels, select the 'Warn about obsolete octal literals in ES5- code' checkbox below.", "markdown": "Reports a deprecated octal integer literal prefixed with `0` instead of `0o`. \nSuch literals are not allowed in modern ECMAScript code, and using them in the strict mode is an error. \nTo force this inspection for ES5 and ES3 language levels, select the 'Warn about obsolete octal literals in ES5- code' checkbox below." }, "defaultConfiguration": { "enabled": true, "level": "error", "parameters": { "suppressToolId": "JSOctalInteger", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Validity issues", "index": 37, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TypeScriptValidateGenericTypes", "shortDescription": { "text": "Incorrect generic type argument" }, "fullDescription": { "text": "Reports an invalid type argument in a function, interface, or class declaration.", "markdown": "Reports an invalid type argument in a function, interface, or class declaration." }, "defaultConfiguration": { "enabled": true, "level": "error", "parameters": { "suppressToolId": "TypeScriptValidateGenericTypes", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/TypeScript", "index": 69, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSMismatchedCollectionQueryUpdate", "shortDescription": { "text": "Mismatched query and update of collection" }, "fullDescription": { "text": "Reports a collection of fields or variables whose contents are either queried and not updated or updated and not queried. Such mismatched queries and updates are pointless and may indicate either dead code or a typographical error. Query methods are automatically detected, based on whether they return something, or a callback is passed to them. Use the table below to specify which methods are update methods.", "markdown": "Reports a collection of fields or variables whose contents are either queried and not updated or updated and not queried. Such mismatched queries and updates are pointless and may indicate either dead code or a typographical error.\n\n\nQuery methods are automatically detected, based on whether they return something, or a callback is passed to them.\nUse the table below to specify which methods are update methods." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSMismatchedCollectionQueryUpdate", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSMissingSwitchDefault", "shortDescription": { "text": "'switch' statement has no 'default' branch" }, "fullDescription": { "text": "Reports a 'switch' statement without a 'default' clause when some possible values are not enumerated.", "markdown": "Reports a `switch` statement without a `default` clause when some possible values are not enumerated." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JSMissingSwitchDefault", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Switch statement issues", "index": 71, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSXNamespaceValidation", "shortDescription": { "text": "Missing JSX namespace" }, "fullDescription": { "text": "Reports a usage of a JSX construction without importing namespace. Having the namespace in the file scope ensures proper code compilation.", "markdown": "Reports a usage of a JSX construction without importing namespace. Having the namespace in the file scope ensures proper code compilation." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JSXNamespaceValidation", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Imports and dependencies", "index": 77, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6PreferShortImport", "shortDescription": { "text": "Import can be shortened" }, "fullDescription": { "text": "Reports an ES6 import whose 'from' part can be shortened. Suggests importing the parent directory.", "markdown": "Reports an ES6 import whose `from` part can be shortened. Suggests importing the parent directory." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ES6PreferShortImport", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "PointlessBitwiseExpressionJS", "shortDescription": { "text": "Bitwise expression can be simplified" }, "fullDescription": { "text": "Reports an expression that includes 'and' with zero, 'or' by zero, or shifting by zero. Such expressions may result from not fully completed automated refactorings.", "markdown": "Reports an expression that includes `and` with zero, `or` by zero, or shifting by zero. Such expressions may result from not fully completed automated refactorings." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "PointlessBitwiseExpressionJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Bitwise operation issues", "index": 28, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSStringConcatenationToES6Template", "shortDescription": { "text": "String concatenation is used instead of template literal" }, "fullDescription": { "text": "Reports a string concatenation. Suggests replacing it with a template literal Example '\"result: \" + a + \".\"' After applying the quick-fix the code looks as follows: '`result: ${a}.`'", "markdown": "Reports a string concatenation. Suggests replacing it with a [template literal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)\n\nExample\n\n \"result: \" + a + \".\" \n\nAfter applying the quick-fix the code looks as follows:\n\n `result: ${a}.` \n" }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JSStringConcatenationToES6Template", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/ES2015 migration aids", "index": 32, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ReplaceAssignmentWithOperatorAssignmentJS", "shortDescription": { "text": "Assignment could be replaced with operator assignment" }, "fullDescription": { "text": "Reports an assignment operation that can be replaced by an operator assignment to make your code shorter and probably clearer. Example: 'x = x + 3;'\n 'x = x / 3;'\n After the quick fix is applied the result looks like: 'x += 3;'\n 'x /= 3;'", "markdown": "Reports an assignment operation that can be replaced by an operator assignment to make your code shorter and probably clearer.\n\n\nExample:\n\n x = x + 3;\n x = x / 3;\n\nAfter the quick fix is applied the result looks like:\n\n x += 3;\n x /= 3;\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "AssignmentReplaceableWithOperatorAssignmentJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Assignment issues", "index": 64, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSFileReferences", "shortDescription": { "text": "Unresolved file reference" }, "fullDescription": { "text": "Reports an unresolved file reference in a JavaScript file, including CommonJS and AMD modules references.", "markdown": "Reports an unresolved file reference in a JavaScript file, including CommonJS and AMD modules references." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSFileReferences", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "FunctionWithInconsistentReturnsJS", "shortDescription": { "text": "Function with inconsistent returns" }, "fullDescription": { "text": "Reports a function that returns a value in some cases while in other cases no value is returned. This usually indicates an error. Example: 'function foo() {\n if (true)\n return 3;\n return;\n}'", "markdown": "Reports a function that returns a value in some cases while in other cases no value is returned. This usually indicates an error.\n\nExample:\n\n\n function foo() {\n if (true)\n return 3;\n return;\n }\n\n" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "FunctionWithInconsistentReturnsJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Validity issues", "index": 37, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "EmptyTryBlockJS", "shortDescription": { "text": "Empty 'try' block" }, "fullDescription": { "text": "Reports an empty 'try' block, which usually indicates an error.", "markdown": "Reports an empty `try` block, which usually indicates an error." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "EmptyTryBlockJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Try statement issues", "index": 42, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6ClassMemberInitializationOrder", "shortDescription": { "text": "Use of possibly unassigned property in a static initializer" }, "fullDescription": { "text": "Reports a class member initializer which references another non-hoisted class member while the latter may be not initialized yet. Initialization of class members happens consequently for fields, so a field cannot reference another field that is declared later.", "markdown": "Reports a class member initializer which references another non-hoisted class member while the latter may be not initialized yet. \n\nInitialization of class members happens consequently for fields, so a field cannot reference another field that is declared later." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ES6ClassMemberInitializationOrder", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ReservedWordUsedAsNameJS", "shortDescription": { "text": "Reserved word used as name" }, "fullDescription": { "text": "Reports a JavaScript reserved word used as a name. The JavaScript specification reserves a number of words which are currently not used as keywords. Using those words as identifiers may result in broken code if later versions of JavaScript start using them as keywords.", "markdown": "Reports a JavaScript reserved word used as a name. The JavaScript specification reserves a number of words which are currently not used as keywords. Using those words as identifiers may result in broken code if later versions of JavaScript start using them as keywords." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "ReservedWordAsName", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Validity issues", "index": 37, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "NestedFunctionJS", "shortDescription": { "text": "Nested function" }, "fullDescription": { "text": "Reports a function nested inside another function. Although JavaScript allows functions to be nested, such constructs may be confusing. Use the checkbox below to ignore anonymous nested functions.", "markdown": "Reports a function nested inside another function. Although JavaScript allows functions to be nested, such constructs may be confusing.\n\n\nUse the checkbox below to ignore anonymous nested functions." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "NestedFunctionJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "IncrementDecrementResultUsedJS", "shortDescription": { "text": "Result of increment or decrement used" }, "fullDescription": { "text": "Reports an increment ('++') or decrement ('--') expression where the result of the assignment is used in a containing expression. Such assignments can result in confusion due to the order of operations, as evaluation of the assignment may affect the outer expression in unexpected ways. Example: 'var a = b++'", "markdown": "Reports an increment (`++`) or decrement (`--`) expression where the result of the assignment is used in a containing expression. Such assignments can result in confusion due to the order of operations, as evaluation of the assignment may affect the outer expression in unexpected ways. Example: `var a = b++`" }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "IncrementDecrementResultUsedJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "SuspiciousTypeOfGuard", "shortDescription": { "text": "Unsound type guard check" }, "fullDescription": { "text": "Reports a 'typeof' or 'instanceof' unsound type guard check. The 'typeof x' type guard can be unsound in one of the following two cases: 'typeof x' never corresponds to the specified value (for example, 'typeof x === 'number'' when 'x' is of the type 'string | boolean') 'typeof x' always corresponds to the specified value (for example, 'typeof x === 'string'' when 'x' is of the type 'string') The 'x instanceof A' type guard can be unsound in one of the following two cases: The type of 'x' is not related to 'A' The type of 'x' is 'A' or a subtype of 'A'", "markdown": "Reports a `typeof` or `instanceof` unsound type guard check. The `typeof x` type guard can be unsound in one of the following two cases:\n\n* `typeof x` never corresponds to the specified value (for example, `typeof x === 'number'` when `x` is of the type 'string \\| boolean')\n* `typeof x` always corresponds to the specified value (for example, `typeof x === 'string'` when `x` is of the type 'string')\n\n
\n\nThe `x instanceof A` type guard can be unsound in one of the following two cases:\n\n* The type of `x` is not related to `A`\n* The type of `x` is `A` or a subtype of `A`" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "SuspiciousTypeOfGuard", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Control flow issues", "index": 49, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6DestructuringVariablesMerge", "shortDescription": { "text": "Destructuring properties with the same key" }, "fullDescription": { "text": "Reports multiple destructuring properties with identical keys. Suggests merging the properties.", "markdown": "Reports multiple destructuring properties with identical keys. Suggests merging the properties." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "ES6DestructuringVariablesMerge", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "LoopStatementThatDoesntLoopJS", "shortDescription": { "text": "Loop statement that doesn't loop" }, "fullDescription": { "text": "Reports a 'for', 'while', or 'do' statement whose bodies are guaranteed to execute at most once. Normally, this indicates an error.", "markdown": "Reports a `for`, `while`, or `do` statement whose bodies are guaranteed to execute at most once. Normally, this indicates an error." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "LoopStatementThatDoesntLoopJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Control flow issues", "index": 49, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSNonASCIINames", "shortDescription": { "text": "Identifiers with non-ASCII symbols" }, "fullDescription": { "text": "Reports a non-ASCII symbol in a name. If the 'Allow only ASCII names' option is selected, reports all names that contain non-ASCII symbols. Otherwise reports all names that contain both ASCII and non-ASCII symbols.", "markdown": "Reports a non-ASCII symbol in a name. \n\nIf the 'Allow only ASCII names' option is selected, reports all names that contain non-ASCII symbols. \nOtherwise reports all names that contain both ASCII and non-ASCII symbols." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSNonASCIINames", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Naming conventions", "index": 83, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TypeScriptRedundantGenericType", "shortDescription": { "text": "Redundant type arguments" }, "fullDescription": { "text": "Reports a type argument that is equal to the default one and can be removed. Example: 'type Foo = T;\nlet z: Foo;'", "markdown": "Reports a type argument that is equal to the default one and can be removed.\n\n\nExample:\n\n\n type Foo = T;\n let z: Foo;\n" }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "TypeScriptRedundantGenericType", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/TypeScript", "index": 69, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TypeScriptUMDGlobal", "shortDescription": { "text": "Referenced UMD global variable" }, "fullDescription": { "text": "Reports a usage of a Universal Module Definition (UMD) global variable if the current file is a module (ECMAScript or CommonJS). Referencing UMD variables without explicit imports can lead to a runtime error if the library isn't included implicitly.", "markdown": "Reports a usage of a Universal Module Definition (UMD) global variable if the current file is a module (ECMAScript or CommonJS). Referencing UMD variables without explicit imports can lead to a runtime error if the library isn't included implicitly." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "TypeScriptUMDGlobal", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/TypeScript", "index": 69, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "UnnecessaryReturnJS", "shortDescription": { "text": "Unnecessary 'return' statement" }, "fullDescription": { "text": "Reports an unnecessary 'return' statement, that is, a 'return' statement that returns no value and occurs just before the function would have \"fallen through\" the bottom. These statements may be safely removed.", "markdown": "Reports an unnecessary `return` statement, that is, a `return` statement that returns no value and occurs just before the function would have \"fallen through\" the bottom. These statements may be safely removed." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "UnnecessaryReturnStatementJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Control flow issues", "index": 49, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSLastCommaInObjectLiteral", "shortDescription": { "text": "Unneeded last comma in object literal" }, "fullDescription": { "text": "Reports usages of a trailing comma in object literals. The warning is reported only when the JavaScript language version is set to ECMAScript 5.1. Trailing commas in object literals are allowed by the specification, however, some browsers might throw an error when a trailing comma is used. You can configure formatting options for trailing commas in Code Style | JavaScript or TypeScript | Punctuation.", "markdown": "Reports usages of a trailing comma in object literals.\n\nThe warning is reported only when the JavaScript language version is set to ECMAScript 5.1.\n\nTrailing commas in object literals are allowed by the specification, however, some browsers might throw an error when a trailing comma is used.\n\nYou can configure formatting options for trailing commas in **Code Style** \\| **JavaScript** or **TypeScript** \\| **Punctuation**." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSLastCommaInObjectLiteral", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ES6MissingAwait", "shortDescription": { "text": "Missing await for an async function call" }, "fullDescription": { "text": "Reports an 'async' function call without an expected 'await' prefix inside an 'async' function. Such call returns a 'Promise' and control flow is continued immediately. Example: 'async function bar() { /* ... */ }\nasync function foo() {\n bar(); // bad\n}' After the quick-fix is applied, the 'await' prefix is added: 'async function bar() { /* ... */ }\nasync function foo() {\n await bar(); // good\n}' When the 'Report for promises in return statements' checkbox is selected, also suggests adding 'await' in return statements. While this is generally not necessary, it gives two main benefits. You won't forget to add 'await' when surrounding your code with 'try-catch'. An explicit 'await' helps V8 runtime to provide async stack traces.", "markdown": "Reports an `async` function call without an expected `await` prefix inside an `async` function. Such call returns a `Promise` and control flow is continued immediately.\n\nExample:\n\n\n async function bar() { /* ... */ }\n async function foo() {\n bar(); // bad\n }\n\n\nAfter the quick-fix is applied, the `await` prefix is added:\n\n\n async function bar() { /* ... */ }\n async function foo() {\n await bar(); // good\n }\n\n
\n\nWhen the 'Report for promises in return statements' checkbox is selected, also suggests adding `await` in return statements. \nWhile this is generally not necessary, it gives two main benefits. \n\n* You won't forget to add `await` when surrounding your code with `try-catch`.\n* An explicit `await` helps V8 runtime to provide [async stack traces](https://bit.ly/v8-zero-cost-async-stack-traces)." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "ES6MissingAwait", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Async code and promises", "index": 73, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TailRecursionJS", "shortDescription": { "text": "Tail recursion" }, "fullDescription": { "text": "Reports a tail recursion, that is, when a function calls itself as its last action before returning. A tail recursion can always be replaced by looping, which will be considerably faster. Some JavaScript engines perform this optimization, while others do not. Thus, tail recursive solutions may have considerably different performance characteristics in different environments.", "markdown": "Reports a tail recursion, that is, when a function calls itself as its last action before returning. A tail recursion can always be replaced by looping, which will be considerably faster. Some JavaScript engines perform this optimization, while others do not. Thus, tail recursive solutions may have considerably different performance characteristics in different environments." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "TailRecursionJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Control flow issues", "index": 49, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "FlowJSCoverage", "shortDescription": { "text": "Code is not covered by Flow" }, "fullDescription": { "text": "Reports JavaScript code fragments that are not covered by the Flow type checker. To use this inspection, configure the Flow executable in Settings | Languages & Frameworks | JavaScript.", "markdown": "Reports JavaScript code fragments that are not covered by the Flow type checker. To use this inspection, configure the Flow executable in [Settings \\| Languages \\& Frameworks \\| JavaScript](settings://Settings.JavaScript)." }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "FlowJSCoverage", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Flow type checker", "index": 22, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "StandardJS", "shortDescription": { "text": "Standard code style" }, "fullDescription": { "text": "Reports a discrepancy detected by the JavaScript Standard Style linter. The highlighting severity in the editor is based on the severity level the linter reports.", "markdown": "Reports a discrepancy detected by the [JavaScript Standard Style](https://standardjs.com/) linter. \n\nThe highlighting severity in the editor is based on the severity level the linter reports." }, "defaultConfiguration": { "enabled": false, "level": "error", "parameters": { "suppressToolId": "StandardJS", "ideaSeverity": "ERROR", "qodanaSeverity": "Critical" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Code quality tools", "index": 84, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "NestedAssignmentJS", "shortDescription": { "text": "Nested assignment" }, "fullDescription": { "text": "Reports an assignment expression nested inside another expression, for example, 'a = b = 1'. Such expressions may be confusing and violate the general design principle that a given construct should do precisely one thing.", "markdown": "Reports an assignment expression nested inside another expression, for example, `a = b = 1`. Such expressions may be confusing and violate the general design principle that a given construct should do precisely one thing." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "NestedAssignmentJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Assignment issues", "index": 64, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "DefaultNotLastCaseInSwitchJS", "shortDescription": { "text": "'default' not last case in 'switch'" }, "fullDescription": { "text": "Reports a 'switch' statement where the 'default' case comes before another case instead of being the very last case, which may cause confusion.", "markdown": "Reports a `switch` statement where the `default` case comes before another case instead of being the very last case, which may cause confusion." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "DefaultNotLastCaseInSwitchJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Switch statement issues", "index": 71, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ConfusingPlusesOrMinusesJS", "shortDescription": { "text": "Confusing sequence of '+' or '-'" }, "fullDescription": { "text": "Reports a suspicious combination of '+' or '-' characters in JavaScript code (for example, 'a+++b'. Such sequences are confusing, and their semantics may change through changes in the whitespace.", "markdown": "Reports a suspicious combination of `+` or `-` characters in JavaScript code (for example, `a+++b`. Such sequences are confusing, and their semantics may change through changes in the whitespace." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ConfusingPlusesOrMinusesJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "EmptyFinallyBlockJS", "shortDescription": { "text": "Empty 'finally' block" }, "fullDescription": { "text": "Reports an empty 'finally' block, which usually indicates an error.", "markdown": "Reports an empty `finally` block, which usually indicates an error." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "EmptyFinallyBlockJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Try statement issues", "index": 42, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSCommentMatchesSignature", "shortDescription": { "text": "Mismatched JSDoc and function signature" }, "fullDescription": { "text": "Reports mismatch between the names and the number of parameters within a JSDoc comment and the actual parameters of a function. Suggests updating parameters in JSDoc comment. Example: '/**\n * @param height Height in pixels\n */\nfunction sq(height, width) {} // width is not documented' After the quick-fix is applied: '/**\n * @param height Height in pixels\n * @param width\n */\nfunction sq(height, width) {}'", "markdown": "Reports mismatch between the names and the number of parameters within a JSDoc comment and the actual parameters of a function. Suggests updating parameters in JSDoc comment.\n\n**Example:**\n\n\n /**\n * @param height Height in pixels\n */\n function sq(height, width) {} // width is not documented\n\nAfter the quick-fix is applied:\n\n\n /**\n * @param height Height in pixels\n * @param width\n */\n function sq(height, width) {}\n" }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "JSCommentMatchesSignature", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/General", "index": 30, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TypeScriptConfig", "shortDescription": { "text": "Inconsistent tsconfig.json properties" }, "fullDescription": { "text": "Reports inconsistency of a 'paths', 'checkJs', or 'extends' property in a tsconfig.json file. The 'checkJs' property requires 'allowJs'. The 'extends' property should be a valid file reference.", "markdown": "Reports inconsistency of a `paths`, `checkJs`, or `extends` property in a tsconfig.json file. \nThe `checkJs` property requires `allowJs`. \nThe `extends` property should be a valid file reference." }, "defaultConfiguration": { "enabled": true, "level": "warning", "parameters": { "suppressToolId": "TypeScriptConfig", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/TypeScript", "index": 69, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ForLoopThatDoesntUseLoopVariableJS", "shortDescription": { "text": "'for' loop where update or condition does not use loop variable" }, "fullDescription": { "text": "Reports a 'for' loop where the condition or update does not use the 'for' loop variable.", "markdown": "Reports a `for` loop where the condition or update does not use the `for` loop variable." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "ForLoopThatDoesntUseLoopVariableJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Probable bugs", "index": 55, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "TypeScriptAbstractClassConstructorCanBeMadeProtected", "shortDescription": { "text": "Abstract class constructor can be made protected" }, "fullDescription": { "text": "Reports a public constructor of an abstract class and suggests making it protected (because it is useless to have it public).", "markdown": "Reports a public constructor of an abstract class and suggests making it protected (because it is useless to have it public)." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "TypeScriptAbstractClassConstructorCanBeMadeProtected", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/TypeScript", "index": 69, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "FunctionWithMultipleReturnPointsJS", "shortDescription": { "text": "Function with multiple return points" }, "fullDescription": { "text": "Reports a function with multiple return points. Such functions are hard to understand and maintain.", "markdown": "Reports a function with multiple return points. Such functions are hard to understand and maintain." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "FunctionWithMultipleReturnPointsJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Function metrics", "index": 90, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSIgnoredPromiseFromCall", "shortDescription": { "text": "Result of method call returning a promise is ignored" }, "fullDescription": { "text": "Reports a function call that returns a 'Promise' that is not used later. Such calls are usually unintended and indicate an error.", "markdown": "Reports a function call that returns a `Promise` that is not used later. Such calls are usually unintended and indicate an error." }, "defaultConfiguration": { "enabled": true, "level": "note", "parameters": { "suppressToolId": "JSIgnoredPromiseFromCall", "ideaSeverity": "WEAK WARNING", "qodanaSeverity": "Moderate" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Async code and promises", "index": 73, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "ThreeNegationsPerFunctionJS", "shortDescription": { "text": "Function with more than three negations" }, "fullDescription": { "text": "Reports a function with three or more negation operations ('!' or '!='). Such functions may be unnecessarily confusing.", "markdown": "Reports a function with three or more negation operations (`!` or `!=`). Such functions may be unnecessarily confusing." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "FunctionWithMoreThanThreeNegationsJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Function metrics", "index": 90, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "JSRemoveUnnecessaryParentheses", "shortDescription": { "text": "Unnecessary parentheses" }, "fullDescription": { "text": "Reports redundant parentheses. In expressions: 'var x = ((1) + 2) + 3' In arrow function argument lists: 'var incrementer = (x) => x + 1' In TypeScript and Flow type declarations: 'type Card = (Suit & Rank) | (Suit & Number)'", "markdown": "Reports redundant parentheses.\n\nIn expressions:\n\n var x = ((1) + 2) + 3\n\nIn arrow function argument lists:\n\n var incrementer = (x) => x + 1\n\nIn TypeScript and Flow type declarations:\n\n type Card = (Suit & Rank) | (Suit & Number)\n" }, "defaultConfiguration": { "enabled": false, "level": "note", "parameters": { "suppressToolId": "JSRemoveUnnecessaryParentheses", "ideaSeverity": "INFORMATION", "qodanaSeverity": "Info" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Code style issues", "index": 63, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "OverlyComplexBooleanExpressionJS", "shortDescription": { "text": "Overly complex boolean expression" }, "fullDescription": { "text": "Reports a boolean expression with too many terms. Such expressions may be confusing and bug-prone. Use the field below to specify the maximum number of terms allowed in an arithmetic expression.", "markdown": "Reports a boolean expression with too many terms. Such expressions may be confusing and bug-prone.\n\n\nUse the field below to specify the maximum number of terms allowed in an arithmetic expression." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "OverlyComplexBooleanExpressionJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "OverlyComplexArithmeticExpressionJS", "shortDescription": { "text": "Overly complex arithmetic expression" }, "fullDescription": { "text": "Reports an arithmetic expression with too many terms. Such expressions may be confusing and bug-prone. Use the field below to specify the maximum number of terms allowed in an arithmetic expression.", "markdown": "Reports an arithmetic expression with too many terms. Such expressions may be confusing and bug-prone.\n\n\nUse the field below to specify the maximum number of terms allowed in an arithmetic expression." }, "defaultConfiguration": { "enabled": false, "level": "warning", "parameters": { "suppressToolId": "OverlyComplexArithmeticExpressionJS", "ideaSeverity": "WARNING", "qodanaSeverity": "High" } }, "relationships": [ { "target": { "id": "JavaScript and TypeScript/Potentially confusing code constructs", "index": 38, "toolComponent": { "name": "PS" } }, "kinds": [ "superset" ] } ] }, { "id": "StringLiteralBreaksHTMLJS", "shortDescription": { "text": "String literal which breaks HTML parsing" }, "fullDescription": { "text": "Reports a string literal that contains a '