We are currently use sonar-scanner CLI, but have no clear idea how different framework is handled in the backend. Could you help clarify and sugget the best practice? Thank you very much in advance!
Our Environment:
SonarQube 7.5, Scanner, Plugin, and any relevant extension)
JavaScript analyzer is able automatically parse JSX, Vue and Flow, no additional configuration is required.
So to execute your custom rules, simply run sonar-scanner CLI with your plugin installed on the SonarQube you use (and don’t forget to activate rules).
Thank you for your reply, sorry I didn’t make it very clear.
In our case, we are adding a custom rule to checking for internationalized hardcoded string issues;
JS script is too flexible, we found quite many false-reported bugs for different frameworks. so we are thinking to find a way that can automatically identify framework-specific syntax e.g. require(‘modulename’) and ignore the scanning on it, that’s why I’m asking for the help, please let me know if more details are needed, thank you~