I have a large number of .NET Core projects, with similar configurations where I need to include/exclude stuff from a number of directories etc.
I’m using the GitHub Actions to analyze, and I know I can pass a whole bunch of parameters to the command-line begin, but that will be really hard to manage. Does anyone know if there is any way to do things with an configuration file etc, so that I don’t have to do it project-by-project in the UI?
Documentation wasn’t clear for the .NET Code side.
@mitchelsellers as it says in the docs, you can edit the SonarQube.Analysis.xml file that is installed with the scanner; any settings in that file will be applied to all analyses, unless overridden.
What the docs don’t say currently is that the scanner supports specifying an alternative SonarQube.Analysis.xml file with the command line switch /s:[path to xml file] (there is a PR to fix this omission from the docs).
Note that when using the /s parameter you might find you need to pass an absolute path. This is being tracked by S4NET-#424.
@mitchelsellers apologies for the delay. The .NET Core and Net FX versions of the scanner are built from the same source, so that behaviour should be the same.