changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "additionalProperties": false,
+ "properties": {
+ "_meta": {
+ "additionalProperties": false,
+ "properties": {
+ "funding": {
+ "type": "string"
+ },
+ "item_count": {
+ "type": "number"
+ },
+ "response_size_chars": {
+ "type": "number"
+ },
+ "warning": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "item_count",
+ "response_size_chars",
+ "funding"
+ ],
+ "type": "object"
+ },
+ "files": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "functions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "cognitive_complexity": {
+ "type": "number"
+ },
+ "cyclomatic_complexity": {
+ "type": "number"
+ },
+ "line": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "nesting_depth": {
+ "type": "number"
+ },
+ "severity": {
+ "enum": [
+ "high",
+ "extreme"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "line",
+ "cyclomatic_complexity",
+ "cognitive_complexity",
+ "nesting_depth",
+ "severity"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "hotspots": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "function": {
+ "type": "string"
+ },
+ "issue": {
+ "type": "string"
+ },
+ "line": {
+ "type": "number"
+ },
+ "recommendation": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "function",
+ "line",
+ "issue",
+ "value",
+ "recommendation"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "metrics": {
+ "additionalProperties": false,
+ "properties": {
+ "avg_cyclomatic_complexity": {
+ "type": "number"
+ },
+ "avg_nesting_depth": {
+ "type": "number"
+ },
+ "avg_parameters": {
+ "type": "number"
+ },
+ "cognitive_complexity": {
+ "type": "number"
+ },
+ "dependency_count": {
+ "type": "number"
+ },
+ "function_count": {
+ "type": "number"
+ },
+ "max_cognitive_complexity": {
+ "type": "number"
+ },
+ "max_cyclomatic_complexity": {
+ "type": "number"
+ },
+ "max_nesting_depth": {
+ "type": "number"
+ },
+ "max_parameters": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "max_nesting_depth",
+ "avg_nesting_depth",
+ "max_parameters",
+ "avg_parameters",
+ "dependency_count",
+ "cognitive_complexity",
+ "function_count",
+ "max_cyclomatic_complexity",
+ "avg_cyclomatic_complexity",
+ "max_cognitive_complexity"
+ ],
+ "type": "object"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "metrics",
+ "functions",
+ "hotspots"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "path": {
+ "type": "string"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "properties": {
+ "files_analyzed": {
+ "type": "number"
+ },
+ "high_complexity_files": {
+ "type": "number"
+ },
+ "high_complexity_functions": {
+ "type": "number"
+ },
+ "most_complex_file": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cognitive_complexity": {
+ "type": "number"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "cognitive_complexity"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "most_complex_function": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cyclomatic_complexity": {
+ "type": "number"
+ },
+ "function": {
+ "type": "string"
+ },
+ "line": {
+ "type": "number"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "function",
+ "line",
+ "cyclomatic_complexity"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "total_hotspots": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "files_analyzed",
+ "high_complexity_files",
+ "high_complexity_functions",
+ "total_hotspots",
+ "most_complex_file",
+ "most_complex_function"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "path",
+ "files",
+ "summary"
+ ],
+ "type": "object"
+}