-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
346 lines (346 loc) · 12.9 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
{
"name": "vscode-cflint",
"displayName": "CFLint",
"description": "CFLint for Visual Studio Code",
"version": "0.3.6",
"author": "KamasamaK",
"publisher": "KamasamaK",
"license": "MIT",
"engines": {
"vscode": "^1.66.2"
},
"repository": {
"type": "git",
"url": "https://github.com/KamasamaK/vscode-cflint.git"
},
"bugs": {
"url": "https://github.com/KamasamaK/vscode-cflint/issues"
},
"categories": [
"Linters"
],
"keywords": [
"coldfusion",
"cfml",
"cflint"
],
"icon": "images/icon.png",
"activationEvents": [
"onLanguage:cfml",
"workspaceContains:**/*.cfm",
"workspaceContains:**/*.cfml",
"workspaceContains:**/*.cfc",
"onCommand:cflint.enable",
"onCommand:cflint.disable",
"onCommand:cflint.runLinter"
],
"main": "./out/src/extension",
"capabilities": {
"virtualWorkspaces": {
"supported": false,
"description": "Using CFLint is not possible in virtual workspaces."
},
"untrustedWorkspaces": {
"supported": false,
"description": "The extension requires workspace trust because it loads configuration files and code from the workspace and executes it."
}
},
"contributes": {
"configuration": {
"id": "cflint",
"type": "object",
"title": "CFLint",
"properties": {
"cflint.enabled": {
"description": "Controls whether linting is enabled for CFML files.",
"type": "boolean",
"default": true,
"scope": "resource"
},
"cflint.javaPath": {
"description": "Overrides the Java executable that is used to run CFLint.",
"type": [
"string",
"null"
],
"default": null,
"scope": "machine-overridable"
},
"cflint.jarPath": {
"description": "A path to the CFLint standalone JAR file (CFLint-*-all.jar).",
"type": "string",
"default": "",
"scope": "machine-overridable"
},
"cflint.outputDirectory": {
"description": "A directory in which to place output files when invoking one of the output commands",
"type": "string",
"default": "",
"scope": "resource"
},
"cflint.exclude": {
"description": "Glob patterns for excluding files and folders. The pattern is based on the workspace folder being the root.",
"type": "array",
"items": {
"description": "A glob pattern for excluding files and folders.",
"type": "string"
},
"default": [],
"scope": "resource"
},
"cflint.runModes": {
"description": "When to run the linter.",
"type": "object",
"properties": {
"onOpen": {
"type": "boolean",
"default": true,
"description": "Whether to run the linter on opening a CFML file."
},
"onSave": {
"type": "boolean",
"default": true,
"description": "Whether to run the linter on saving a CFML file."
},
"onChange": {
"type": "boolean",
"default": false,
"description": "Whether to run the linter on any change to a CFML file."
}
},
"required": [
"onOpen",
"onSave",
"onChange"
],
"default": {
"onOpen": true,
"onSave": true,
"onChange": false
},
"scope": "resource"
},
"cflint.typingDelay": {
"description": "The number of milliseconds to wait for typing to stop until linting. Only valid when runModes.onChange is true.",
"type": "number",
"default": 700,
"minimum": 200,
"scope": "resource"
},
"cflint.linterCooldown": {
"description": "The minimum number of milliseconds to wait between running the linter on a document.",
"type": "number",
"default": 5000,
"minimum": 500,
"scope": "resource"
},
"cflint.maxSimultaneousLints": {
"description": "The maximum number of simultaneously running lints.",
"type": "number",
"default": 3,
"minimum": 1,
"scope": "resource"
},
"cflint.altConfigFile.path": {
"description": "The path to an alternate rule configuration file.",
"type": "string",
"default": "",
"scope": "machine-overridable"
},
"cflint.altConfigFile.usage": {
"description": "Usage of the rule config file from cflint.altConfigFile.\nfallback: Use only if no rule config is found for document being linted.\nalways: Always use.",
"type": "string",
"enum": [
"fallback",
"always"
],
"enumDescriptions": [
"Use only if no rule config is found for document being linted",
"Always use"
],
"default": "fallback",
"scope": "resource"
},
"cflint.ignoreInfo": {
"description": "Whether to report issues with Info severity as problems.",
"type": "boolean",
"default": false,
"scope": "resource"
},
"cflint.ignoreWarnings": {
"description": "Whether to report issues with Warning severity as problems.",
"type": "boolean",
"default": false,
"scope": "resource"
},
"cflint.notify.latestVersion": {
"description": "Whether to notify when there is a newer version available.",
"type": "boolean",
"default": true,
"scope": "window"
}
}
},
"commands": [
{
"title": "Enable CFLint for this workspace",
"category": "CFLint",
"command": "cflint.enable"
},
{
"title": "Disable CFLint for this workspace",
"category": "CFLint",
"command": "cflint.disable"
},
{
"title": "Manually run CFLint on currently active file",
"category": "CFLint",
"command": "cflint.runLinter",
"icon": "$(run)"
},
{
"title": "Create '.cflintrc' file in the root of the current working directory",
"category": "CFLint",
"command": "cflint.createRootConfig",
"icon": "$(new-file)"
},
{
"title": "Open '.cflintrc' file in the root of the current working directory",
"category": "CFLint",
"command": "cflint.openRootConfig",
"icon": "$(go-to-file)"
},
{
"title": "Create '.cflintrc' file in the current working directory",
"category": "CFLint",
"command": "cflint.createCwdConfig",
"icon": "$(new-file)"
},
{
"title": "Open '.cflintrc' file for currently active document",
"category": "CFLint",
"command": "cflint.openActiveConfig",
"icon": "$(go-to-file)"
},
{
"title": "Clear CFLint problems for active document",
"category": "CFLint",
"command": "cflint.clearActiveDocumentProblems",
"icon": "$(clear-all)"
},
{
"title": "Clear all CFLint problems",
"category": "CFLint",
"command": "cflint.clearAllProblems",
"icon": "$(clear-all)"
},
{
"title": "View CFLint rules documentation",
"category": "CFLint",
"command": "cflint.viewRulesDoc",
"icon": "$(open-preview)"
},
{
"title": "Output CFLint text file for currently active document",
"category": "CFLint",
"command": "cflint.outputTextFile",
"icon": "$(output)"
},
{
"title": "Output CFLint HTML file for currently active document",
"category": "CFLint",
"command": "cflint.outputHtmlFile",
"icon": "$(file-code)"
},
{
"title": "Output CFLint JSON file for currently active document",
"category": "CFLint",
"command": "cflint.outputJsonFile",
"icon": "$(json)"
},
{
"title": "Output CFLint XML file for currently active document",
"category": "CFLint",
"command": "cflint.outputXmlFile",
"icon": "$(file-code)"
}
],
"menus": {
"commandPalette": [
{
"command": "cflint.runLinter",
"when": "editorLangId == cfml"
},
{
"command": "cflint.openActiveConfig",
"when": "editorLangId == cfml"
},
{
"command": "cflint.clearActiveDocumentProblems",
"when": "editorLangId == cfml"
},
{
"command": "cflint.outputTextFile",
"when": "editorLangId == cfml"
},
{
"command": "cflint.outputHtmlFile",
"when": "editorLangId == cfml"
},
{
"command": "cflint.outputJsonFile",
"when": "editorLangId == cfml"
},
{
"command": "cflint.outputXmlFile",
"when": "editorLangId == cfml"
}
]
},
"jsonValidation": [
{
"fileMatch": "cflint-result.json",
"url": "./resources/schemas/cflint-result.schema.json"
},
{
"fileMatch": ".cflintrc",
"url": "./resources/schemas/.cflintrc.schema.json"
}
]
},
"scripts": {
"clean": "rimraf out *.vsix",
"build": "tsc -p ./",
"rebuild": "npm run clean && npm run build",
"watch": "tsc -watch -p ./",
"pack": "vsce package",
"lint": "eslint -c .eslintrc.js --ext .ts src/*.ts",
"vscode:prepublish": "npm run build"
},
"dependencies": {
"@octokit/rest": "~18.12.0",
"findup-sync": "5.0.0",
"micromatch": "4.0.5",
"semver": "~7.3.7",
"camelcase": "6.3.0",
"uppercamelcase": "3.0.0"
},
"devDependencies": {
"@types/findup-sync": "4.0.2",
"@types/semver": "~7.3.9",
"@types/uppercamelcase": "3.0.0",
"@types/micromatch": "4.0.2",
"@types/mocha": "~9.1.0",
"@types/node": "~16.11.26",
"@types/vscode": "~1.66.0",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"eslint": "^8.13.0",
"eslint-plugin-jsdoc": "^39.2.1",
"mocha": "~9.2.2",
"rimraf": "^3.0.2",
"typescript": "^4.6.3",
"vsce": "^2.7.0",
"vscode-test": "^1.6.1"
}
}