coc-sonarlint 0.0.14 → 0.0.16

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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/lib/index.js CHANGED
@@ -12388,39 +12388,25 @@ function languageServerCommand(context, requirements) {
12388
12388
  const javaExecutablePath = Path.resolve(requirements.javaHome, "bin", "java");
12389
12389
  const params = [];
12390
12390
  if (DEBUG) {
12391
- params.push(
12392
- "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000,quiet=y"
12393
- );
12394
- params.push("-Dsonarlint.telemetry.disabled=true");
12391
+ params.push("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000,quiet=y");
12395
12392
  }
12393
+ params.push("-Dsonarlint.telemetry.disabled=true");
12396
12394
  const vmargs = getSonarLintConfiguration().get("ls.vmargs", "");
12397
12395
  parseVMargs(params, vmargs);
12398
12396
  params.push("-jar", serverJar);
12399
12397
  params.push("-stdio");
12400
12398
  params.push("-analyzers");
12401
12399
  params.push(Path.resolve(location, "analyzers", "sonargo.jar"));
12402
- params.push(
12403
- Path.resolve(location, "analyzers", "sonarjava.jar")
12404
- );
12400
+ params.push(Path.resolve(location, "analyzers", "sonarjava.jar"));
12405
12401
  params.push(Path.resolve(location, "analyzers", "sonarjs.jar"));
12406
12402
  params.push(Path.resolve(location, "analyzers", "sonarphp.jar"));
12407
- params.push(
12408
- Path.resolve(location, "analyzers", "sonarpython.jar")
12409
- );
12410
- params.push(
12411
- Path.resolve(location, "analyzers", "sonarhtml.jar")
12412
- );
12403
+ params.push(Path.resolve(location, "analyzers", "sonarpython.jar"));
12404
+ params.push(Path.resolve(location, "analyzers", "sonarhtml.jar"));
12413
12405
  params.push(Path.resolve(location, "analyzers", "sonarxml.jar"));
12414
- params.push(
12415
- Path.resolve(location, "analyzers", "sonarcfamily.jar")
12416
- );
12417
- params.push(
12418
- Path.resolve(location, "analyzers", "sonartext.jar")
12419
- );
12406
+ params.push(Path.resolve(location, "analyzers", "sonarcfamily.jar"));
12407
+ params.push(Path.resolve(location, "analyzers", "sonartext.jar"));
12420
12408
  params.push(Path.resolve(location, "analyzers", "sonariac.jar"));
12421
- params.push(
12422
- Path.resolve(location, "analyzers", "sonarlintomnisharp.jar")
12423
- );
12409
+ params.push(Path.resolve(location, "analyzers", "sonarlintomnisharp.jar"));
12424
12410
  return {
12425
12411
  command: javaExecutablePath,
12426
12412
  args: params,
@@ -14001,6 +13987,7 @@ function installCustomRequestHandlers() {
14001
13987
  );
14002
13988
  languageClient.onRequest(ListFilesInFolderRequest.type, (params) => {
14003
13989
  const files = [];
13990
+ const ignored = coc12.workspace.getConfiguration().get("sonarlint.listFilesFoldersExclusions", []);
14004
13991
  const folderCrawler = (dir) => {
14005
13992
  let elements = [];
14006
13993
  try {
@@ -14017,7 +14004,7 @@ function installCustomRequestHandlers() {
14017
14004
  filePath: full,
14018
14005
  fileName: elem
14019
14006
  });
14020
- } else if (!elem.startsWith(".")) {
14007
+ } else if (!ignored.includes(elem)) {
14021
14008
  folderCrawler(full);
14022
14009
  }
14023
14010
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-sonarlint",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "Coc sonar lint language server extension client",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -44,6 +44,9 @@
44
44
  "onLanguage:c",
45
45
  "onLanguage:cpp",
46
46
  "onLanguage:cuda",
47
+ "onLanguage:yaml",
48
+ "onLanguage:json",
49
+ "onLanguage:jsonc",
47
50
  "onLanguage:objc",
48
51
  "onLanguage:objcpp",
49
52
  "onLanguage:opencl",
@@ -61,6 +64,7 @@
61
64
  "onLanguage:gomod",
62
65
  "onLanguage:python",
63
66
  "onLanguage:jupyter",
67
+ "onLanguage:jsx-tags",
64
68
  "onLanguage:javascript",
65
69
  "onLanguage:javascriptreact",
66
70
  "onLanguage:javascript.jsx",
@@ -68,8 +72,6 @@
68
72
  "onLanguage:typescript.tsx",
69
73
  "onLanguage:typescript.jsx",
70
74
  "onLanguage:typescriptreact",
71
- "onLanguage:jsx-tags",
72
- "onLanguage:jsonc",
73
75
  "workspaceContains:.sonar.properties"
74
76
  ],
75
77
  "contributes": {
@@ -299,15 +301,40 @@
299
301
  "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
302
  "scope": "resource"
301
303
  },
302
- "sonarlint.analysisExcludesStandalone": {
304
+
305
+ "sonarlint.listFilesFoldersExclusions": {
303
306
  "order": 13,
307
+ "type": "array",
308
+ "default": [
309
+ "node_modules",
310
+ "target",
311
+ ".settings",
312
+ ".angular",
313
+ ".next",
314
+ ".nuxt",
315
+ ".cargo",
316
+ ".cache",
317
+ ".github",
318
+ ".tmp",
319
+ ".log",
320
+ ".vim",
321
+ ".git",
322
+ ".svn",
323
+ ".hg",
324
+ ".idea",
325
+ ".vscode"
326
+ ],
327
+ "markdownDescription": "List of folder names which are to be excluded when the files for analysis are collected and sent to sonar language server"
328
+ },
329
+ "sonarlint.analysisExcludesStandalone": {
330
+ "order": 14,
304
331
  "type": "string",
305
- "default": "(node_modules|.git|.svn|.hg|.idea|.vscode)/**",
332
+ "default": "**/target/**,**/build/**,**/node_modules/**,**/.angular/**,**/.next/**,**/.nuxt/**,**/.cargo/**,**/.cache/**,**/.tmp/**,**/.log/**,**/.git/**,**/.svn/**,**/.hg/**,**/.idea/**,**/.vscode/**",
306
333
  "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
334
  "scope": "resource"
308
335
  },
309
336
  "sonarlint.notifyMissingCompileCommands": {
310
- "order": 21,
337
+ "order": 15,
311
338
  "default": true,
312
339
  "type": "boolean",
313
340
  "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 +349,11 @@
322
349
  "sonarlint.ls.directory": {
323
350
  "order": 21,
324
351
  "type": "string",
325
- "markdownDescription": "Specifies the directory for where to sonar lint and its binaries, the directory must contain two 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",
352
+ "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
353
  "scope": "machine"
327
354
  },
328
355
  "sonarlint.ls.vmargs": {
329
- "order": 21,
356
+ "order": 22,
330
357
  "type": "string",
331
358
  "markdownDescription": "Extra JVM arguments used to launch the SonarLint Language Server. e.g. `-Xmx1024m`",
332
359
  "scope": "machine"
@@ -401,7 +428,7 @@
401
428
  "sonarlint.disableTelemetry": {
402
429
  "order": 99,
403
430
  "type": "boolean",
404
- "default": false,
431
+ "default": true,
405
432
  "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
433
  "scope": "window"
407
434
  },
Binary file