I hope to demonstrate the value of ReSharper for my team. I want to try the InspectCode command line tool released by JetBrains. It works great when I point it to my solution, but it analyzes all the test projects and some generated files. I want to exclude them from the scan. The documentation states
If you want to configure InspectCode on a CI server, you can do all the configurations locally using ReSharper
For various reasons, I canβt even install the ReSharper demo at the moment to do this. InspectCode.exe can generate a configuration file for me, but it is unclear how I can manually edit this to exclude certain files or projects from analysis. Here is the automatically generated xml:
<?xml version="1.0" encoding="utf-8"?>
<InspectCodeOptions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NoSolutionWideAnalysis>false</NoSolutionWideAnalysis>
<IncludedProjects />
<SuppressBuildInSettings>false</SuppressBuildInSettings>
<Debug>false</Debug>
<Extensions />
<Properties />
<DumpIssuesTypes>false</DumpIssuesTypes>
</InspectCodeOptions>
How can I modify this xml to exclude files ending in "generate.cs", or any file or project with a "test" in the name?
UPDATE
derigel: I see what I did wrong. I have reset my ReSharper configuration and run again. Now all I changed in the settings is go to ReSharper -> Options -> Code Inspection -> Settings -> Edit Items to Skip. I added the file mask "test".
save-to β [SOLUTIONNAME] , . :
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/ExcludedFiles/FileMasksToSkip/=_002Atest_002A/@EntryIndexedValue">True</s:Boolean>
InspectCode.exe , , /config =FILENAME.DotSettings
D:\SVN\Development\\OpenSolutionClinicalID_v1.0_Development\SRC\OpenSolutionConnect.sln.DotSettings. Caused b y: System.InvalidOperationException: XML (1, 2). --- > System.InvalidOperationException: . Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderInspectCodeSettingsData.Read3_InspectCodeOptions() --- --- System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents)
JetBrains.CommandLine.Common.Options.OptionsUtils.DeserializeFromFile [] (FileSystemPath pathToConfig)