Using the API to get reliability_rating, I get numbers and not letters

(Michael New) #1

I’m using SonarQube 7.6.

I use the REST API to get reliability_rating like this:

The docs indicate a value of A through E should be returned, but I get an integer (1 or 3 so far), like this. I couldn’t find any document that maps the letter to the number.
“reliability_rating”: 1

Am I missing something, or is there a document that explains this?

Mike New

(G Ann Campbell) #2

Hi Mike,

We translate the number to the letter on the front end. THB, I don’t remember which end of the scale is which and it’s not documented, but the numbers 1-5 map pretty directly to to A-E (or E-A).


(Michael New) #3

Thanks for the confirmation.

Seems like 1 = A based on my data.

Could you have that documented? I’m wary of implementing solutions based on assumptions like I was doing…