forked from bitjson/cppcheck-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
285 lines (285 loc) · 8.71 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
{
"name": "cppcheck",
"displayName": "cppcheck",
"description": "Invokes the 'cppcheck' static C++ code analyzer.",
"version": "0.2.2",
"author": "Matthew Ferreira",
"publisher": "matthewferreira",
"license": "MIT",
"icon": "logo.png",
"repository": {
"type": "Git",
"url": "https://github.com/matthewferreira/cppcheck-extension"
},
"engines": {
"vscode": "^1.5.0"
},
"categories": [
"Linters"
],
"activationEvents": [
"*"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "cppcheck.runAnalysis",
"title": "Analyze current file",
"category": "Cppcheck"
},
{
"command": "cppcheck.runAnalysisAllFiles",
"title": "Analyze workspace",
"category": "Cppcheck"
},
{
"command": "cppcheck.showCommands",
"title": "Show commands",
"category": "Cppcheck"
},
{
"command": "cppcheck.readTheManual",
"title": "Read the manual",
"category": "Cppcheck"
}
],
"configuration": {
"type": "object",
"title": "cppcheck",
"properties": {
"cppcheck.enable": {
"type": "boolean",
"default": true,
"description": "Controls whether cppcheck is enabled for C++ files."
},
"cppcheck.cppcheckPath": {
"type": "string",
"default": null,
"description": "The path to the cppcheck executable. If not set, the default location will be used."
},
"cppcheck.includePaths": {
"type": "array",
"default": [],
"description": "Paths to search for include files. They may be relative or absolute."
},
"cppcheck.platform": {
"type": "string",
"enum": [
"unix32",
"unix64",
"win32A",
"win32W",
"win64",
"native"
],
"default": "native",
"description": "The platform used for types and sizes."
},
"cppcheck.standard": {
"type": "array",
"default": [
"c11",
"c++14"
],
"description": "The language standards to check against. Can be one or more of: posix, c89, c99, c11, c++03, c++11, c++14."
},
"cppcheck.define": {
"type": "array",
"default": [],
"description": "Preprocessor symbols to define."
},
"cppcheck.undefine": {
"type": "array",
"default": [],
"description": "Preprocessor symbols to undefine."
},
"cppcheck.suppressions": {
"type": "array",
"default": [],
"description": "Warnings to suppress. Refer to the 'cppcheck' documentation for what to supply here."
},
"cppcheck.verbose": {
"type": "boolean",
"default": false,
"description": "Whether to enable verbose output from 'cppcheck'."
},
"cppcheck.language": {
"type": "string",
"default": "c++",
"enum": [
"c",
"c++"
],
"description": "Force 'cppcheck' to check all files as the given language."
},
"cppcheck.inconclusive": {
"type": "boolean",
"default": false,
"description": "Allow reporting even though analysis is inconclusive. May lead to false positives."
},
"cppcheck.force": {
"type": "boolean",
"default": false,
"description": "Controls whether cppcheck enumerates all possible configurations."
},
"cppcheck.hideProgressMessages": {
"type": "boolean",
"default": false,
"description": "Controls whether progress messages are hidden."
},
"cppcheck.showStatusBarItem": {
"type": "boolean",
"default": true,
"description": "Whether to show a 'Cppcheck' item in the status bar for launching the static analyzer."
},
"cppcheck.showOutputAfterRunning": {
"type": "boolean",
"default": true,
"description": "Whether to show the 'Cppcheck' output channel after running the analyzer."
},
"cppcheck.lintingEnabled": {
"type": "boolean",
"default": false,
"description": "Whether to enable automatic linting for C/C++ code. Linting runs when opening a workspace or saving a file."
},
"cppcheck.outputCommandLine": {
"type": "boolean",
"default": false,
"description": "Whether to output the command line used to invoke Cppcheck."
},
"cppcheck.allowInlineSuppressions": {
"type": "boolean",
"default": true,
"description": "Enable inline suppressions."
},
"cppcheck.projectFile": {
"type": "string",
"default": "",
"description": "Analyzes CMake or Visual Studio projects."
},
"cppcheck.severityLevels": {
"type": "object",
"description": "Maps the severity levels of cppcheck to VSCode severity levels (Error, Warning, Information, Hint). Setting to 'None' will not show the severity type at all.",
"default": {
"error": "Error",
"warning": "Warning",
"style": "Information",
"performance": "Warning",
"portability": "Warning",
"information": "Information"
},
"properties": {
"error": {
"description": "Used when major issues are found.",
"type": "string",
"default": "Error",
"enum": [
"Error",
"Warning",
"Hint",
"Information",
"None"
]
},
"warning": {
"description": "Suggestions about defensive programming to prevent potential issues.",
"type": "string",
"default": "Warning",
"enum": [
"Error",
"Warning",
"Hint",
"Information",
"None"
]
},
"style": {
"description": "Stylistic issues related to code cleanup such as unused functions, redundant code, constness, etc.",
"type": "string",
"default": "Information",
"enum": [
"Error",
"Warning",
"Hint",
"Information",
"None"
]
},
"performance": {
"description": "Suggestions for making the code faster. These suggestions only and may not increase execution speed.",
"type": "string",
"default": "Warning",
"enum": [
"Error",
"Warning",
"Hint",
"Information",
"None"
]
},
"portability": {
"description": "Warnings about 64-bit and compiler portability.",
"type": "string",
"default": "Warning",
"enum": [
"Error",
"Warning",
"Hint",
"Information",
"None"
]
},
"information": {
"description": "Minor issues that do not fit into other categories.",
"type": "string",
"default": "Information",
"enum": [
"Error",
"Warning",
"Hint",
"Information",
"None"
]
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -p ./",
"build": "npm run compile",
"build:watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"pkgvars": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/lodash": "^4.14.66",
"@types/mocha": "^2.2.41",
"@types/node": "^8.0.2",
"@types/opn": "^3.0.28",
"@types/uuid": "^3.0.0",
"@types/xml2js": "^0.4.0",
"eslint": "^4.1.1",
"mocha": "^3.4.2",
"tslint": "^5.4.3",
"typescript": "^2.4.1",
"vscode": "^1.1.1"
},
"dependencies": {
"child_process": "^1.0.2",
"fs": "0.0.1-security",
"inversify": "^4.1.1",
"lodash": "^4.17.4",
"opn": "^5.1.0",
"os": "^0.1.1",
"reflect-metadata": "^0.1.10",
"slash": "^1.0.0",
"uuid": "^3.1.0",
"var-expansion": "^0.1.0",
"xml2js": "^0.4.17"
}
}