SonarScanner Analyzers

Hi,

I am scanning my project but i want to disable some of the other custom plugins that are already present in the SonarQube during Analysis of my project. For example, In my project i have some XML Files but i dont want the XML Analyzer to run and analyze the XML or XSDs in that project.

Can you please tell me how to do that?

Thanks,
Anudit

Hi Anudit,

This page in the docs has a nice discussion of that.

 
HTH,
Ann

1 Like

Thanks Ann but i have a more specific requirement, where i want to still analyze those files using my plugin but dont want other plugin analyzers to work on those files.

Kindly help on how to do that.

Thanks,
Anudit

Hi Anudit,

It sounds like you need to remove those rules from your profile.

 
Ann

I would totally understand if it was just a few set of Rules but i want to disable the whole XML Plugin itself so that it doesnt analyze for example. Need help with that.

Thanks,
Anudit

Hi Anudit,

If you don’t want XML rules to run, and creating an empty, default XML profile doesn’t suit you, then your next best option, as mentioned in the docs I linked to in my first response is to edit the XML file suffixes to something like “foo”:

File Suffixes

For most languages, you can restrict the scope of analysis to files matching a set of extensions. Go to Project Settings > General Settings > [Language] to set the File suffixes property.

 
Ann