-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
397 lines (397 loc) · 12.2 KB
/
Copy pathpackage.json
File metadata and controls
397 lines (397 loc) · 12.2 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
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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
{
"name": "cfmleditor-lint",
"displayName": "CFML Editor Linter",
"description": "CFML Editor Linter",
"version": "0.7.0",
"author": "cfmleditor",
"publisher": "cfmleditor",
"license": "MIT",
"extensionDependencies": [
"cfmleditor.cfmleditor"
],
"engines": {
"vscode": "^1.99.3"
},
"repository": {
"type": "git",
"url": "https://github.com/cfmleditor/cfmleditor-lint.git"
},
"bugs": {
"url": "https://github.com/cfmleditor/cfmleditor-lint/issues"
},
"categories": [
"Linters"
],
"keywords": [
"coldfusion",
"cfml",
"cflint"
],
"icon": "images/icon2x.png",
"activationEvents": [
"onLanguage:cfml",
"workspaceContains:**/*.cfm",
"workspaceContains:**/*.cfml",
"workspaceContains:**/*.cfc"
],
"main": "./dist/extension.js",
"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.cflintDebug": {
"description": "Debug output for CFLint.",
"type": "boolean",
"default": false,
"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"
},
"cflint.quickfix.var": {
"description": "Whether to allow quick fix to add var a variable.",
"type": "boolean",
"default": true,
"scope": "window"
},
"cflint.quickfix.local": {
"description": "Whether to allow quick fix to add local. to a variable.",
"type": "boolean",
"default": true,
"scope": "window"
},
"cflint.quickfix.ignoreLine": {
"description": "Whether to allow quick fix to add an ignore line rule.",
"type": "boolean",
"default": false,
"scope": "window"
},
"cflint.quickfix.excludeRule": {
"description": "Whether to allow quick fix to exclude the rule in the .cflintrc file",
"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": "Manually run CFLint on current workspace",
"category": "CFLint",
"command": "cflint.runLinterWorkspace",
"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": "npm run check-types && node esbuild.js",
"rebuild": "npm run clean && npm run build",
"check-types": "tsc --noEmit",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"vscode:prepublish": "npm run package",
"lint": "eslint src",
"package": "npm run check-types && node esbuild.js --production",
"pack": "vsce package",
"publish": "vsce publish",
"watch:tests": "tsc --build --watch",
"build-tests": "tsc --build",
"pretest": "npm run build-tests && npm run build ",
"test": "vscode-test"
},
"dependencies": {
"@octokit/rest": "^22.0.1",
"@vscode/test-cli": "^0.0.11",
"change-case-all": "^2.1.0",
"micromatch": "^4.0.8",
"semver": "^7.7.4",
"vscode-languageserver-textdocument": "^1.0.12",
"vscode-languageserver-types": "^3.17.5",
"vscode-uri": "^3.1.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/micromatch": "4.0.10",
"@types/mocha": "^10.0.10",
"@types/node": "^25.5.0",
"@types/semver": "^7.7.1",
"@types/vscode": "^1.110.0",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/test-web": "^0.0.80",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.4",
"eslint": "^10.1.0",
"eslint-plugin-jsdoc": "^62.8.1",
"mocha": "^11.3.0",
"npm-run-all": "^4.1.5",
"rimraf": "^6.1.3",
"typescript": "^6.0.2"
}
}