-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
297 lines (297 loc) · 9.93 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
{
"name": "vscode-groovy-lint",
"displayName": "Groovy Lint, Format and Fix",
"description": "Lint, format and auto-fix groovy and Jenkinsfile",
"publisher": "NicolasVuillamy",
"version": "3.3.1",
"license": "MIT",
"icon": "icon.png",
"engines": {
"vscode": "^1.75.0",
"node": ">=14.0.0"
},
"scripts": {
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint --ext ts client/src server/src",
"lint:fix": "eslint --ext ts --fix client/src server/src",
"pretest": "run-s compile lint",
"pretest:verbose": "run-s compile lint",
"test": "node ./client/out/test/runTest.js 2>&1 |grep -v :ERROR:",
"test:coverage": "env AUTO_ACCEPT_REPLACE_TABS=activated node ./client/out/test/runTest.js --codecoverage",
"test:debug": "env AUTO_ACCEPT_REPLACE_TABS=activated DEBUG=npm-groovy-lint,vscode-groovy-lint NPM_DEBUG=npm-groovy-lint,vscode-groovy-lint node --inspect-brk ./client/out/test/runTest.js",
"test:verbose": "env AUTO_ACCEPT_REPLACE_TABS=activated DEBUG=vscode-groovy-lint NPM_DEBUG=vscode-groovy-lint node ./client/out/test/runTest.js",
"postinstall": "cd client && npm install --unsafe-perm && cd ../server && npm install --unsafe-perm && cd ..",
"vscode:prepublish": "run-s dev:pre-commit",
"dev:pre-commit": "run-s lint:fix compile && cp -f README.md docs/index.md",
"mocha": "mocha --require ts-node/register --require source-map-support/register --timeout 10000 --recursive ./client/src/test",
"vstest": "vscode-test"
},
"categories": [
"Programming Languages",
"Linters",
"Formatters"
],
"repository": {
"type": "git",
"url": "https://github.com/nvuillam/vscode-groovy-lint"
},
"keywords": [
"groovy",
"lint",
"jenkinsfile",
"codenarc",
"linter",
"npm-groovy-lint",
"auto-fix",
"fix",
"format",
"package",
"wrapper",
"vscode",
"extension"
],
"bugs": {
"url": "https://github.com/nvuillam/vscode-groovy-lint/issues"
},
"homepage": "https://github.com/nvuillam/vscode-groovy-lint#readme",
"badges": [
{
"url": "https://img.shields.io/visual-studio-marketplace/v/NicolasVuillamy.vscode-groovy-lint",
"href": "https://marketplace.visualstudio.com/items?itemName=NicolasVuillamy.vscode-groovy-lint",
"description": "Badge for version for Visual Studio Code extension VsCode Groovy Lint"
},
{
"url": "https://img.shields.io/visual-studio-marketplace/i/NicolasVuillamy.vscode-groovy-lint",
"href": "https://marketplace.visualstudio.com/items?itemName=NicolasVuillamy.vscode-groovy-lint",
"description": "Badge for installs for Visual Studio Code extension VsCode Groovy Lint"
},
{
"url": "https://circleci.com/gh/nvuillam/vscode-groovy-lint/tree/master.svg?style=shield",
"href": "https://circleci.com/gh/nvuillam/vscode-groovy-lint/tree/master",
"description": "CircleCI"
},
{
"url": "https://codecov.io/gh/nvuillam/vscode-groovy-lint/branch/master/graph/badge.svg",
"href": "https://codecov.io/gh/nvuillam/vscode-groovy-lint",
"description": "Code Coverage"
},
{
"url": "https://img.shields.io/github/license/nvuillam/vscode-groovy-lint.svg",
"href": "https://github.com/nvuillam/vscode-groovy-lint/blob/master/LICENSE",
"description": "GitHub license"
},
{
"url": "https://img.shields.io/github/stars/nvuillam/vscode-groovy-lint.svg?label=Star&maxAge=2592000",
"href": "https://GitHub.com/nvuillam/vscode-groovy-lint/stargazers/",
"description": "GitHub stars"
},
{
"url": "https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square",
"href": "https://makeapullrequest.com",
"description": "PRs Welcome"
}
],
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.56.0",
"mocha": "^10.2.0",
"npm-run-all2": "^6.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"activationEvents": [
"onLanguage:groovy",
"onLanguage:jenkinsfile",
"workspaceContains:**/Jenkins*",
"workspaceContains:**/*.nf",
"workspaceContains:**/*.gradle"
],
"main": "./client/out/extension",
"contributes": {
"commands": [
{
"command": "groovyLint.lint",
"title": "Analyze code"
},
{
"command": "groovyLint.lintFix",
"title": "Fix all auto-fixable problems"
},
{
"command": "groovyLint.lintFolder",
"title": "Analyze groovy files in this folder"
}
],
"menus": {
"commandPalette": [
{
"when": "resourceLangId == groovy || resourceLangId == jenkinsfile",
"command": "groovyLint.lint"
},
{
"when": "resourceLangId == groovy || resourceLangId == jenkinsfile",
"command": "groovyLint.lintFix"
},
{
"when": "filesExplorerFocus && explorerResourceIsFolder",
"command": "groovyLint.lintFolder"
}
],
"editor/context": [
{
"when": "resourceLangId == groovy || resourceLangId == jenkinsfile",
"command": "groovyLint.lint",
"group": "navigation"
},
{
"when": "resourceLangId == groovy || resourceLangId == jenkinsfile",
"command": "groovyLint.lintFix",
"group": "navigation"
}
],
"explorer/context": [
{
"command": "groovyLint.lintFolder",
"group": "groovylint",
"when": "filesExplorerFocus && explorerResourceIsFolder"
}
]
},
"keybindings": [
{
"command": "groovyLint.lint",
"key": "ctrl+shift+F9",
"mac": "cmd+shift+F9",
"when": "editorFocus && (resourceLangId == groovy || resourceLangId == jenkinsfile)"
},
{
"command": "groovyLint.lintFix",
"key": "ctrl+shift+F10",
"mac": "cmd+shift+F10",
"when": "editorFocus && (resourceLangId == groovy || resourceLangId == jenkinsfile)"
},
{
"command": "groovyLint.lintFolder",
"key": "ctrl+shift+F11",
"mac": "cmd+shift+F11",
"when": "filesExplorerFocus && explorerResourceIsFolder"
}
],
"configuration": {
"type": "object",
"title": "Groovy Lint",
"properties": {
"groovyLint.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Controls whether GroovyLint is enabled or not."
},
"groovyLint.showProblemsView": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Show Problems View once after start."
},
"groovyLint.lint.trigger": {
"scope": "resource",
"type": "string",
"enum": [
"onSave",
"onType",
"user"
],
"default": "onType",
"description": "Run the linter on type (recommended), on save (if you have a slow config), or after user request"
},
"groovyLint.fix.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables GroovyLint as an error fixer"
},
"groovyLint.fix.trigger": {
"scope": "resource",
"type": "string",
"enum": [
"onSave",
"user"
],
"description": "Fix errors on save (onSave) or after user request (user)",
"default": "user"
},
"groovyLint.format.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enables GroovyLint as a formatter."
},
"groovyLint.format.useDocumentIndentSize": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Use the indent size provided by VsCode (overrides Indentation.spacesPerIndentLevel property in .groovylintrc.json)"
},
"groovyLint.basic.loglevel": {
"scope": "resource",
"type": "string",
"enum": [
"error",
"warning",
"info"
],
"enumDescriptions": [
"Only error messages",
"Error and warning messages",
"Error,Warning and info messages"
],
"default": "info",
"description": "Linting error level"
},
"groovyLint.basic.verbose": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Verbose logs for npm-groovy-lint"
},
"groovyLint.basic.config": {
"scope": "resource",
"type": "string",
"description": "Override Config file to use for linter"
},
"groovyLint.debug.enable": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Display debugging info in output panel"
},
"groovyLint.java.executable": {
"scope": "resource",
"type": "string",
"description": "Path to java executable if you do not want to use system default"
},
"groovyLint.java.options": {
"scope": "resource",
"type": "string",
"description": "Comma separated arguments for java (default \"-Xms256m,-Xmx2048m\")"
},
"groovyLint.insight.enable": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Allow to send anonymous statistics used only to improve the tool (we will of course never receive your code)"
}
}
}
},
"__metadata": {
"id": "32b3756e-9965-4229-8971-4e5066dadc2c",
"publisherDisplayName": "Nicolas Vuillamy",
"publisherId": "fbae1b7a-6fed-4e8e-9cf8-c29a68d1357f",
"isPreReleaseVersion": false
}
}