public static DupFinderSettings RemoveExcludeComments(this DupFinderSettings toolSettings, params string[] excludeComments) { toolSettings = toolSettings.NewInstance(); var hashSet = new HashSet <string>(excludeComments); toolSettings.ExcludeCommentsInternal.RemoveAll(x => hashSet.Contains(x)); return(toolSettings); }
public static DupFinderSettings RemoveExcludeCodeRegions(this DupFinderSettings toolSettings, IEnumerable <string> excludeCodeRegions) { toolSettings = toolSettings.NewInstance(); var hashSet = new HashSet <string>(excludeCodeRegions); toolSettings.ExcludeCodeRegionsInternal.RemoveAll(x => hashSet.Contains(x)); return(toolSettings); }
public static DupFinderSettings SetOutputFile(this DupFinderSettings toolSettings, string outputFile) { toolSettings = toolSettings.NewInstance(); toolSettings.OutputFile = outputFile; return(toolSettings); }
public static DupFinderSettings SetConfigFile(this DupFinderSettings toolSettings, string configFile) { toolSettings = toolSettings.NewInstance(); toolSettings.ConfigFile = configFile; return(toolSettings); }
public static DupFinderSettings DisableShowText(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ShowText = false; return(toolSettings); }
public static DupFinderSettings SetShowText(this DupFinderSettings toolSettings, bool?showText) { toolSettings = toolSettings.NewInstance(); toolSettings.ShowText = showText; return(toolSettings); }
public static DupFinderSettings DisableNormalizeTypes(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NormalizeTypes = false; return(toolSettings); }
public static DupFinderSettings SetNormalizeTypes(this DupFinderSettings toolSettings, bool?normalizeTypes) { toolSettings = toolSettings.NewInstance(); toolSettings.NormalizeTypes = normalizeTypes; return(toolSettings); }
public static DupFinderSettings RemoveProperty(this DupFinderSettings toolSettings, string propertyKey) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove(propertyKey); return(toolSettings); }
public static DupFinderSettings ClearExcludeCodeRegions(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ExcludeCodeRegionsInternal.Clear(); return(toolSettings); }
public static DupFinderSettings AddExcludeCodeRegions(this DupFinderSettings toolSettings, IEnumerable <string> excludeCodeRegions) { toolSettings = toolSettings.NewInstance(); toolSettings.ExcludeCodeRegionsInternal.AddRange(excludeCodeRegions); return(toolSettings); }
public static DupFinderSettings SetExcludeCodeRegions(this DupFinderSettings toolSettings, IEnumerable <string> excludeCodeRegions) { toolSettings = toolSettings.NewInstance(); toolSettings.ExcludeCodeRegionsInternal = excludeCodeRegions.ToList(); return(toolSettings); }
public static DupFinderSettings AddExcludeComments(this DupFinderSettings toolSettings, params string[] excludeComments) { toolSettings = toolSettings.NewInstance(); toolSettings.ExcludeCommentsInternal.AddRange(excludeComments); return(toolSettings); }
public static DupFinderSettings SetExcludeComments(this DupFinderSettings toolSettings, params string[] excludeComments) { toolSettings = toolSettings.NewInstance(); toolSettings.ExcludeCommentsInternal = excludeComments.ToList(); return(toolSettings); }
public static DupFinderSettings SetProperties(this DupFinderSettings toolSettings, IDictionary <string, string> properties) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); return(toolSettings); }
public static DupFinderSettings ToggleDiscardLocalVars(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DiscardLocalVars = !toolSettings.DiscardLocalVars; return(toolSettings); }
public static DupFinderSettings ClearProperties(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Clear(); return(toolSettings); }
public static DupFinderSettings SetDiscardTypes(this DupFinderSettings toolSettings, bool?discardTypes) { toolSettings = toolSettings.NewInstance(); toolSettings.DiscardTypes = discardTypes; return(toolSettings); }
public static DupFinderSettings SetProperty(this DupFinderSettings toolSettings, string propertyKey, string propertyValue) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal[propertyKey] = propertyValue; return(toolSettings); }
public static DupFinderSettings EnableDiscardTypes(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DiscardTypes = true; return(toolSettings); }
public static DupFinderSettings ResetNormalizeTypes(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NormalizeTypes = null; return(toolSettings); }
public static DupFinderSettings SetDiscardCost(this DupFinderSettings toolSettings, bool?discardCost) { toolSettings = toolSettings.NewInstance(); toolSettings.DiscardCost = discardCost; return(toolSettings); }
public static DupFinderSettings ToggleNormalizeTypes(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NormalizeTypes = !toolSettings.NormalizeTypes; return(toolSettings); }
public static DupFinderSettings ResetDiscardCost(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DiscardCost = null; return(toolSettings); }
public static DupFinderSettings ResetShowText(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ShowText = null; return(toolSettings); }
public static DupFinderSettings DisableDiscardCost(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DiscardCost = false; return(toolSettings); }
public static DupFinderSettings ToggleShowText(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ShowText = !toolSettings.ShowText; return(toolSettings); }
public static DupFinderSettings ToggleDiscardCost(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DiscardCost = !toolSettings.DiscardCost; return(toolSettings); }
public static DupFinderSettings ResetConfigFile(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ConfigFile = null; return(toolSettings); }
public static DupFinderSettings ResetSource(this DupFinderSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Source = null; return(toolSettings); }