-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
124 lines (124 loc) · 3.46 KB
/
package.json
File metadata and controls
124 lines (124 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"name": "code-metrics",
"displayName": "Code Complexity Metrics",
"description": "A comprehensive Visual Studio Code extension that calculates and displays code metrics including Cognitive Complexity based on SonarSource's specification.",
"version": "0.2.0",
"publisher": "dev-asilva",
"preview": true,
"repository": {
"type": "git",
"url": "https://github.com/askpt/code-metrics.git"
},
"bugs": {
"url": "https://github.com/askpt/code-metrics/issues"
},
"icon": "resources/icon.png",
"sponsor": {
"url": "https://github.com/sponsors/askpt"
},
"engines": {
"vscode": "^1.106.0"
},
"keywords": [
"complexity",
"cognitive complexity",
"code metrics",
"code quality",
"typescript",
"javascript",
"csharp",
"go",
"golang",
"metrics"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:csharp",
"onLanguage:go"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "cognitiveComplexity.showFunctionDetails",
"title": "Show Function Complexity Details"
}
],
"configuration": {
"title": "Code Metrics",
"properties": {
"codeMetrics.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable the code metrics extension"
},
"codeMetrics.showCodeLens": {
"type": "boolean",
"default": true,
"description": "Show code metrics information as CodeLens above functions"
},
"codeMetrics.warningThreshold": {
"type": "number",
"default": 10,
"minimum": 1,
"description": "Metrics threshold for showing warning status (yellow indicator)"
},
"codeMetrics.errorThreshold": {
"type": "number",
"default": 15,
"minimum": 1,
"description": "Metrics threshold for showing error status (red indicator)"
},
"codeMetrics.excludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/out/**",
"**/*.min.js",
"**/*.spec.*",
"**/*.test.*"
],
"description": "Glob patterns for files to exclude from metrics analysis"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test",
"test:vscode": "vscode-test",
"test:unit": "npm run compile && c8 --config .c8rc.json mocha out/unit/unit.test.js",
"test:coverage": "npm run compile && npm run lint && c8 --config .c8rc.json mocha out/unit/unit.test.js && vscode-test",
"deploy": "vsce publish"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^22.18.0",
"@types/vscode": "^1.106.1",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"c8": "^11.0.0",
"eslint": "^10.0.3",
"mocha": "^11.7.5",
"typescript": "^5.9.3"
},
"dependencies": {
"tree-sitter": "^0.21.1",
"tree-sitter-c-sharp": "^0.23.1",
"tree-sitter-go": "^0.21.0"
}
}