-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonar js plugin + web frontend plugin doesn't work #22
Comments
I added some configuration parameters to make both plugins work together. If the Sonar javascript plugin is present you can add the following properties (in sonar-project.properties or change project configuration values directly in Sonar web interface):
I have also added the same configuration values for other languages (html, css, scss) in prevision of future Sonar plugins:
Then, to make Sonar display both Sonar javascript plugin issues and our plugin issues, you have to configure a profile that contains the rules you want. Finally, just run another analysis with the newly created profile. That's all. @yanzacheus can you try to build the plugin, run it following these instructions and tell me if it is ok for you ? Thanks |
Sorry, but it did'nt work. If I remove the one or the other, it works but with both I can see in the log of the task: For the version 4.5, it seemed to be ok, but in this version, you can't have the files edition feature. |
As you said, it works well with Sonar 4.5.5 but it doesn't work with 5.3. There were many changes in Sonar. When both plugins are activated, the runner says "EXECUTION SUCCESS". But Sonar 5.3 introduces a queue that temporarily stores results of runner execution. This temporary report is later parsed and information is stored after that. So even if the message is "EXECUTION SUCCESS" in logs of runner, in fact a log for parsing runner report says:
So when both are present at the same time nothing is updated at all. It keeps the last values from previous analysis with only one of the plugins. It seems that it is now impossible to have two plugins that are able to handle the same language. For the moment I have no idea how to enable both plugins at the same time. I will ask support from Sonar to know if it is still possible. |
Ok thanks, I'll keep an eye on it |
Sonar has answered about multiple plugins to handle one language and it is no more possible. So you can't have both our plugin and Sonar JS plugin installed at the same time. But, I also added their plugin into ours. So it is now possible to have our rules and theirs. Can you test it and tell me if it is ok for you ? Thanks |
Ok thanks for the info. 2016-02-22 13:33 GMT+01:00 Aurélien Baudet [email protected]:
|
You can also use the following properties:
You can use only one of them or all at the same time depending on coverage files you have. |
Thanks, it works.
2016-02-23 8:06 GMT+01:00 Aurélien Baudet [email protected]:
|
Hi @aurelien-baudet , this doesn't work for me. I have set project's quality profile as eslint-angular , but it doesnt report any issues. I have added those properties to the property file. I use sonar 4.5.5. |
@aurelien-baudet have you guys tried this fix: RadoBuransky/sonar-scoverage-plugin#31 |
Hi.. I started working on analyzing angularJS projects in sonar. Hence I installed sonar-web-frontend-plugin. I have disabled the sonar-javascript-plugin since it was showing "java.lang.IllegalArgumentException: Multiple entries with same key: js=JavaScript and js=JS" error. When i run the analysis using "sonar-scanner" command in command prompt, I get "Execution success". But in sonar dashboard I m not able to analyse project and I get "Project is not analyzed yet" message. My sonar-project.properties file looks like this: sonar.language=js How will I be able to analyse the project in sonar? Thanks |
In order to see linters results in Sonar, I must uninstall the javascript plugin from Sonar and then run the analyzer. I can't have both javascript base plugin and your javascript plugin enabled.
And I'd like to keep my reports from the javascript plugin from Sonar...
What could be the best way to do so ? (not to have two projects for one and install/uninstall plugins)
Thanks.
The text was updated successfully, but these errors were encountered: