mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +00:00
chore(hardening): refresh source inventory
This commit is contained in:
1 parent
4502e5d503
commit
192b27fbb2
2 files changed
+31
-32
No files matched your search
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"scope": "src/**/*.{ts,tsx,js,jsx,mjs,cjs}",
|
||||
"syncFs": {
|
||||
"totalOccurrences": 2471,
|
||||
"filesAffected": 261,
|
||||
"hotpathOccurrences": 1186,
|
||||
"totalOccurrences": 2514,
|
||||
"filesAffected": 262,
|
||||
"hotpathOccurrences": 1192,
|
||||
"hotpathFilesAffected": 155,
|
||||
"topHotpathFiles": [
|
||||
{
|
||||
@@ -247,6 +247,21 @@
|
||||
],
|
||||
"markers": []
|
||||
},
|
||||
{
|
||||
"file": "src/cliproxy/binary/__tests__/binary-installer-atomic.test.ts",
|
||||
"count": 37,
|
||||
"calls": [
|
||||
"existsSync",
|
||||
"mkdirSync",
|
||||
"mkdtempSync",
|
||||
"readdirSync",
|
||||
"readFileSync",
|
||||
"renameSync",
|
||||
"rmSync",
|
||||
"writeFileSync"
|
||||
],
|
||||
"markers": []
|
||||
},
|
||||
{
|
||||
"file": "src/cliproxy/executor/__tests__/variant-port-integration.test.js",
|
||||
"count": 36,
|
||||
@@ -286,22 +301,6 @@
|
||||
"writeFileSync"
|
||||
],
|
||||
"markers": []
|
||||
},
|
||||
{
|
||||
"file": "src/utils/browser/mcp-installer.ts",
|
||||
"count": 32,
|
||||
"calls": [
|
||||
"chmodSync",
|
||||
"copyFileSync",
|
||||
"existsSync",
|
||||
"mkdirSync",
|
||||
"readFileSync",
|
||||
"renameSync",
|
||||
"statSync",
|
||||
"unlinkSync",
|
||||
"writeFileSync"
|
||||
],
|
||||
"markers": []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -497,16 +496,16 @@
|
||||
},
|
||||
"maintainability": {
|
||||
"typedErrors": {
|
||||
"totalThrows": 454,
|
||||
"typedThrows": 83,
|
||||
"plainThrows": 311,
|
||||
"totalThrows": 455,
|
||||
"typedThrows": 89,
|
||||
"plainThrows": 306,
|
||||
"otherThrows": 60,
|
||||
"adoptionRatio": 0.1828,
|
||||
"adoptionRatio": 0.1956,
|
||||
"topSubdomainsByThrows": [
|
||||
{
|
||||
"subdomain": "web-server",
|
||||
"count": 103,
|
||||
"typed": 16,
|
||||
"count": 104,
|
||||
"typed": 17,
|
||||
"plain": 45
|
||||
},
|
||||
{
|
||||
@@ -652,9 +651,9 @@
|
||||
]
|
||||
},
|
||||
"hotpathConsoleErrors": {
|
||||
"totalOccurrences": 592,
|
||||
"totalOccurrences": 590,
|
||||
"exemptOccurrences": 326,
|
||||
"hotpathOccurrences": 266,
|
||||
"hotpathOccurrences": 264,
|
||||
"filesAffected": 81,
|
||||
"topFiles": [
|
||||
{
|
||||
|
||||
@@ -6,9 +6,9 @@ Scope: `src/**/*.{ts,tsx,js,jsx,mjs,cjs}`
|
||||
|
||||
| Metric | Value |
|
||||
|---|---:|
|
||||
| Sync fs occurrences (all) | 2471 |
|
||||
| Sync fs files affected (all) | 261 |
|
||||
| Sync fs occurrences (runtime hotpaths) | 1186 |
|
||||
| Sync fs occurrences (all) | 2514 |
|
||||
| Sync fs files affected (all) | 262 |
|
||||
| Sync fs occurrences (runtime hotpaths) | 1192 |
|
||||
| Sync fs files affected (runtime hotpaths) | 155 |
|
||||
| Legacy shim markers | 465 |
|
||||
| Legacy shim files affected | 176 |
|
||||
@@ -56,9 +56,9 @@ Scope: `src/**/*.{ts,tsx,js,jsx,mjs,cjs}`
|
||||
|
||||
| Metric | Value |
|
||||
|---|---:|
|
||||
| typed-error adoption (typed/total throws) | 18.3% (83/454) |
|
||||
| typed-error adoption (typed/total throws) | 19.6% (89/455) |
|
||||
| typed-error adoption (P4 locked subdomains) | 93.3% (28/30), target 40% |
|
||||
| hotpath console.error/warn occurrences | 266 (592 total, 326 CLI-UX exempt) |
|
||||
| hotpath console.error/warn occurrences | 264 (590 total, 326 CLI-UX exempt) |
|
||||
| hotpath console.error/warn files | 81 |
|
||||
| files with createLogger | 65/764 |
|
||||
| subdomains with zero createLogger | 15 (api, bin, channels, cliproxy, cliproxy/accounts, cliproxy/ai-providers, cliproxy/binary, cliproxy/config, cliproxy/management, cliproxy/sync, cliproxy/types, config, dispatcher, shared, types) |
|
||||
|
||||
Reference in new issue
Block a user