I did sonarqube analysis on DemoProject. I am having phtml and embedded files in it.
How to scan PHTML files?
PHTML files contains some Javascript code. Can we scan this javascript code?
Can anyone suggest a solution for this?
Is there any plugins available for the same?
Note:- I already installed javascript plugin and web plugin
For Scanning phtml files, Please install PHP plugin, PHP plugin within SonarQube supports scanning of phtml files.
Please find below the screenshot for the same.
Please go to settings->PHP where you can see this settings.
if you want to specify the same in project properties file, you have to add following the key
Answering you other question of embedded code analysis. This is not supported by SonarQube. It identifies the file extension and then scan for the same.