code-gauge 10.2.3 → 10.3.0
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 +47 -5
- package/THIRD-PARTY-NOTICES.txt +12 -12
- package/dist/allowDirectives.cjs +2 -0
- package/dist/allowDirectives.cjs.map +1 -0
- package/dist/allowDirectives.d.ts +45 -0
- package/dist/allowDirectives.js +2 -0
- package/dist/allowDirectives.js.map +1 -0
- package/dist/checkCommand.cjs +3 -3
- package/dist/checkCommand.cjs.map +1 -1
- package/dist/checkCommand.d.ts +1 -1
- package/dist/checkCommand.js +3 -3
- package/dist/checkCommand.js.map +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/cliConfig.cjs.map +1 -1
- package/dist/cliConfig.js.map +1 -1
- package/dist/crossFileDuplication.cjs.map +1 -1
- package/dist/crossFileDuplication.js.map +1 -1
- package/dist/crossFileNearMiss.cjs +1 -1
- package/dist/crossFileNearMiss.cjs.map +1 -1
- package/dist/crossFileNearMiss.js +1 -1
- package/dist/crossFileNearMiss.js.map +1 -1
- package/dist/duplicateSelection.cjs.map +1 -1
- package/dist/duplicateSelection.js.map +1 -1
- package/dist/duplication.cjs +1 -1
- package/dist/duplication.cjs.map +1 -1
- package/dist/duplication.js +1 -1
- package/dist/duplication.js.map +1 -1
- package/dist/exclusion.cjs.map +1 -1
- package/dist/exclusion.js.map +1 -1
- package/dist/git.cjs +2 -1
- package/dist/git.cjs.map +1 -1
- package/dist/git.d.ts +7 -0
- package/dist/git.js +2 -1
- package/dist/git.js.map +1 -1
- package/dist/languages.cjs.map +1 -1
- package/dist/languages.js.map +1 -1
- package/dist/metrics.cjs.map +1 -1
- package/dist/metrics.js.map +1 -1
- package/dist/nativeMetrics.cjs +1 -1
- package/dist/nativeMetrics.cjs.map +1 -1
- package/dist/nativeMetrics.js +1 -1
- package/dist/nativeMetrics.js.map +1 -1
- package/dist/scan.cjs +1 -1
- package/dist/scan.cjs.map +1 -1
- package/dist/scan.js +1 -1
- package/dist/scan.js.map +1 -1
- package/dist/thresholdCheck.cjs +1 -1
- package/dist/thresholdCheck.cjs.map +1 -1
- package/dist/thresholdCheck.d.ts +15 -1
- package/dist/thresholdCheck.js +1 -1
- package/dist/thresholdCheck.js.map +1 -1
- package/dist/thresholds.cjs.map +1 -1
- package/dist/thresholds.js.map +1 -1
- package/dist/wasmBinding.cjs +1 -1
- package/dist/wasmBinding.cjs.map +1 -1
- package/dist/wasmBinding.js +1 -1
- package/dist/wasmBinding.js.map +1 -1
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.js.map +1 -1
- package/native/Cargo.lock +24 -24
- package/native/Cargo.toml +12 -12
- package/native/code-gauge.wasm +0 -0
- package/package.json +39 -43
package/native/Cargo.toml
CHANGED
|
@@ -22,18 +22,18 @@ rustc-hash = "2"
|
|
|
22
22
|
# `willbooster-*` crates are WillBooster's forks of the runtime and grammars. Every grammar crate
|
|
23
23
|
# depends only on `tree-sitter-language`, never on upstream's `tree-sitter` crate, whose
|
|
24
24
|
# `links = "tree-sitter"` would conflict with the forked runtime's.
|
|
25
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
26
|
-
tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "=
|
|
27
|
-
tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "=
|
|
28
|
-
tree-sitter-cpp = { package = "willbooster-tree-sitter-cpp", version = "=
|
|
29
|
-
tree-sitter-go = { package = "willbooster-tree-sitter-go", version = "=
|
|
30
|
-
tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "=
|
|
31
|
-
tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "=
|
|
32
|
-
tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "=
|
|
33
|
-
tree-sitter-python = { package = "willbooster-tree-sitter-python", version = "=
|
|
34
|
-
tree-sitter-ruby = { package = "willbooster-tree-sitter-ruby", version = "=
|
|
35
|
-
tree-sitter-rust = { package = "willbooster-tree-sitter-rust", version = "=
|
|
36
|
-
tree-sitter-typescript = { package = "willbooster-tree-sitter-typescript", version = "=
|
|
25
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "2" }
|
|
26
|
+
tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "=5.0.0" }
|
|
27
|
+
tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "=4.0.0" }
|
|
28
|
+
tree-sitter-cpp = { package = "willbooster-tree-sitter-cpp", version = "=3.0.0" }
|
|
29
|
+
tree-sitter-go = { package = "willbooster-tree-sitter-go", version = "=2.0.0" }
|
|
30
|
+
tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "=2.0.0" }
|
|
31
|
+
tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "=5.0.0" }
|
|
32
|
+
tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "=5.0.0" }
|
|
33
|
+
tree-sitter-python = { package = "willbooster-tree-sitter-python", version = "=2.0.0" }
|
|
34
|
+
tree-sitter-ruby = { package = "willbooster-tree-sitter-ruby", version = "=2.0.0" }
|
|
35
|
+
tree-sitter-rust = { package = "willbooster-tree-sitter-rust", version = "=3.0.0" }
|
|
36
|
+
tree-sitter-typescript = { package = "willbooster-tree-sitter-typescript", version = "=8.0.0" }
|
|
37
37
|
|
|
38
38
|
# The WebAssembly build (src/wasm.rs) exports a plain C ABI instead of N-API.
|
|
39
39
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
package/native/code-gauge.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,37 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-gauge",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "Measure code metrics with tree-sitter.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
7
|
-
"tree-sitter",
|
|
8
|
-
"metrics",
|
|
9
|
-
"loc",
|
|
10
7
|
"cognitive-complexity",
|
|
11
|
-
"ncss",
|
|
12
|
-
"duplication",
|
|
13
8
|
"csharp",
|
|
9
|
+
"duplication",
|
|
14
10
|
"kotlin",
|
|
15
|
-
"
|
|
11
|
+
"loc",
|
|
12
|
+
"metrics",
|
|
13
|
+
"ncss",
|
|
14
|
+
"refactoring",
|
|
15
|
+
"tree-sitter"
|
|
16
16
|
],
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"author": "WillBooster Inc.",
|
|
17
19
|
"repository": {
|
|
18
20
|
"type": "git",
|
|
19
21
|
"url": "git+https://github.com/WillBooster/code-gauge.git"
|
|
20
22
|
},
|
|
21
|
-
"license": "Apache-2.0",
|
|
22
|
-
"author": "WillBooster Inc.",
|
|
23
|
-
"type": "module",
|
|
24
|
-
"exports": {
|
|
25
|
-
".": {
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"workerd": "./dist/worker.js",
|
|
28
|
-
"require": "./dist/index.cjs",
|
|
29
|
-
"import": "./dist/index.js"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"main": "dist/index.cjs",
|
|
33
|
-
"module": "dist/index.js",
|
|
34
|
-
"types": "dist/index.d.ts",
|
|
35
23
|
"bin": "dist/cli.js",
|
|
36
24
|
"files": [
|
|
37
25
|
"dist/",
|
|
@@ -43,6 +31,22 @@
|
|
|
43
31
|
"scripts/buildNative.mjs",
|
|
44
32
|
"THIRD-PARTY-NOTICES.txt"
|
|
45
33
|
],
|
|
34
|
+
"type": "module",
|
|
35
|
+
"main": "dist/index.cjs",
|
|
36
|
+
"module": "dist/index.js",
|
|
37
|
+
"types": "dist/index.d.ts",
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"types": "./dist/index.d.ts",
|
|
41
|
+
"workerd": "./dist/worker.js",
|
|
42
|
+
"require": "./dist/index.cjs",
|
|
43
|
+
"import": "./dist/index.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public",
|
|
48
|
+
"registry": "https://registry.npmjs.org/"
|
|
49
|
+
},
|
|
46
50
|
"scripts": {
|
|
47
51
|
"benchmark": "node scripts/benchmark.mjs",
|
|
48
52
|
"build": "build-ts lib -i src/index.ts -i src/cli.ts -i src/worker.ts --external ../native/code-gauge.wasm",
|
|
@@ -68,37 +72,29 @@
|
|
|
68
72
|
"@tsconfig/bun": "1.0.10",
|
|
69
73
|
"@tsconfig/node-lts": "24.0.0",
|
|
70
74
|
"@tsconfig/node-ts": "23.6.4",
|
|
71
|
-
"@types/bun": "1.4.
|
|
75
|
+
"@types/bun": "1.4.3",
|
|
72
76
|
"@types/node": "25.9.4",
|
|
73
|
-
"@willbooster/
|
|
74
|
-
"@willbooster/
|
|
75
|
-
"
|
|
76
|
-
"build-ts": "21.0.19",
|
|
77
|
+
"@willbooster/oxlint-config": "1.4.9",
|
|
78
|
+
"@willbooster/wb": "22.29.3",
|
|
79
|
+
"build-ts": "21.0.29",
|
|
77
80
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
78
|
-
"lefthook": "2.
|
|
79
|
-
"
|
|
80
|
-
"oxlint": "
|
|
81
|
-
"oxlint-tsgolint": "7.0.2002",
|
|
81
|
+
"lefthook": "2.2.2",
|
|
82
|
+
"oxlint": "1.88.0",
|
|
83
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
82
84
|
"semantic-release": "25.0.5",
|
|
83
|
-
"sort-package-json": "4.0.0",
|
|
84
|
-
"typescript": "7.0.2",
|
|
85
85
|
"vitest": "4.1.9",
|
|
86
86
|
"wrangler": "4.135.0"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=24"
|
|
90
90
|
},
|
|
91
|
-
"publishConfig": {
|
|
92
|
-
"access": "public",
|
|
93
|
-
"registry": "https://registry.npmjs.org/"
|
|
94
|
-
},
|
|
95
91
|
"optionalDependencies": {
|
|
96
|
-
"code-gauge-linux-x64-gnu": "10.
|
|
97
|
-
"code-gauge-linux-arm64-gnu": "10.
|
|
98
|
-
"code-gauge-linux-x64-musl": "10.
|
|
99
|
-
"code-gauge-linux-arm64-musl": "10.
|
|
100
|
-
"code-gauge-darwin-x64": "10.
|
|
101
|
-
"code-gauge-darwin-arm64": "10.
|
|
102
|
-
"code-gauge-win32-x64-msvc": "10.
|
|
92
|
+
"code-gauge-linux-x64-gnu": "10.3.0",
|
|
93
|
+
"code-gauge-linux-arm64-gnu": "10.3.0",
|
|
94
|
+
"code-gauge-linux-x64-musl": "10.3.0",
|
|
95
|
+
"code-gauge-linux-arm64-musl": "10.3.0",
|
|
96
|
+
"code-gauge-darwin-x64": "10.3.0",
|
|
97
|
+
"code-gauge-darwin-arm64": "10.3.0",
|
|
98
|
+
"code-gauge-win32-x64-msvc": "10.3.0"
|
|
103
99
|
}
|
|
104
100
|
}
|