forked from ChuckJonas/vscode-apex-pmd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
163 lines (163 loc) · 5.11 KB
/
package.json
File metadata and controls
163 lines (163 loc) · 5.11 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
{
"name": "apex-pmd",
"displayName": "Apex PMD",
"description": "PMD static analysis for Salesforce Apex",
"version": "0.2.1",
"publisher": "chuckjonas",
"author": {
"name": "Charlie Jonas",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.22.0",
"node": "^5.10.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/apex-pmd-icon.png",
"categories": [
"Linters"
],
"keywords": [
"Salesforce",
"Apex",
"Static Analysis",
"PMD"
],
"activationEvents": [
"*"
],
"main": "./out/src/extension",
"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"
}
],
"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.rulesetPath": {
"type": "string",
"default": "",
"description": "path to ruleset xml file. Must also set `useDefaultRuleset:false`."
},
"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.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.showErrors": {
"type": "boolean",
"default": true,
"description": "Show errors in output window"
},
"apexPMD.showStdOut": {
"type": "boolean",
"default": false,
"description": "Show showStdOut in output window"
},
"apexPMD.showStdErr": {
"type": "boolean",
"default": false,
"description": "Show showStdErr in output window"
}
}
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == 'apex'",
"command": "apex-pmd.runFile",
"group": "apex-pmd"
}
],
"editor/context": [
{
"when": "resourceLangId == 'apex'",
"command": "apex-pmd.runFile",
"group": "apex-pmd"
}
]
}
},
"scripts": {
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"vscode:prepublish": "tsc -p ./",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^10.9.4",
"mocha": "^5.2.0",
"typescript": "^3.0.3",
"vscode": "^1.1.17",
"@types/csv-parse": "^1.1.11"
},
"dependencies": {
"csv-parse": "^3.0.0"
}
}