Sonarlint: Webplugin: TagNode: get Attribute line no.

10 views
Skip to first unread message

mahima...@gmail.com

unread,
Mar 16, 2017, 7:52:10 AM3/16/17
to SonarLint
Hi All,


I'm using sonarlint web plugin as scanning tool. I'm having an issue in getting the line no of attribute.

Ex: 
Line no: 19 :::: <form name="tabClickForm" action='<c:url value="FlexPricerAvailabilityServlet"/>' 
Line no: 20 :::: method="post" />

I want to report line 20: method as violation line. 

I'm using (Tagnode) element.getStartLinePosition()  to get the line no. of tag. Is there anyway to get line no. of attribute(method) of tag(form)

Any suggestions will be helpful.

Thanks in advance,
RaJ

Reply all
Reply to author
Forward
0 new messages