complexity-guard 0.7.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ComplexityGuard
|
|
2
2
|
|
|
3
|
-
Fast complexity analysis for TypeScript/JavaScript — single static binary, zero dependencies.
|
|
3
|
+
Fast complexity analysis for TypeScript/JavaScript — single static binary built with Rust, zero dependencies.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -23,14 +23,12 @@ complexity-guard src/
|
|
|
23
23
|
```
|
|
24
24
|
src/auth/login.ts
|
|
25
25
|
42:0 ✓ ok Function 'validateCredentials' cyclomatic 3 cognitive 2
|
|
26
|
-
67:0 ⚠ warning Function 'processLoginFlow' cyclomatic 12 cognitive 18
|
|
27
|
-
|
|
28
|
-
89:2 ✗ error Method 'handleComplexAuthFlow' cyclomatic 25 cognitive 32
|
|
29
|
-
[halstead vol 1244 diff 18.6 effort 23135 bugs 0.41] [length 62 params 4 depth 6]
|
|
26
|
+
67:0 ⚠ warning Function 'processLoginFlow' cyclomatic 12 cognitive 18 [halstead vol 843] [length 34] [params 3] [depth 4]
|
|
27
|
+
89:2 ✗ error Function 'handleComplexAuthFlow' cyclomatic 25 cognitive 32 [halstead vol 1244] [length 62] [params 4] [depth 6]
|
|
30
28
|
|
|
31
29
|
Analyzed 12 files, 47 functions
|
|
32
|
-
Found 3 warnings, 1 errors
|
|
33
30
|
Health: 73
|
|
31
|
+
Found 3 warnings, 1 errors
|
|
34
32
|
|
|
35
33
|
Top cyclomatic hotspots:
|
|
36
34
|
1. handleComplexAuthFlow (src/auth/login.ts:89) complexity 25
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "Ben van de Sande",
|
|
5
5
|
"email": "info@getlean.digital"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.9.1",
|
|
8
8
|
"description": "Fast complexity analysis for TypeScript/JavaScript — single static binary",
|
|
9
9
|
"bin": {
|
|
10
10
|
"complexity-guard": "bin/complexity-guard.js"
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"bin/"
|
|
14
14
|
],
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@complexity-guard/darwin-arm64": "0.
|
|
17
|
-
"@complexity-guard/darwin-x64": "0.
|
|
18
|
-
"@complexity-guard/linux-arm64": "0.
|
|
19
|
-
"@complexity-guard/linux-x64": "0.
|
|
20
|
-
"@complexity-guard/windows-x64": "0.
|
|
16
|
+
"@complexity-guard/darwin-arm64": "0.9.1",
|
|
17
|
+
"@complexity-guard/darwin-x64": "0.9.1",
|
|
18
|
+
"@complexity-guard/linux-arm64": "0.9.1",
|
|
19
|
+
"@complexity-guard/linux-x64": "0.9.1",
|
|
20
|
+
"@complexity-guard/windows-x64": "0.9.1"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"repository": {
|