-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
109 lines (109 loc) · 3.71 KB
/
package.json
File metadata and controls
109 lines (109 loc) · 3.71 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
{
"name": "greatwallbeian",
"displayName": "GreatWallBeian",
"description": "代码备案合规检查工具",
"version": "1.1.8",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Linters"
],
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "greatwallbeian.checkNow",
"title": "GreatWall Beian: 立即执行合规扫描"
},
{
"command": "greatwallbeian.addToBeian",
"title": "GreatWall Beian: 为该元素备案"
}
],
"configuration": {
"title": "GreatWall Beian",
"properties": {
"greatwallbeian.configFilePath": {
"type": "string",
"default": ".vscode/beian.json",
"description": "备案配置文件的相对路径(工作区模式下相对于根目录,单文件模式下相对于文件目录)。"
},
"greatwallbeian.ignoreKeywords": {
"type": "array",
"default": [
"True",
"False",
"None",
"String",
"Object",
"Array",
"Boolean",
"Number",
"INT",
"VOID",
"ID"
],
"description": "需要忽略的系统关键字(不会被标记为未备案)。针对 Python 建议包含 True, False, None。"
},
"greatwallbeian.errorNotRegistered": {
"type": "string",
"default": "元素 \"{typeName}\" 无法使用,可能是因为未备案或未接入备案系统。根据相关要求,所有境内运行的软件元素均需备案。如有疑问,请联系管理员。",
"description": "当元素完全没有备案记录时显示的错误信息。"
},
"greatwallbeian.errorTampered": {
"type": "string",
"default": "元素 \"{typeName}\" 校验哈希不匹配!备案记录可能已被篡改。",
"description": "当找到备案记录但哈希值对不上时显示的错误信息。"
},
"greatwallbeian.diagnosticSource": {
"type": "string",
"default": "GreatWall-Security",
"description": "错误波浪线显示的来源名称。"
},
"greatwallbeian.diagnosticCode": {
"type": "string",
"default": "MUST_FILED",
"description": "诊断信息的内部错误代码标识。"
},
"greatwallbeian.stopTaskMessage": {
"type": "string",
"default": "任务:\"{actionName}\"已停止运行。检测到未备案或篡改的元素,已停止当前任务以防止潜在风险。请在问题列表中查看没有备案的元素。如有疑问,请联系管理员。",
"description": "当检测到未备案或篡改元素时,终止当前任务所显示的信息。"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "node esbuild.js",
"watch": "node esbuild.js --watch",
"package": "node esbuild.js --production",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test",
"watch:tsc": "npm run watch",
"watch:esbuild": "node esbuild.js --watch",
"deploy": "vsce publish && ovsx publish -p $OVSX_PAT"
},
"devDependencies": {
"@types/vscode": "^1.90.0",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"typescript-eslint": "^8.52.0",
"eslint": "^9.39.2",
"esbuild": "^0.27.2",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2"
},
"publisher": "Valency",
"repository": {
"type": "git",
"url": "https://github.com/ValencyProjectTeam/greatwallbeian"
}
}