-
-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure DevOps files comments not appear #715
Comments
We had similar issue in our project, only summary without individual comments. The problem was in the setup, Administration -> ALM Integrations -> GitLab URL ( I was able to make it work on older sonar version 8.9.6. with plugin version 1.8.1 |
I am having the same issue. I am using the latest community LTS version of SonarQube (9.9) and plugin version 1.14. I am getting the summary but no comments on the PR in Azure DevOps. |
Please provide a copy of your compute engine logs for a scan that fails to add file comments if you're encountering this issue, obfuscating any sensitive file names or code, and any URLs, but ensuring the general message structure remains in place. |
|
My error was caused by "The main branch has no lines of code.". I have fixed it by adding
to all csproj files (see https://improveandrepeat.com/2023/02/how-to-fix-a-project-with-0-lines-of-code-in-sonarqube/). |
I was having the same problem with Azure DevOps (Sonar leaving a summary comment, but no individual comments per issue) but I figured it out and thought I'd leave a comment. In my case I was doing an analysis myself on some additional changes I hadn't committed & pushed yet. The logs didn't contain any errors and the debug logging wasn't indicating any attempt to leave individual comments. After trawling through the source code I found found this: Lines 88 to 95 in 5874424
The plugin won't actually leave comments on issues that don't belong to commits reachable from the pull request. Sonar will happily report on them itself if they meet whatever you've configured 'New Code' to mean, however there's filtering logic in the plugin that prevents them carrying through into the PR decoration. Hope that helps any future travellers who were similarly confused. |
@mc1arke the same issue
Line 212 in 7499112
Related to this: #335 (comment) (#335) There were changes only in the jenkins files. SonarQube: v9.9.5 (build 90363), Plugin: 1.14.0 |
Where Sonarqube does not have duplication information recorded on a branch, such as there being no code to analyse, the duplication information may be null. THe plugin is being altered to show this as a `0` rather than throwing an exception when trying to format the missing value.
Where Sonarqube does not have duplication information recorded on a branch, such as there being no code to analyse, the duplication information may be null. THe plugin is being altered to show this as a `0` rather than throwing an exception when trying to format the missing value.
Released in 1.22.0 |
Describe the bug
Azure DevOps files comment not appear
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Code smells comments from the SonarQube should be added to the Azure DevOps
Screenshots
Software Versions
Additional context
manual
modeThe text was updated successfully, but these errors were encountered: