-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
117 lines (117 loc) · 3.81 KB
/
package.json
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
{
"name": "solidity-metrics",
"displayName": "Solidity Metrics",
"description": "Solidity Metrics",
"version": "0.0.25",
"keywords": [
"code",
"metrics",
"solidity",
"ethereum",
"summary",
"exploration",
"complexity",
"risk",
"vscode"
],
"publisher": "tintinweb",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.40.2"
},
"categories": [
"Other"
],
"bugs": {
"url": "https://github.com/ConsenSys/vscode-solidity-metrics/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/ConsenSys/vscode-solidity-metrics"
},
"main": "./src/extension.js",
"activationEvents": [
"onCommand:solidity-metrics.workspace.report",
"onCommand:solidity-metrics.contextMenu.report",
"onCommand:solidity-metrics.activeFile.report",
"onCommand:solidity-metrics.activeFile.exportHtml",
"onCommand:solidity-metrics.useScopeFile"
],
"contributes": {
"commands": [
{
"command": "solidity-metrics.workspace.report",
"title": "Report metrics for all open workspaces",
"category": "Solidity Metrics"
},
{
"command": "solidity-metrics.activeFile.report",
"title": "Report metrics for current file",
"category": "Solidity Metrics"
},
{
"command": "solidity-metrics.activeFile.exportHtml",
"title": "Export This Metrics Report",
"category": "Solidity Metrics"
},
{
"command": "solidity-metrics.contextMenu.report",
"title": "Solidity: Metrics",
"category": "Solidity Metrics"
},
{
"command": "solidity-metrics.useScopeFile",
"title": "Analyze Solidity Using Scope File",
"category": "Solidity Metrics"
}
],
"configuration": {
"type": "object",
"title": "Solidity Metrics",
"properties": {
"solidity-metrics.file.exclusions.glob": {
"type": "string",
"default": "{**/node_modules,**/mock*,**/test*,**/migrations,**/Migrations.sol}",
"description": "VSCode.glob list of paths to ignore in the analysis. '{<glob>,<glob>,<glob>}'"
},
"solidity-metrics.file.limit": {
"type": "integer",
"default": 2000,
"description": "Maximum number of files to process in the workspace"
},
"solidity-metrics.scopefile.name": {
"type": "string",
"default": "scope.txt",
"description": "Default scope file name"
}
}
},
"menus": {
"explorer/context": [
{
"command": "solidity-metrics.contextMenu.report",
"group": "solidity"
}
],
"editor/title/context": [
{
"command": "solidity-metrics.activeFile.exportHtml",
"group": "solidity",
"when": "metricsReportActiveContext"
}
]
}
},
"scripts": {
"build:web": "webpack --entry ./websrc/main.js -o ./content/ --mode='production'",
"format": "prettier --write \"src/**/*.{js,ts,json,css}\""
},
"dependencies": {
"solidity-code-metrics": "^0.0.28"
},
"devDependencies": {
"prettier": "^3.2.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.0.1"
}
}