-
Notifications
You must be signed in to change notification settings - Fork 39
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
Sonar Report Format v7.5 not Supported #80
Comments
One other option I just thought about was just manually manipulating the sonar output myself so that the format is in the format expected by your parser.. I am fine with this approach as well. |
I would prefer if the existing parser can handle it. The code does not need
to be pretty, in my opinion, just as long as it is covered with test cases.
Second option would be to add a new parser.
The existing parser cannot be configured and cannot be made configurable.
That would mean changing how all the plugins use the library... That would
require lots of work.
Den tis 31 dec. 2019 22:38Zakey Faieq <[email protected]> skrev:
… One other option I just thought about was just manually manipulating the
sonar output myself so that the format is in the format expected by your
parser.. I am fine with this approach as well.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#80?email_source=notifications&email_token=AADLKE4L3GRX4V2O3BBVRIDQ3O3T7A5CNFSM4KBYCRXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH4W3MA#issuecomment-569994672>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADLKE6ZPGCASQTFQZ7NG43Q3O3T7ANCNFSM4KBYCRXA>
.
|
Ok I'll try to put up a fix for the existing parser in the next day or two. |
Zakinator123
changed the title
Newer Sonar Report Format not Supported
Sonar Report Format v7.5 not Supported
Jan 2, 2020
tomasbjerre
added a commit
to tomasbjerre/violations-git-lib
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violations-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violations-gradle-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violations-maven-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-bitbucket-cloud-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-bitbucket-cloud-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-bitbucket-server-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-github-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-github-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-github-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-github-gradle-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-github-maven-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-gitlab-command-line
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to jenkinsci/violation-comments-to-github-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-gitlab-gradle-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-gitlab-gradle-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to tomasbjerre/violation-comments-to-gitlab-maven-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to jenkinsci/violation-comments-to-gitlab-plugin
that referenced
this issue
Jan 3, 2020
tomasbjerre
added a commit
to jenkinsci/violation-comments-to-stash-plugin
that referenced
this issue
Jan 3, 2020
Should be released in all the plugins now. |
aakoch
pushed a commit
to aakoch/violation-comments-to-stash-plugin
that referenced
this issue
Dec 12, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello again!
I got everything working with the
Violation Comments To Bitbucket Server Command Line
library except for one small thing. The SonarParser.java appears to have a small incompatibility between theSonarReportIssue
static class and the SonarQube issues API output format from my SonarQube Server (running version 7.5). The inconsistency exists specifically with the location of thestartLine
andendLine
fields. Your parser and report examples expect those fields to be in the top level issues list item, whereas my report has those fields under a new field calledtextRange
. See my sample output below (some information is redacted with "..."):So what's happening as a result is the SonarParser.java is saying that all the issues are happening in line 0 of every file, which doesn't exist according to Bitbucket.
I see a couple of possible solutions:
SonarParser7_5AndUp.java
or something like that and having two parser names ofSONAR
andSONAR7_5AndUp
. The new parser would have the updated model.This last approach is very brittle, and may break some usages of the current implementation (although I doubt it since I don't think Sonar ever outputs an issue to be at line 0), but it is also very easy :)
Please let me know what you think the best course of action is - I'd be happy to help as much as I can to get this to work since I think this library is awesome.
~ Zakey
The text was updated successfully, but these errors were encountered: