-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhomeboy.json
More file actions
84 lines (84 loc) · 3.08 KB
/
homeboy.json
File metadata and controls
84 lines (84 loc) · 3.08 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
{
"auto_cleanup": false,
"baselines": {
"lint": {
"context_id": "data-machine",
"created_at": "2026-03-06T04:47:29Z",
"item_count": 0,
"known_fingerprints": [],
"metadata": {
"findings_count": 0
}
}
},
"changelog_target": "docs/CHANGELOG.md",
"extensions": {
"wordpress": {
"php": "8.2",
"node": "20",
"database_type": "mysql",
"mysql_host": "localhost",
"mysql_database": "wptests",
"mysql_user": "root",
"mysql_password": ""
}
},
"id": "data-machine",
"transforms": {
"drop_wp_ability_dead_guards": {
"description": "Drop dead class_exists('WP_Ability') and class_exists('WP_Abilities_Registry') guards. Plugin header requires WP 6.9 where both classes ship in core, so every guard on these symbols is unreachable. Ref: https://github.com/Extra-Chill/data-machine/issues/XXXX",
"rules": [
{
"id": "simple_guard",
"description": "Remove standalone if ( ! class_exists( 'WP_Ability' ) ) { return; } blocks.",
"find": "(?s)\n\t\tif \\( ! class_exists\\( ?'WP_Ability' ?\\) \\) \\{\n\t\t\treturn;\n\t\t\\}\n",
"replace": "",
"files": "inc/Abilities/**/*.php",
"context": "file"
},
{
"id": "combined_guard_registered",
"description": "Drop the WP_Ability half of 'if ( ! class_exists( WP_Ability ) || self::$registered ) { return; }' guards.",
"find": "(?s)if \\( ! class_exists\\( 'WP_Ability' \\) \\|\\| self::\\$registered \\) \\{\n\t+return;\n\t+\\}",
"replace": "if ( self::$$registered ) {\n\t\t\treturn;\n\t\t}",
"files": "inc/Abilities/**/*.php",
"context": "file"
},
{
"id": "ternary_registry_guard",
"description": "Replace '(class_exists(WP_Abilities_Registry) ? WP_Abilities_Registry::get_instance() : null)' with a direct call — the ternary is unreachable.",
"find": "class_exists\\( 'WP_Abilities_Registry' \\) \\? \\\\WP_Abilities_Registry::get_instance\\(\\) : null",
"replace": "\\\\WP_Abilities_Registry::get_instance()",
"files": "inc/**/*.php",
"context": "line"
},
{
"id": "combined_guard_registered_engine",
"description": "Same as combined_guard_registered but catches the one hit in inc/Engine/ (ResolvePendingActionAbility).",
"find": "(?s)if \\( ! class_exists\\( 'WP_Ability' \\) \\|\\| self::\\$registered \\) \\{\n\t+return;\n\t+\\}",
"replace": "if ( self::$$registered ) {\n\t\t\treturn;\n\t\t}",
"files": "inc/Engine/**/*.php",
"context": "file"
}
]
}
},
"version_targets": [
{
"file": "data-machine.php",
"pattern": "(?m)^\\s*\\*?\\s*Version:\\s*([0-9.]+)"
},
{
"file": "data-machine.php",
"pattern": "DATAMACHINE_VERSION',\\s*'([0-9.]+)'"
},
{
"file": "readme.txt",
"pattern": "(?m)^Stable tag:\\s*([0-9.]+)"
},
{
"file": "package.json",
"pattern": "\"version\":\\s*\"([0-9.]+)\""
}
]
}