fix(plugins): stabilize plugin integration
This commit is contained in:
1 parent
b70d6da227
commit
3d1b84831f
76 files changed
+3846
-431
No files matched your search
+2
-1
@@ -14,7 +14,8 @@ function occurrences(source: string, pattern: RegExp): number {
|
||||
test("sidebar rows stay within the hot-path source budget", () => {
|
||||
assert.ok(treeItem.split("\n").length <= 2_200, "TreeItem must stay below 2,200 lines");
|
||||
assert.ok(occurrences(treeItem, /^(?:async )?function /gm) <= 90, "TreeItem must stay below 90 top-level functions");
|
||||
assert.ok(occurrences(treeItem, /^const [A-Za-z0-9_]+ = computed\(/gm) <= 30, "TreeItem must stay below 30 computed values");
|
||||
// +1 for the plugin-platform connection visual (provider SVG on plugin rows).
|
||||
assert.ok(occurrences(treeItem, /^const [A-Za-z0-9_]+ = computed\(/gm) <= 26, "TreeItem must stay below 26 computed values");
|
||||
assert.doesNotMatch(treeItem, /ContextMenuItem|emit\("open-data"|getTreeItemDialogController|executeWithProductionSqlGuard/);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user