VSCode Sonarlint saved too many temp files in .sonarlint folder

  • Operating system: windows
  • IDE name and flavor/env: vscode 1.92.2
  • SonarLint plugin version: V4.9.1
  • Is connected mode used:No

And a thorough description of the problem / question:

Sonarlint saved too much temp files in .sonarlint folder, and occupied too much storage.

2

Hello @tm7tm7tm7tm7, and sorry for the late reply.

We are aware of the issue concerning the growing size of the .sonarlint/ folder and have recently made a change to clean up the storage every 7 days (instead of 21 days currently). The change will be included in the upcoming release of SonarLint for VSCode (v4.11).

OK! Thanks.

Please make the # of days configurable. On my system the folder grows by about 1G per day.

A better solution would be to fix the root problem and avoid re-creating them. Not only do they take up space, all those new files need to be scanned by Anti-Virus and there’s a performance hit as well.

1 Like

Hi @melgish, we have been actively working on this for the past weeks and have made progress on this specific topic. I cannot tell you when it will be fixed yet, but this is on our radar. As you can imagine, it’s not as straightforward as it may seem. We will keep you updated.

2 Likes