coc-sonarlint 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -1
- package/package.json +32 -7
package/lib/index.js
CHANGED
|
@@ -14001,6 +14001,7 @@ function installCustomRequestHandlers() {
|
|
|
14001
14001
|
);
|
|
14002
14002
|
languageClient.onRequest(ListFilesInFolderRequest.type, (params) => {
|
|
14003
14003
|
const files = [];
|
|
14004
|
+
const ignored = coc12.workspace.getConfiguration().get("sonarlint.listFilesFoldersExclusions", []);
|
|
14004
14005
|
const folderCrawler = (dir) => {
|
|
14005
14006
|
let elements = [];
|
|
14006
14007
|
try {
|
|
@@ -14017,7 +14018,7 @@ function installCustomRequestHandlers() {
|
|
|
14017
14018
|
filePath: full,
|
|
14018
14019
|
fileName: elem
|
|
14019
14020
|
});
|
|
14020
|
-
} else if (!
|
|
14021
|
+
} else if (!ignored.includes(elem)) {
|
|
14021
14022
|
folderCrawler(full);
|
|
14022
14023
|
}
|
|
14023
14024
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coc-sonarlint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "Coc sonar lint language server extension client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -299,15 +299,40 @@
|
|
|
299
299
|
"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.\n\nIn [Connected Mode](command:SonarLint.HelpAndFeedbackLinkClicked?%22connectedModeDocs%22), this setting is configured **on the server-side** and shared among all contributors.\n\nExample: `**/test/**,**/*test*,**/*Test*`",
|
|
300
300
|
"scope": "resource"
|
|
301
301
|
},
|
|
302
|
-
|
|
302
|
+
|
|
303
|
+
"sonarlint.listFilesFoldersExclusions": {
|
|
303
304
|
"order": 13,
|
|
305
|
+
"type": "array",
|
|
306
|
+
"default": [
|
|
307
|
+
"node_modules",
|
|
308
|
+
"target",
|
|
309
|
+
".settings",
|
|
310
|
+
".angular",
|
|
311
|
+
".next",
|
|
312
|
+
".nuxt",
|
|
313
|
+
".cargo",
|
|
314
|
+
".cache",
|
|
315
|
+
".github",
|
|
316
|
+
".tmp",
|
|
317
|
+
".log",
|
|
318
|
+
".vim",
|
|
319
|
+
".git",
|
|
320
|
+
".svn",
|
|
321
|
+
".hg",
|
|
322
|
+
".idea",
|
|
323
|
+
".vscode"
|
|
324
|
+
],
|
|
325
|
+
"markdownDescription": "List of folder names which are to be excluded when the files for analysis are collected and sent to sonar language server"
|
|
326
|
+
},
|
|
327
|
+
"sonarlint.analysisExcludesStandalone": {
|
|
328
|
+
"order": 14,
|
|
304
329
|
"type": "string",
|
|
305
|
-
"default": "
|
|
330
|
+
"default": "**/target/**,**/build/**,**/node_modules/**,**/.angular/**,**/.next/**,**/.nuxt/**,**/.cargo/**,**/.cache/**,**/.tmp/**,**/.log/**,**/.git/**,**/.svn/**,**/.hg/**,**/.idea/**,**/.vscode/**",
|
|
306
331
|
"markdownDescription": "Files whose name match this [glob pattern](https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob) will not be processed by analyzers. In [Connected Mode](command:SonarLint.HelpAndFeedbackLinkClicked?%22connectedModeDocs%22) with SonarQube or SonarCloud, this property will be ignored and server exclusion settings will be applied. No rules are evaluated on excluded files. Example: `**/lib/**,**/*generated*`",
|
|
307
332
|
"scope": "resource"
|
|
308
333
|
},
|
|
309
334
|
"sonarlint.notifyMissingCompileCommands": {
|
|
310
|
-
"order":
|
|
335
|
+
"order": 15,
|
|
311
336
|
"default": true,
|
|
312
337
|
"type": "boolean",
|
|
313
338
|
"markdownDescription": "Specifies if missing or invalid compile commands in c or cpp projects will prompt the user to generate or create one, by default the user will be asked for each new workspace he visits, and the user can opt out of it per workspace by selecting the option - Do not ask for compile commands again for this workspace",
|
|
@@ -322,11 +347,11 @@
|
|
|
322
347
|
"sonarlint.ls.directory": {
|
|
323
348
|
"order": 21,
|
|
324
349
|
"type": "string",
|
|
325
|
-
"markdownDescription": "Specifies the directory
|
|
350
|
+
"markdownDescription": "Specifies the directory where the sonar lint binaries are located, the directory must contain two sub-folders, a server/ and analyzers/, where the server binary is located in the server/ folder and all analyzer binaries are located in the analyzers/ folder",
|
|
326
351
|
"scope": "machine"
|
|
327
352
|
},
|
|
328
353
|
"sonarlint.ls.vmargs": {
|
|
329
|
-
"order":
|
|
354
|
+
"order": 22,
|
|
330
355
|
"type": "string",
|
|
331
356
|
"markdownDescription": "Extra JVM arguments used to launch the SonarLint Language Server. e.g. `-Xmx1024m`",
|
|
332
357
|
"scope": "machine"
|
|
@@ -401,7 +426,7 @@
|
|
|
401
426
|
"sonarlint.disableTelemetry": {
|
|
402
427
|
"order": 99,
|
|
403
428
|
"type": "boolean",
|
|
404
|
-
"default":
|
|
429
|
+
"default": true,
|
|
405
430
|
"markdownDescription": "Disable sending anonymous usage statistics to SonarSource. Click [here](https://github.com/SonarSource/sonarlint-vscode/blob/master/telemetry-sample.md) to see a sample of the data that are collected.",
|
|
406
431
|
"scope": "window"
|
|
407
432
|
},
|