We have a number of multi language (C#, Java and Objective-C) repositories. Is it possible to create an aggregated scan pipeline?
I know I can build the C# project with the MSBuild tools, I can use the Gradle builder to handle Java, and I think I can use the SonarScanner CLI to handle Objective-C. But I am unsure in how to aggregate all of these scans into a single project, or if this is even possible.
What you’ve described is generally the default behavior. Where that falls down is when we implement analysis on top of opinionated build tools such as Maven and MSBuild.
Unfortunately, when analysis asks them “where are the source files” (i.e. the value of sonar.sources) they default to only responding with files for their languages.
The docs address handling this for SonarScanner for .NET. For any other scanner, you just override the default sonar.sources value on the analysis command line by adding `-Dsonar.sources=[comma-delimited list of source directories]
The takeaway: be careful how you include all files to scan and check our documentation for more information. If you are still confused, please post a follow-up here (or for anyone else reading this thread).