Code Smells listed in SonarQube but not in SonalLint for VS Code

  • Windows 10 Enterprise:
  • SonarLint plugin version: v3.20.2
  • Programming language you’re coding in: COBOL
  • Is connected mode used:
    • Connected to SonarQube Enterprise Edition 9.4:

I noticed that scanning the code in SonarQube is giving more Code smells thanscanning the same program in SonarLint. I read several topics, some of them may give an explanation but this not exactly the same situation we are having. I’m adding some screenshots to illustrate the situation.

Thanks in advance for your help / advice.

Hi @SteveH , thank you for your post, I am glad to see you are using SonarLint for COBOL analysis in VSCode :wave: :star_struck:

From your screenshots, it seems that you are using Zowe explorer to work on remote files, as opposed to having all source and copybook files available locally. So my first guess would be that SonarLint is failing to resolve Copybook files, and hence the analysis results are not “complete”.

If you haven’t already, I suggest you have a look at COBOL analysis requirements in our docs. Also, to be able to accurately pinpoint the issue, we would need SonarLint logs.

Hope that helps,
Sophio from :sonarlint:


Thanks @sophio.japharidze for your prompt response. I’ll look into the resources you pointed me out.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.