forked from SonarSource/sonarlint-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
227 lines (227 loc) · 8.67 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
{
"name": "sonarlint-vscode",
"displayName": "SonarLint",
"description": "SonarLint is an IDE extension that helps you detect and fix quality issues as you write code in JavaScript, TypeScript, Python and PHP.",
"version": "1.11.0-SNAPSHOT",
"icon": "images/sonarlint_wave_128px.png",
"publisher": "SonarSource",
"homepage": "http://www.sonarlint.org",
"repository": {
"type": "git",
"url": "https://github.com/SonarSource/sonarlint-vscode.git"
},
"bugs": {
"url": "https://jira.sonarsource.com/browse/SLVSCODE"
},
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
"vscode": "^1.36.0"
},
"categories": [
"Linters"
],
"keywords": [
"code analysis",
"linters"
],
"qna": "https://community.sonarsource.com/c/help/sl",
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:python",
"onLanguage:php",
"onLanguage:vue",
"onLanguage:html",
"onLanguage:jsp",
"onLanguage:apex",
"onLanguage:plsql",
"onCommand:sonarlint.updateServersAndBinding"
],
"extensionDependency": [
"typescript"
],
"contributes": {
"configuration": {
"type": "object",
"title": "SonarLint",
"properties": {
"sonarlint.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the SonarLint language server.",
"scope": "window"
},
"sonarlint.testFilePattern": {
"type": "string",
"default": "{**/test/**,**/*test*,**/*Test*}",
"markdownDescription": "Files whose name match this [glob pattern](https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob) are considered as test files by analyzers. Most rules are *not* evaluated on test files."
},
"sonarlint.analyzerProperties": {
"type": "object",
"patternProperties": {
"^.*$": {
"type": "string",
"markdownDescription": "One entry value"
}
},
"markdownDescription": "Extra properties that could be passed to the code analyzers. e.g. `{\"sonar.javascript.globals\": \"xxx\"}`. See [documentation](https://redirect.sonarsource.com/doc/plugin-library.html) of each analyzers."
},
"sonarlint.disableTelemetry": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable sending anonymous usage statistics"
},
"sonarlint.rules": {
"type": "object",
"scope": "application",
"default": {},
"markdownDescription": "Configure rules. In connected mode, this configuration is overridden by the projects's quality profile, as configured on server side.\n\nExample:\n\n \"sonarlint.rules\": {\n \"javascript:UnusedVariable\": {\n \"level\": \"off\"\n }\n }\n",
"patternProperties": {
"^[^:]+:[^:]+$": {
"type": "object",
"markdownDescription": "Property names are rule keys in the form: `repo:key`",
"properties": {
"level": {
"type": "string",
"anyOf": [
"off"
],
"markdownDescription": "When set to `off`, disable the rule"
}
}
}
}
},
"sonarlint.ls.javaHome": {
"type": "string",
"markdownDescription": "Path to a JRE (8 or more recent) used to launch the SonarLint Language Server. \n\n On Windows, backslashes must be escaped, e.g. `C:\\\\Program Files\\\\Java\\\\jdk1.8.0_161`",
"scope": "window"
},
"sonarlint.ls.vmargs": {
"type": "string",
"markdownDescription": "Extra JVM arguments used to launch the SonarLint Language Server. e.g. `-Xmx1024m`",
"scope": "window"
},
"sonarlint.connectedMode.servers": {
"type": "array",
"scope": "application",
"default": [],
"markdownDescription": "Configure one or more connection(s) to SonarQube/SonarCloud. For security reasons, the token should not be stored in SCM with workspace settings. The `serverId` can be any identifier and will be referenced in `#sonarlint.connectedMode.project#`.\n\nExample for SonarCloud:\n\n \"sonarlint.connectedMode.servers\": [\n {\n \"serverId\": \"my_orga_in_sonarcloud.io\",\n \"serverUrl\": \"https://sonarcloud.io\",\n \"organizationKey\": \"my_organization\",\n \"token\": \"V2VkIE1...\"\n }\n ]\n\nExample for SonarQube:\n\n \"sonarlint.connectedMode.servers\": [\n {\n \"serverId\": \"my_sonarqube\",\n \"serverUrl\": \"https://sonar.mycompany.com\",\n \"token\": \"V2VkIE1...\"\n }\n ]",
"items": {
"properties": {
"serverId": {
"type": "string",
"description": "A unique identifier for this server connection. Will be referenced from `#sonarlint.connectedMode.project#`",
"default": ""
},
"serverUrl": {
"type": "string",
"description": "URL of the server. Use https://sonarcloud.io for SonarCloud.",
"default": ""
},
"token": {
"type": "string",
"description": "Token generated from My Account>Security in SonarQube/SonarCloud",
"default": ""
},
"organizationKey": {
"type": "string",
"description": "Only used for SonarCloud",
"default": ""
}
}
}
},
"sonarlint.connectedMode.project": {
"type": "object",
"default": {},
"markdownDescription": "Bind the current project to SonarQube/SonarCloud using the connection referenced by `serverId` and configured in `#sonarlint.connectedMode.servers#`. Connected mode allows to use the same code analyzers, rules and configuration that are defined in the server.\n\nExample:\n\n \"sonarlint.connectedMode.project\": {\n \"serverId\": \"the_server_connection_id\",\n \"projectKey\": \"my_project\"\n }",
"properties": {
"serverId": {
"type": "string",
"description": "Identifier of the server connection declared in `#sonarlint.connectedMode.servers#`",
"default": ""
},
"projectKey": {
"type": "string",
"description": "Key of the project in SonarQube/SonarCloud",
"default": ""
}
}
}
}
},
"commands": [
{
"command": "sonarlint.updateServersAndBinding",
"title": "Update SonarLint binding to SonarQube/SonarCloud"
}
]
},
"main": "./dist/extension",
"files": [
"server/sonarlint-ls.jar",
"analyzers"
],
"scripts": {
"vscode:prepublish": "node scripts/prepare.js && webpack --mode production",
"compile": "tsc -p ./",
"watch": "webpack --mode development --watch --info-verbosity verbose",
"pretest": "webpack --mode development && tsc -p ./",
"test": "node ./out/test/runTest.js",
"test-cov": "node ./out/test/runTest.js --coverage"
},
"dependencies": {
"expand-home-dir": "0.0.3",
"find-java-home": "1.0.1",
"open": "6.0.0",
"path-exists": "3.0.0",
"vscode-languageclient": "5.2.1"
},
"devDependencies": {
"@types/glob": "5.0.30",
"@types/mocha": "^5.2.5",
"@types/chai": "^4.2.0",
"@types/node": "^6.14.6",
"@types/vscode": "^1.36.0",
"crypto": "^0.0.3",
"dateformat": "^2.0.0",
"del": "^2.2.2",
"expect.js": "^0.3.1",
"gulp": "^3.9.1",
"gulp-artifactory-upload": "^1.3.0",
"gulp-bump": "^2.7.0",
"gulp-cli": "^2.2.0",
"gulp-download": "^0.0.1",
"gulp-rename": "^1.4.0",
"gulp-util": "^3.0.8",
"glob": "^7.1.4",
"istanbul-lib-coverage": "^2.0.5",
"istanbul-lib-instrument": "^3.3.0",
"istanbul-lib-report": "^2.0.8",
"istanbul-lib-source-maps": "^3.0.6",
"istanbul-reports": "^2.2.6",
"mocha": "^5.2.0",
"chai": "^4.2.0",
"sonarqube-scanner": "^2.5.0",
"through2": "^2.0.5",
"ts-loader": "6.0.4",
"typescript": "^3.5.2",
"vsce": "^1.66.0",
"vscode-test": "^1.0.0",
"webpack": "^4.39.1",
"webpack-cli": "3.3.6"
},
"prettier": {
"jsxBracketSameLine": true,
"printWidth": 120,
"singleQuote": true
}
}