Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
I use SonarQube 7.3, with all the included plugins. Trying to do a scan via our TFS server with the latest 4.* plugin for TFS/VSTS
I get this output:
2018-08-28T14:51:38.2738361Z INFO: Test paths: TmpIndTest.cs, Properties/AssemblyInfo.cs, TransformSimpleLageTests.cs, TransformSimpleLageV2Test.cs, PresentationsHelperTest.cs, RapportTest.cs, TestData/allaResultat.xml, TestData/antiResultat.xml, TestData/basunSparVaxel_rawResult.xml, TestData/basunSparVaxel_RappDef.xml, TestData/basunSparVaxel_rawResultEmpty.xml, TestData/BuggSimpleLageSorteringAccAvstRappDef.xml, TestData/BuggSimpleLageSorteringAccAvstR�Resultat.xml, TestData/BuggL�ngsamSimpleLageTransformationRapportdefinition.xml, TestData/BuggL�ngsamSimpleLageTransformationRapportdefinitionR�dataResultat.xml, TestData/l�ngsamSimpleLageRapportDefinition.xml, TestData/l�ngsamSimpleLageRapportResultat.xml, TestData/samk�rtResultat.xml, TestData/TestRapportDefinition.xml, packages.config, tfsMsTestConfig.runsettings
2018-08-28T14:51:38.2738361Z INFO: Source encoding: UTF-8, default locale: en_US
2018-08-28T14:51:38.2894647Z INFO: Index files
2018-08-28T14:51:38.2894647Z INFO: Excluded sources:
2018-08-28T14:51:38.2894647Z INFO: **/*.xml
2018-08-28T14:51:38.2894647Z INFO: 21 files indexed
2018-08-28T14:51:38.3050885Z INFO: 0 files ignored because of inclusion/exclusion patterns
2018-08-28T14:51:38.3050885Z INFO: Quality profile for cs: <Company Name>
2018-08-28T14:51:38.3050885Z INFO: Quality profile for xml: <Company Name>
2018-08-28T14:51:38.3207142Z WARNING: WARN: Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
2018-08-28T14:51:38.3207142Z INFO: Sensor C# Properties [csharp]
2018-08-28T14:51:38.3207142Z WARNING: WARN: No roslyn issues report not found for this project.
2018-08-28T14:51:38.3207142Z INFO: Sensor C# Properties [csharp] (done) | time=0ms
2018-08-28T14:51:38.3207142Z INFO: Sensor SonarJavaXmlFileSensor [java]
2018-08-28T14:51:38.3363426Z INFO: 13 source files to be analyzed
2018-08-28T14:51:38.3519642Z ERROR: Unable to parse xml file: D:\w1\1468\s\ProjectName2.Test\TestData\BuggL�ngsamSimpleLageTransformationRapportdefinition.xml
2018-08-28T14:51:48.7273631Z INFO: 1/13 files analyzed, current file: D:\w1\1468\s\ProjectName2.Test\TestData\BuggL�ngsamSimpleLageTransformationRapportdefinitionR�dataResultat.xml
2018-08-28T14:52:02.5091426Z INFO: 1/13 files analyzed, current file: D:\w1\1468\s\ProjectName2.Test\TestData\BuggL�ngsamSimpleLageTransformationRapportdefinitionR�dataResultat.xml
2018-08-28T14:52:15.9784136Z INFO: 1/13 files analyzed, current file: D:\w1\1468\s\ProjectName2.Test\TestData\BuggL�ngsamSimpleLageTransformationRapportdefinitionR�dataResultat.xml
2018-08-28T14:52:26.6975718Z INFO: ------------------------------------------------------------------------
2018-08-28T14:52:26.6975718Z INFO: EXECUTION FAILURE
2018-08-28T14:52:26.6975718Z INFO: ------------------------------------------------------------------------
As you can see I have excluded all xml files, but even though I have that exclusion filter, it tries to scan the xml files in the project.
The file is a 300MB+ and therefore it will fail trying to scan it, out of memory. The file doesn’t need to be scanned.
I also tried ignoring
TestData/**
**/TestData/**
*.xml
And none of that worked.
Any suggestions on what I am doing incorrectly?