-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
226 lines (226 loc) · 6.57 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
"name": "spectral-checkpoint-vscode-extension",
"displayName": "SpectralOps - A CheckPoint Solution",
"description": "Monitor your code for exposed API keys, tokens, credentials, and high-risk security misconfigurations",
"version": "1.1.2",
"publisher": "CheckPoint",
"icon": "media/spectral.png",
"homepage": "https://spectralops.io/",
"repository": {
"type": "git",
"url": "https://github.com/SpectralOps/vscode-extension"
},
"engines": {
"vscode": "^1.59.0"
},
"license": "MIT",
"categories": [
"Linters",
"Programming Languages",
"Other"
],
"keywords": [
"Code Analysis",
"JavaScript",
"Java",
"TypeScript",
"ts",
"Vue",
"Angular",
"React",
"Static Code Analysis",
"Code security",
"Python"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"types": "./out/extension.d.ts",
"contributes": {
"commands": [
{
"command": "spectral.scan",
"title": "Spectral scan",
"icon": "$(refresh)",
"category": "Spectral"
},
{
"command": "spectral.install",
"title": "Install Spectral"
},
{
"command": "spectral.showOutput",
"title": "Show Output Channel"
},
{
"command": "spectral.setDsn",
"title": "Spectral Set DSN",
"icon": "$(settings-gear)",
"category": "Spectral"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "spectral",
"title": "Spectral",
"icon": "media/spectral.svg"
}
]
},
"views": {
"spectral": [
{
"id": "spectral.views.welcome",
"name": "Spectral",
"when": "spectral:preScan && !spectral:scanState"
},
{
"id": "spectral.views.scanState",
"name": "",
"when": "spectral:scanState && spectral:scanState == 'failed' || spectral:scanState == 'inProgress' && spectral:preScan"
},
{
"id": "spectral.views.secrets",
"name": "Secrets",
"when": "spectral:scanState == 'success' || spectral:scanState == 'inProgress' && !spectral:preScan"
},
{
"id": "spectral.views.iac",
"name": "IaC",
"when": "spectral:scanState == 'success' || spectral:scanState == 'inProgress' && !spectral:preScan"
},
{
"id": "spectral.views.oss",
"name": "Open Source",
"when": "spectral:scanState == 'success' || spectral:scanState == 'inProgress' && !spectral:preScan"
}
]
},
"viewsWelcome": [
{
"view": "spectral.views.welcome",
"contents": "Welcome to Spectral for Visual Studio Code. \nOpen a workspace or a folder to start scanning by clicking on the button below to perform a scan on your workspace. \n[Scan now](command:spectral.scan)\n",
"when": "spectral:hasSpectralInstalled && spectral:hasDsn || spectral:hasLicense"
},
{
"view": "spectral.views.welcome",
"contents": "Welcome to Spectral for Visual Studio Code. We noticed that Spectral is not installed on your machine. \n[Install Spectral](command:spectral.install)\n \nYou can also refer to our docs for more details on [how to install Spectral manually](https://guides.spectralops.io/docs/how-to-get-started)",
"when": "!spectral:hasSpectralInstalled"
},
{
"view": "spectral.views.welcome",
"contents": "Welcome to Spectral for Visual Studio Code.\n Grab your Spectral DSN from SpectralOps platform and set it here: \n [Set DSN](command:spectral.setDsn)\n",
"when": "!spectral:hasDsn && !spectral:hasLicense && spectral:hasSpectralInstalled"
},
{
"view": "spectral.views.scanState",
"contents": "Something went wrong, please refer to output for more details. \n [Show Output Channel](command:spectral.showOutput)\n",
"when": "spectral:scanState == 'failed'"
},
{
"view": "spectral.views.scanState",
"contents": "Spectral is performing a scan on your workspace",
"when": "spectral:scanState == 'inProgress' && spectral:preScan"
}
],
"menus": {
"view/title": [
{
"command": "spectral.scan",
"when": "view == spectral.views.secrets || view == spectral.views.scanState",
"group": "navigation"
},
{
"command": "spectral.setDsn",
"when": "view == spectral.views.secrets || view == spectral.views.welcome || view == spectral.views.scanState && spectral:hasSpectralInstalled || spectral:hasLicense",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "spectral.scan",
"when": "spectral:hasSpectralInstalled && spectral:hasDsn || spectral:hasLicense"
},
{
"command": "spectral.setDsn",
"when": "spectral:hasSpectralInstalled"
}
]
},
"configuration": {
"type": "object",
"title": "Spectral",
"properties": {
"spectral.scan.engines.useSecretsEngine": {
"type": "boolean",
"default": true,
"description": "Scan for secrets",
"scope": "window"
},
"spectral.scan.engines.useIacEngine": {
"type": "boolean",
"default": false,
"description": "Scan for infrastructure as code",
"scope": "window"
},
"spectral.scan.engines.useOssEngine": {
"type": "boolean",
"default": false,
"description": "Scan open source packages",
"scope": "window"
},
"spectral.scan.includeTags": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 100,
"default": [],
"description": "Scan include tags",
"scope": "window"
},
"spectral.install.autoUpdate": {
"type": "boolean",
"default": true,
"description": "Auto update Spectral agent",
"scope": "window"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn esbuild-base --minify",
"esbuild-base": "rimraf out && esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "yarn esbuild-base --sourcemap",
"esbuild-watch": "yarn esbuild-base --sourcemap --watch",
"build": "rimraf out && tsc -p ./",
"pretest": "yarn run build && yarn run lint",
"lint": "eslint src --ext ts",
"test:unit": "yarn build && mocha --ui tdd -c 'out/src/test/unit/**/*.test.js'",
"test:integration": "node ./out/test/integration/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.184",
"@types/mocha": "8.2.2",
"@types/node": "14.x",
"@types/vscode": "^1.59.0",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^4.26.0",
"esbuild": "^0.15.7",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"glob": "^7.1.7",
"mocha": "^10.0.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"typescript": "^4.3.2"
},
"dependencies": {
"lodash": "^4.17.21",
"mixpanel": "^0.17.0"
}
}