False positive on the "alt" image attribute when using Angular

131 views
Skip to first unread message

julien...@gmail.com

unread,
Feb 2, 2017, 11:50:17 AM2/2/17
to SonarQube
Hi everyone,

I have a project hosted on SonarQube:


We just got a "B" grade because we have images that do not have the "alt" attribute, see for example:


In fact, we do have the "alt" attribute (if you look at the far right of the line), so this is a false positive. As we use Angular 2, our code is supposed to be "correct" HTML, but as you can see it's kind of unusual, so I guess the Sonar parser does not understand it correctly.

Can you confirm this is a false positive? In that case, could you open up a ticket and solve it? I'm available (as well as many people from the JHipster community, as we all want AAA grade) if you need help testing.

Cheers,

Julien

Massimo Paladin

unread,
Feb 3, 2017, 9:50:56 AM2/3/17
to julien...@gmail.com, SonarQube
Hi Julien,

I confirm it is a false-positive, I created a ticket on the plugin side:

I would recommend you to mark them as false positives to not have them to lower your AAA grade.

Cheers,

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/a8fb0d1e-55a5-4b98-9149-a579d2dc98a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Massimo PALADIN | SonarSource
Software Developer @ Language Team
http://sonarsource.com
Reply all
Reply to author
Forward
0 new messages