-
Notifications
You must be signed in to change notification settings - Fork 89
/
package.json
209 lines (209 loc) · 6.23 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
{
"name": "apex-pmd",
"displayName": "Apex PMD",
"description": "PMD static analysis for Salesforce Apex",
"version": "0.8.1-snapshot.0",
"publisher": "chuckjonas",
"author": {
"name": "Charlie Jonas",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.43.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ChuckJonas/vscode-apex-pmd.git"
},
"bugs": {
"url": "https://github.com/ChuckJonas/vscode-apex-pmd/issues"
},
"icon": "images/vscode-apex-pmd.png",
"categories": [
"Linters"
],
"keywords": [
"Salesforce",
"Apex",
"Static Analysis",
"PMD"
],
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "apex-pmd.runWorkspace",
"title": "On Workspace",
"category": "Apex Static Analysis"
},
{
"command": "apex-pmd.runFile",
"title": "On File",
"category": "Apex Static Analysis"
},
{
"command": "apex-pmd.clearProblems",
"title": "Clear Problems",
"category": "Apex Static Analysis"
},
{
"command": "apex-pmd.runFileMenu",
"title": "Static Analysis On File"
}
],
"languages": [
{
"id": "apex",
"extensions": [
".apxc",
".cls",
".trigger"
],
"aliases": [
"Apex"
]
},
{
"id": "visualforce",
"extensions": [
".page",
".component"
],
"aliases": [
"VisualForce",
"Visualforce"
]
}
],
"configuration": {
"type": "object",
"title": "Apex PMD configuration",
"properties": {
"apexPMD.pmdBinPath": {
"type": "string",
"default": "",
"description": "(Optional) Path to where PMD was installed"
},
"apexPMD.rulesets": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "(Optional) Paths to rulesets' xml files."
},
"apexPMD.runOnFileOpen": {
"type": "boolean",
"default": false,
"description": "Will run static analysis every time a file is opened"
},
"apexPMD.runOnFileSave": {
"type": "boolean",
"default": true,
"description": "Will run static analysis every time a file is saved"
},
"apexPMD.runOnFileChange": {
"type": "boolean",
"default": false,
"description": "Will run static analysis every time a file is changed (with a 500ms debounce delay)"
},
"apexPMD.onFileChangeDebounce": {
"type": "integer",
"default": 3000,
"description": "Debounce interval to wait before running pmd after document change. Only applicable if `runOnFileChange == true`"
},
"apexPMD.priorityErrorThreshold": {
"type": "number",
"default": 1,
"description": "Determines at what priority level 'errors' will be added. Anything less will be a warning or hint"
},
"apexPMD.priorityWarnThreshold": {
"type": "number",
"default": 3,
"description": "Determines at what priority level 'warnings' will be added. Anything less will be a hint"
},
"apexPMD.enableCache": {
"type": "boolean",
"default": false,
"description": "Creates a cache file for PMD to run faster. Will create a .pmdCache file in your workspace"
},
"apexPMD.additionalClassPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "(Optional) paths to be appended to classpath. Used to find jar files containing custom rule definitions. Can be absolute or relative to workspace."
},
"apexPMD.commandBufferSize": {
"type": "number",
"default": "64",
"description": "Size of buffer used to collect PMD command output (MB), may need to be increased for very large projects"
},
"apexPMD.jrePath": {
"type": "string",
"description": "(Optional) Path to JRE (Folder that contains which contains `bin/java`)"
}
}
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == 'apex' || resourceLangId == 'visualforce' || resourceLangId == 'xml'",
"command": "apex-pmd.runFileMenu",
"group": "apex-pmd"
}
],
"editor/context": [
{
"when": "resourceLangId == 'apex' || resourceLangId == 'visualforce' || resourceLangId == 'xml'",
"command": "apex-pmd.runFileMenu",
"group": "apex-pmd"
}
]
}
},
"config": {
"pmdVersion": "7.6.0"
},
"scripts": {
"postinstall": "pmd-packager/upgrade.sh",
"postversion": "npm run vscode:package && git push --tags && npm run vscode:publish && git push && echo \"Successfully released version $npm_package_version!\"",
"vscode:package": "npx vsce package --allow-star-activation",
"vscode:publish": "npx vsce publish",
"vscode:prepublish": "npm run build:prod",
"build:prod": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack --mode production",
"build:test": "tsc",
"pretest": "npm run build:prod && npm run build:test",
"update-pmd": "pmd-packager/upgrade.sh latest",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/debounce": "^1.2.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "^10.9.4",
"@types/vscode": "1.43.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"@vscode/test-electron": "^2.3.9",
"cross-env": "^7.0.3",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"mocha": "^10.2.0",
"prettier": "^2.0.5",
"ts-loader": "^8.0.2",
"tslint": "^6.1.3",
"typescript": "^3.8.3",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"csv-parse": "^4.8.5",
"debounce": "^1.2.0"
}
}