Hi ,
We are working on SonarQube Enterprise implementation and we have couple of projects which use Salesforce.com.
Salesforce.com have added a new Lightning User Interface to Salesforce ( let me refer it as SLUI)
We need to check whether we can scan the code through SonarQube or not.
The SLUI is based on AURA framework which is developed using JAVA and JavaScript. SLUI implemntaion has limited salesforce as well as Aura feature and not all of them.
SLUI development is divided in Components(.cmp) and Events(.evt) . Components are written in Aura context with HTML and HTML5 tags embedded and Events are in Javascripts with Aura tags embedded.
Can we scan the code through the SonarQube or not.
link below shows exampl of the Aura Component present in Javascript :
Below an example of Component Source code :
02 | <aura:attribute name="text" type="String" default="Just a string. Waiting for change."/> |
03 | <input type="button" value="Flawed HTML Button" onclick="alert('this will not work')"/> |
05 | <input type="button" value="Hybrid HTML Button" onclick="{!c.handleClick}"/> |
07 | <ui:button label="Framework Button" press="{!c.handleClick}"/> |
Let me know in case any further information is required.
Could we effectively scan the code of SLUI through SonarQube
Thanksin Advance!!!