Quantcast

[sonar-dev] get relevant file from review?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[sonar-dev] get relevant file from review?

Ann Campbell
Still working on my plugin to insert a work ticket into my external work tracking system from a Sonar review (the other side has been slow getting me the necessary web service operation. :-/ )

When I create that work ticket, I'd like to be able to do something like this:

title: [file]:[line] [rule name]
description: [message]
[review comment]
http://[my server]:9000/project_reviews/view/[review_id]


I've found all of that data hanging off the MutableReview object except the file name - which I see on the review details page, I just don't see it in the API. I'm guessing that if I could get from the review to the violation, then the rest would be easy, but I'm not seeing that either...

Help?


Thx,
Ann


P.S. I see from the JavaDocs that getReviewId "will probably be removed in order to decrease coupling with database." ... Reconsider? :-)

---
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[sonar-dev] Re: get relevant file from review?

Ann Campbell
Okay... I'm guessing that you just can use the API to get the violation file from a review.

Mind if I put in a Jira ticket?


---
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720



On Mon, Sep 10, 2012 at 5:08 PM, Ann Campbell <[hidden email]> wrote:
Still working on my plugin to insert a work ticket into my external work tracking system from a Sonar review (the other side has been slow getting me the necessary web service operation. :-/ )

When I create that work ticket, I'd like to be able to do something like this:

title: [file]:[line] [rule name]
description: [message]
[review comment]
http://[my server]:9000/project_reviews/view/[review_id]


I've found all of that data hanging off the MutableReview object except the file name - which I see on the review details page, I just don't see it in the API. I'm guessing that if I could get from the review to the violation, then the rest would be easy, but I'm not seeing that either...

Help?


Thx,
Ann


P.S. I see from the JavaDocs that getReviewId "will probably be removed in order to decrease coupling with database." ... Reconsider? :-)

---
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720



**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************

Loading...