-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproject-profile.schema.json
More file actions
105 lines (105 loc) · 3.23 KB
/
Copy pathproject-profile.schema.json
File metadata and controls
105 lines (105 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/netresearch/php-modernization-skill/schemas/project-profile.schema.json",
"title": "PHP Modernization Project Profile",
"description": "Output schema for skills/php-modernization/scripts/introspect.py — cheap first-touch project shape (no subprocess invocations beyond `php --version`).",
"type": "object",
"required": [
"schema_version",
"skill",
"generated_at",
"project_root",
"archetype",
"php_version_constraint",
"php_runtime",
"tooling",
"autoload_psr4",
"baselines"
],
"additionalProperties": false,
"properties": {
"schema_version": {
"type": "string",
"description": "Semantic version of this schema (e.g. \"1.0.0\")."
},
"skill": {
"type": "string",
"const": "php-modernization"
},
"generated_at": {
"type": "string",
"format": "date-time",
"description": "ISO-8601 UTC timestamp (e.g. 2026-05-06T12:34:56Z)."
},
"project_root": {
"type": "string",
"description": "Absolute path to the analyzed project root."
},
"archetype": {
"type": "string",
"enum": [
"generic-composer",
"typo3-extension",
"symfony-app",
"monorepo-package",
"unknown"
]
},
"php_version_constraint": {
"type": "string",
"description": "From composer.json config.platform.php OR require.php; \"unknown\" when neither is set."
},
"php_runtime": {
"type": "string",
"description": "Detected PHP runtime version (e.g. \"8.4.5\") parsed from the first line of `php --version`, or \"unknown\" if php is missing or the output is not parseable."
},
"tooling": {
"type": "object",
"description": "Boolean fingerprints for known tools. Detection is best-effort (substring match against composer.json/composer.lock).",
"required": [
"phpstan",
"rector",
"php_cs_fixer",
"phpat",
"infection",
"psalm",
"composer_audit_supported"
],
"additionalProperties": false,
"properties": {
"phpstan": { "type": "boolean" },
"rector": { "type": "boolean" },
"php_cs_fixer": { "type": "boolean" },
"phpat": { "type": "boolean" },
"infection": { "type": "boolean" },
"psalm": { "type": "boolean" },
"composer_audit_supported": { "type": "boolean" }
}
},
"autoload_psr4": {
"type": "object",
"description": "Mirror of composer.json::autoload.psr-4 (namespace → path or paths). Empty object if missing.",
"additionalProperties": {
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
]
}
},
"baselines": {
"type": "object",
"required": ["phpstan", "psalm"],
"additionalProperties": false,
"properties": {
"phpstan": {
"type": "boolean",
"description": "True if a phpstan-baseline.neon is present at any common path."
},
"psalm": {
"type": "boolean",
"description": "True if a psalm-baseline.xml is present at any common path."
}
}
}
}
}