feat: add safe Gitea sync and signed updates
This commit is contained in:
+139
-95
@@ -1,12 +1,54 @@
|
||||
{
|
||||
"generatedAt": "2026-08-23T13:06:16.630Z",
|
||||
"generatedAt": "2026-08-26T22:18:32.525Z",
|
||||
"thresholds": {
|
||||
"preferredMaximumLines": 750,
|
||||
"justificationRequiredLines": 1000
|
||||
},
|
||||
"over750": [],
|
||||
"over750": [
|
||||
{
|
||||
"file": "src/main/git-service.cjs",
|
||||
"lines": 881,
|
||||
"branches": 134,
|
||||
"functions": 147,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"git",
|
||||
"renderer",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 154
|
||||
},
|
||||
{
|
||||
"file": "src/main/update-service.cjs",
|
||||
"lines": 854,
|
||||
"branches": 64,
|
||||
"functions": 65,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"git",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 74
|
||||
}
|
||||
],
|
||||
"over1000": [],
|
||||
"cyclomaticHotspots": [
|
||||
{
|
||||
"file": "src/main/git-service.cjs",
|
||||
"lines": 881,
|
||||
"branches": 134,
|
||||
"functions": 147,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"git",
|
||||
"renderer",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 154
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/actions/shell.js",
|
||||
"lines": 518,
|
||||
@@ -24,7 +66,7 @@
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/app.js",
|
||||
"lines": 732,
|
||||
"lines": 734,
|
||||
"branches": 80,
|
||||
"functions": 124,
|
||||
"ipcHandlers": 0,
|
||||
@@ -53,21 +95,9 @@
|
||||
],
|
||||
"hotspotScore": 119
|
||||
},
|
||||
{
|
||||
"file": "src/main/git-service.cjs",
|
||||
"lines": 687,
|
||||
"branches": 111,
|
||||
"functions": 118,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"git",
|
||||
"security"
|
||||
],
|
||||
"hotspotScore": 111
|
||||
},
|
||||
{
|
||||
"file": "src/main/unraid-inventory-methods.cjs",
|
||||
"lines": 708,
|
||||
"lines": 710,
|
||||
"branches": 76,
|
||||
"functions": 93,
|
||||
"ipcHandlers": 0,
|
||||
@@ -82,6 +112,20 @@
|
||||
}
|
||||
],
|
||||
"mixedResponsibilityModules": [
|
||||
{
|
||||
"file": "src/main/git-service.cjs",
|
||||
"lines": 881,
|
||||
"branches": 134,
|
||||
"functions": 147,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"git",
|
||||
"renderer",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 154
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/actions/shell.js",
|
||||
"lines": 518,
|
||||
@@ -99,7 +143,7 @@
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/app.js",
|
||||
"lines": 732,
|
||||
"lines": 734,
|
||||
"branches": 80,
|
||||
"functions": 124,
|
||||
"ipcHandlers": 0,
|
||||
@@ -130,7 +174,7 @@
|
||||
},
|
||||
{
|
||||
"file": "src/main/unraid-inventory-methods.cjs",
|
||||
"lines": 708,
|
||||
"lines": 710,
|
||||
"branches": 76,
|
||||
"functions": 93,
|
||||
"ipcHandlers": 0,
|
||||
@@ -143,6 +187,22 @@
|
||||
],
|
||||
"hotspotScore": 106
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/dialogs.js",
|
||||
"lines": 433,
|
||||
"branches": 60,
|
||||
"functions": 83,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"inventory",
|
||||
"deployment",
|
||||
"git",
|
||||
"renderer",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 100
|
||||
},
|
||||
{
|
||||
"file": "src/main/unraid-deployment-methods.cjs",
|
||||
"lines": 583,
|
||||
@@ -159,24 +219,24 @@
|
||||
"hotspotScore": 99
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/dialogs.js",
|
||||
"lines": 419,
|
||||
"branches": 58,
|
||||
"functions": 80,
|
||||
"ipcHandlers": 0,
|
||||
"file": "src/main/ipc.cjs",
|
||||
"lines": 706,
|
||||
"branches": 54,
|
||||
"functions": 72,
|
||||
"ipcHandlers": 27,
|
||||
"responsibilities": [
|
||||
"inventory",
|
||||
"deployment",
|
||||
"git",
|
||||
"renderer",
|
||||
"ipc",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 98
|
||||
"hotspotScore": 94
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/views.js",
|
||||
"lines": 715,
|
||||
"lines": 736,
|
||||
"branches": 53,
|
||||
"functions": 152,
|
||||
"ipcHandlers": 0,
|
||||
@@ -191,20 +251,33 @@
|
||||
"hotspotScore": 93
|
||||
},
|
||||
{
|
||||
"file": "src/main/ipc.cjs",
|
||||
"lines": 694,
|
||||
"branches": 51,
|
||||
"functions": 70,
|
||||
"ipcHandlers": 27,
|
||||
"file": "src/main/ssh-service.cjs",
|
||||
"lines": 513,
|
||||
"branches": 70,
|
||||
"functions": 101,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"inventory",
|
||||
"deployment",
|
||||
"git",
|
||||
"ipc",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 91
|
||||
"hotspotScore": 90
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/actions/setup-and-settings.js",
|
||||
"lines": 441,
|
||||
"branches": 60,
|
||||
"functions": 60,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"deployment",
|
||||
"git",
|
||||
"renderer",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 90
|
||||
},
|
||||
{
|
||||
"file": "main.cjs",
|
||||
@@ -223,21 +296,6 @@
|
||||
],
|
||||
"hotspotScore": 89
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/actions/setup-and-settings.js",
|
||||
"lines": 427,
|
||||
"branches": 58,
|
||||
"functions": 58,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"deployment",
|
||||
"git",
|
||||
"renderer",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 88
|
||||
},
|
||||
{
|
||||
"file": "src/main/gitea-service.cjs",
|
||||
"lines": 624,
|
||||
@@ -252,24 +310,10 @@
|
||||
],
|
||||
"hotspotScore": 87
|
||||
},
|
||||
{
|
||||
"file": "src/main/ssh-service.cjs",
|
||||
"lines": 467,
|
||||
"branches": 66,
|
||||
"functions": 92,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"deployment",
|
||||
"git",
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 86
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/actions/deployment-profile.js",
|
||||
"lines": 407,
|
||||
"branches": 56,
|
||||
"lines": 408,
|
||||
"branches": 57,
|
||||
"functions": 44,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
@@ -279,11 +323,25 @@
|
||||
"renderer",
|
||||
"security"
|
||||
],
|
||||
"hotspotScore": 86
|
||||
"hotspotScore": 87
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/actions/recovery.js",
|
||||
"lines": 421,
|
||||
"branches": 64,
|
||||
"functions": 43,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"deployment",
|
||||
"git",
|
||||
"renderer",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 84
|
||||
},
|
||||
{
|
||||
"file": "src/main/config-store.cjs",
|
||||
"lines": 665,
|
||||
"lines": 668,
|
||||
"branches": 52,
|
||||
"functions": 89,
|
||||
"ipcHandlers": 0,
|
||||
@@ -328,20 +386,6 @@
|
||||
],
|
||||
"hotspotScore": 77
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/actions/recovery.js",
|
||||
"lines": 356,
|
||||
"branches": 56,
|
||||
"functions": 38,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"deployment",
|
||||
"git",
|
||||
"renderer",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 76
|
||||
},
|
||||
{
|
||||
"file": "src/main/unraid-access-methods.cjs",
|
||||
"lines": 462,
|
||||
@@ -359,7 +403,7 @@
|
||||
},
|
||||
{
|
||||
"file": "src/main/diagnostics-service.cjs",
|
||||
"lines": 373,
|
||||
"lines": 377,
|
||||
"branches": 39,
|
||||
"functions": 51,
|
||||
"ipcHandlers": 0,
|
||||
@@ -477,9 +521,9 @@
|
||||
},
|
||||
{
|
||||
"file": "preload.cjs",
|
||||
"lines": 162,
|
||||
"lines": 164,
|
||||
"branches": 2,
|
||||
"functions": 123,
|
||||
"functions": 125,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"inventory",
|
||||
@@ -612,9 +656,9 @@
|
||||
},
|
||||
{
|
||||
"file": "src/renderer/mock-repository-bridge.js",
|
||||
"lines": 636,
|
||||
"branches": 13,
|
||||
"functions": 89,
|
||||
"lines": 701,
|
||||
"branches": 14,
|
||||
"functions": 91,
|
||||
"ipcHandlers": 0,
|
||||
"responsibilities": [
|
||||
"deployment",
|
||||
@@ -622,7 +666,7 @@
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 33
|
||||
"hotspotScore": 34
|
||||
},
|
||||
{
|
||||
"file": "src/main/deployment-identity.cjs",
|
||||
@@ -685,9 +729,9 @@
|
||||
"ipcHotspots": [
|
||||
{
|
||||
"file": "src/main/ipc.cjs",
|
||||
"lines": 694,
|
||||
"branches": 51,
|
||||
"functions": 70,
|
||||
"lines": 706,
|
||||
"branches": 54,
|
||||
"functions": 72,
|
||||
"ipcHandlers": 27,
|
||||
"responsibilities": [
|
||||
"inventory",
|
||||
@@ -697,7 +741,7 @@
|
||||
"security",
|
||||
"updates"
|
||||
],
|
||||
"hotspotScore": 91
|
||||
"hotspotScore": 94
|
||||
},
|
||||
{
|
||||
"file": "src/main/ipc/deployment-handlers.cjs",
|
||||
@@ -717,10 +761,10 @@
|
||||
},
|
||||
{
|
||||
"file": "src/main/ipc/repository-handlers.cjs",
|
||||
"lines": 413,
|
||||
"lines": 451,
|
||||
"branches": 16,
|
||||
"functions": 79,
|
||||
"ipcHandlers": 51,
|
||||
"functions": 83,
|
||||
"ipcHandlers": 53,
|
||||
"responsibilities": [
|
||||
"git",
|
||||
"ipc"
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
# ForgeFlow architecture audit
|
||||
|
||||
Generated 2026-08-23T13:06:16.630Z. Complexity is a deterministic decision-point count used for hotspot ranking, not a claim of exact McCabe complexity.
|
||||
Generated 2026-08-26T22:18:32.525Z. Complexity is a deterministic decision-point count used for hotspot ranking, not a claim of exact McCabe complexity.
|
||||
|
||||
## Files above 750 lines
|
||||
|
||||
| File | Lines | Decisions | Functions | IPC handlers | Responsibilities |
|
||||
|---|---:|---:|---:|---:|---|
|
||||
No findings.
|
||||
| `src/main/git-service.cjs` | 881 | 134 | 147 | 0 | git, renderer, security, updates |
|
||||
| `src/main/update-service.cjs` | 854 | 64 | 65 | 0 | git, security, updates |
|
||||
|
||||
## Files above 1,000 lines
|
||||
|
||||
@@ -18,11 +19,11 @@ No findings.
|
||||
|
||||
| File | Lines | Decisions | Functions | IPC handlers | Responsibilities |
|
||||
|---|---:|---:|---:|---:|---|
|
||||
| `src/main/git-service.cjs` | 881 | 134 | 147 | 0 | git, renderer, security, updates |
|
||||
| `src/renderer/actions/shell.js` | 518 | 101 | 86 | 0 | inventory, deployment, git, renderer, updates |
|
||||
| `src/renderer/app.js` | 732 | 80 | 124 | 0 | inventory, deployment, git, renderer, security, updates |
|
||||
| `src/renderer/app.js` | 734 | 80 | 124 | 0 | inventory, deployment, git, renderer, security, updates |
|
||||
| `src/main/server-inventory.cjs` | 578 | 89 | 104 | 0 | inventory, deployment, git, security, updates |
|
||||
| `src/main/git-service.cjs` | 687 | 111 | 118 | 0 | git, security |
|
||||
| `src/main/unraid-inventory-methods.cjs` | 708 | 76 | 93 | 0 | inventory, deployment, git, security, updates |
|
||||
| `src/main/unraid-inventory-methods.cjs` | 710 | 76 | 93 | 0 | inventory, deployment, git, security, updates |
|
||||
|
||||
## Interpretation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user