forked from ChuckJonas/vscode-apex-pmd
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
175 lines (175 loc) · 5.47 KB
/
Copy pathpackage.json
File metadata and controls
175 lines (175 loc) · 5.47 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
{
"name": "pmd-java",
"displayName": "PMD for Java",
"description": "PMD static analysis for Java",
"version": "0.7.3",
"publisher": "cracrayol",
"license": "MIT",
"author": {
"name": "cracrayol",
"email": "contact@cracrayol.org"
},
"engines": {
"vscode": "^1.43.0"
},
"repository": {
"type": "git",
"url": "https://github.com/cracrayol/vscode-java-pmd.git"
},
"bugs": {
"url": "https://github.com/cracrayol/vscode-java-pmd/issues"
},
"icon": "images/vscode-java-pmd.png",
"categories": [
"Linters"
],
"keywords": [
"Java",
"Static Analysis",
"PMD"
],
"activationEvents": [
"onLanguage:java"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "java-pmd.runWorkspace",
"title": "Static analysis on workspace",
"category": "PMD for Java"
},
{
"command": "java-pmd.runFile",
"title": "Static analysis on file",
"category": "PMD for Java"
},
{
"command": "java-pmd.clearProblems",
"title": "Clear problems",
"category": "PMD for Java"
}
],
"configuration": {
"type": "object",
"title": "PMD for Java configuration",
"properties": {
"javaPMD.pmdBinPath": {
"type": "string",
"default": "",
"description": "(Optional) Path to where PMD was installed"
},
"javaPMD.rulesets": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "(Optional) Paths to rulesets' xml files."
},
"javaPMD.runOnFileOpen": {
"type": "boolean",
"default": false,
"description": "Will run static analysis every time a file is opened"
},
"javaPMD.runOnFileSave": {
"type": "boolean",
"default": true,
"description": "Will run static analysis every time a file is saved"
},
"javaPMD.runOnFileChange": {
"type": "boolean",
"default": false,
"description": "Will run static analysis every time a file is changed (with a 500ms debounce delay)"
},
"javaPMD.onFileChangeDebounce": {
"type": "integer",
"default": 3000,
"description": "Debounce interval to wait before running pmd after document change. Only applicable if `runOnFileChange == true`"
},
"javaPMD.priorityErrorThreshold": {
"type": "number",
"default": 1,
"description": "Determines at what priority level 'errors' will be added. Anything less will be a warning or hint"
},
"javaPMD.priorityWarnThreshold": {
"type": "number",
"default": 3,
"description": "Determines at what priority level 'warnings' will be added. Anything less will be a hint"
},
"javaPMD.enableCache": {
"type": "boolean",
"default": false,
"description": "Creates a cache file for PMD to run faster. Will create a .pmdCache file in your workspace"
},
"javaPMD.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."
},
"javaPMD.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"
},
"javaPMD.jrePath": {
"type": "string",
"description": "(Optional) Path to JRE (Folder that contains which contains `bin/java`)"
}
}
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == 'java'",
"command": "java-pmd.runFile",
"group": "java-pmd"
}
],
"editor/context": [
{
"when": "resourceLangId == 'java'",
"command": "java-pmd.runFile",
"group": "java-pmd"
}
]
}
},
"scripts": {
"postversion": "npm run vscode:package && git push --tags && npm run vscode:publish && git push && echo \"Successfully released version $npm_package_version!\"",
"vscode:package": "npx @vscode/vsce package --allow-star-activation",
"vscode:publish": "npx @vscode/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": "cd pmd-packager && ./upgrade.sh",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/debounce": "^1.2.1",
"@types/glob": "^7.2.0",
"@types/mocha": "^10.0.1",
"@types/node": "^16.11.7",
"@types/vscode": "^1.43.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@vscode/test-electron": "^2.3.4",
"cross-env": "^7.0.3",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.2.0",
"prettier": "^2.6.0",
"ts-loader": "^9.2.8",
"typescript": "^4.6.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"debounce": "^1.2.1"
}
}