mulesoft-catalyst / mule-sonarqube-plugin

The Mule SonarQube Plugin provides the capability to do code inspecting and taking project metrics from a mule project using SonarQube.
The Unlicense
46 stars 68 forks source link

How to use in Parallel with XML Pluging? #11

Closed anupam-chakraborty closed 3 years ago

anupam-chakraborty commented 3 years ago

We have a global SonarQube Server which has other application using XML Plugin. How can I force the project to use the Mule plugin without removing the .xml from the XML Language plugin?

fperezpa commented 3 years ago

Which version of Sonar are you using?

anupam-chakraborty commented 3 years ago

Hi,

I am using

Thanks, Anupam

October 1, 2020 4:13 PM, "Franco Perez Parma" <notifications@github.com (mailto:notifications@github.com?to=%22Franco%20Perez%20Parma%22%20notifications@github.com)> wrote: Which version of Sonar are you using?

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/mulesoft-catalyst/mule-sonarqube-plugin/issues/11#issuecomment-702443879), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AK26YEZAH5WS524IXADVYCDSIUELPANCNFSM4R6JEMCA).

pradeepchauhanmule commented 3 years ago

We have a global SonarQube Server which has other application using XML Plugin. How can I force the project to use the Mule plugin without removing the .xml from the XML Language plugin?

You can update your SonarQube Project "General Settings" to ignore the .xml in XML Plugin. This way you wont affect rest of the applications.

anupam-chakraborty commented 3 years ago

But that would stop other XML from working. I mean XML which are not Mule Specific...

Thanks, Anupam Chakraborty Solution Architect | RDT - BAI Slalom Irvine, CA 92618 | USA | Pacific Time +1 201 699 6936 | anupam.chakraborty@slalom.com


From: pradeepchauhanmule notifications@github.com Sent: Wednesday, October 7, 2020 11:18 AM To: mulesoft-catalyst/mule-sonarqube-plugin Cc: Anupam Chakraborty; Author Subject: Re: [mulesoft-catalyst/mule-sonarqube-plugin] How to use in Parallel with XML Pluging? (#11)

We have a global SonarQube Server which has other application using XML Plugin. How can I force the project to use the Mule plugin without removing the .xml from the XML Language plugin?

You can update your SonarQube Project "General Settings" to ignore the .xml in XML Plugin. This way you wont affect rest of the applications.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/mulesoft-catalyst/mule-sonarqube-plugin/issues/11#issuecomment-705110530", "url": "https://github.com/mulesoft-catalyst/mule-sonarqube-plugin/issues/11#issuecomment-705110530", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

pradeepchauhanmule commented 3 years ago

You mean XML files within your Mule project which are not Mule flows ? For those you can write your own custom rules under the Mule rules.

But XML files in other non-mule projects wont get affected since you updated only your project general settings to ignore .xml in the XML plugin.

fperezpa commented 3 years ago

Hi @anupam-chakraborty, what @pradeepchauhanmule is saying is correct. At the project level, go to Administration and remove the extension .xml. That will allow you to run this plugin. As you are not modifying anything from the general Administration the other projects will run as usual.

Screen Shot 2020-10-11 at 8 39 54 PM

Please let us know is that works for you. To run it for the first time, maybe you will you to do it at the general level so you could see the protect but then you could roll it back and updating it at the project level.

anupam-chakraborty commented 3 years ago

Hi,

Let me try this out and let you know. Thanks for the help around this.

On Sun, Oct 11, 2020, 4:52 PM Franco Perez Parma notifications@github.com wrote:

Hi @anupam-chakraborty https://github.com/anupam-chakraborty, what @pradeepchauhanmule https://github.com/pradeepchauhanmule is saying is correct. At the project level, go to Administration and remove the extension .xml. That will allow you to run this plugin. As you are not modifying anything from the general Administration the other projects will run as usual.

[image: Screen Shot 2020-10-11 at 8 39 54 PM] https://user-images.githubusercontent.com/19441093/95693501-0dbf2d00-0c03-11eb-915a-3810b050bb2e.png

Please let us know is that works for you. To run it for the first time, maybe you will you to do it at the general level so you could see the protect but then you could roll it back and updating it at the project level.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mulesoft-catalyst/mule-sonarqube-plugin/issues/11#issuecomment-706788201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK26YE2JSTOJMARHNTHTKRDSKJAL5ANCNFSM4R6JEMCA .

fperezpa commented 3 years ago

I guess you also will have to update the mule plugin so it doesn't interfere with the rest of the projects. You could put any extension to make it work. For example: ![Uploading Screen Shot 2020-10-11 at 9.18.15 PM.png…]()

Hope this helps.

anupam-chakraborty commented 3 years ago

We are testing this. Will close as soon as I can finish the testing with the necessary update.

fperezpa commented 3 years ago

I will close this issue. Please let us know if you have any other issue