- Versions
- VSCode: 1.63
- SonarLint Extension: v3.2.0
- SonarQube Server: Enterprise EditionVersion 9.2.4 (build 50792)
- 3 issues detected, but only one shows in “Problems”-Tab of VSCode.
In the logs, you can spot, that 3 issues have been found, but only one is published to VSCode.
I tried this first in the connectedMode, but this also applies to the “offline” mode, when activating only the following to rules: python:S113 and python:S1131
Info - 11:38:11.204] Found 3 issues
[Trace - 11:38:11 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/jgiese/Python/CDP/cdp-expert-group-di-source/cdp_utils/boto3_service_utils.py",
"diagnostics": [
{
"range": {
"start": {
"line": 109,
"character": 0
},
"end": {
"line": 109,
"character": 58
}
},
"severity": 3,
"code": "python:S1131",
"source": "sonarlint",
"message": "Remove the useless trailing whitespaces at the end of this line.",
"data": "b89aa0ec-edc0-4f54-b2f9-e1c6c9c5aca1"
}
]
}
- To Reproduce:
- Create python module with blank space at end of line and no trailing newline.
- Check SonarLint output and Problems tab.
- No workaround. In SonarQube (Server) it is showing fine.
-
VSCode Screenshot:
-
SonarQube Screenshot: