@archlinter/core 0.15.0 → 0.15.1-canary.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.
Files changed (2) hide show
  1. package/index.d.ts +6 -0
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -78,6 +78,9 @@ export interface JsSummary {
78
78
  godModules: number
79
79
  deadCode: number
80
80
  deadSymbols: number
81
+ highCyclomaticComplexityFunctions: number
82
+ highCognitiveComplexityFunctions: number
83
+ /** @deprecated use highCyclomaticComplexityFunctions or highCognitiveComplexityFunctions */
81
84
  highComplexityFunctions: number
82
85
  unstableInterfaces: number
83
86
  featureEnvy: number
@@ -112,6 +115,9 @@ export interface JsExportInfo {
112
115
  }
113
116
  export interface JsFileMetrics {
114
117
  lines: number
118
+ cyclomaticComplexity?: number
119
+ cognitiveComplexity?: number
120
+ /** @deprecated use cyclomaticComplexity or cognitiveComplexity */
115
121
  complexity?: number
116
122
  fanIn: number
117
123
  fanOut: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archlinter/core",
3
- "version": "0.15.0",
3
+ "version": "0.15.1-canary.1",
4
4
  "description": "Core library for archlint - programmatic API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,12 +31,12 @@
31
31
  }
32
32
  },
33
33
  "optionalDependencies": {
34
- "@archlinter/core-win32-x64-msvc": "0.15.0",
35
- "@archlinter/core-darwin-x64": "0.15.0",
36
- "@archlinter/core-linux-x64-gnu": "0.15.0",
37
- "@archlinter/core-linux-x64-musl": "0.15.0",
38
- "@archlinter/core-linux-arm64-gnu": "0.15.0",
39
- "@archlinter/core-darwin-arm64": "0.15.0"
34
+ "@archlinter/core-win32-x64-msvc": "0.15.1-canary.1",
35
+ "@archlinter/core-darwin-x64": "0.15.1-canary.1",
36
+ "@archlinter/core-linux-x64-gnu": "0.15.1-canary.1",
37
+ "@archlinter/core-linux-x64-musl": "0.15.1-canary.1",
38
+ "@archlinter/core-linux-arm64-gnu": "0.15.1-canary.1",
39
+ "@archlinter/core-darwin-arm64": "0.15.1-canary.1"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=18"