Exemplo n.º 1
0
 public static DupFinderSettings SetDiscardCost(this DupFinderSettings toolSettings, bool?discardCost)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.DiscardCost = discardCost;
     return(toolSettings);
 }
Exemplo n.º 2
0
 public static DupFinderSettings ClearProperties(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PropertiesInternal.Clear();
     return(toolSettings);
 }
Exemplo n.º 3
0
 public static DupFinderSettings EnableDiscardLocalVars(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.DiscardLocalVars = true;
     return(toolSettings);
 }
Exemplo n.º 4
0
 public static DupFinderSettings DisableDiscardTypes(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.DiscardTypes = false;
     return(toolSettings);
 }
Exemplo n.º 5
0
 static partial void PostProcess(DupFinderSettings toolSettings);
Exemplo n.º 6
0
 public static DupFinderSettings AddExcludeCodeRegions(this DupFinderSettings toolSettings, IEnumerable <string> excludeCodeRegions)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeCodeRegionsInternal.AddRange(excludeCodeRegions);
     return(toolSettings);
 }
Exemplo n.º 7
0
 public static DupFinderSettings SetShowText(this DupFinderSettings toolSettings, bool?showText)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.ShowText = showText;
     return(toolSettings);
 }
Exemplo n.º 8
0
 public static DupFinderSettings SetExcludeComments(this DupFinderSettings toolSettings, params string[] excludeComments)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeCommentsInternal = excludeComments.ToList();
     return(toolSettings);
 }
Exemplo n.º 9
0
 public static DupFinderSettings ResetNormalizeTypes(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.NormalizeTypes = null;
     return(toolSettings);
 }
Exemplo n.º 10
0
 public static DupFinderSettings ToggleNormalizeTypes(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.NormalizeTypes = !toolSettings.NormalizeTypes;
     return(toolSettings);
 }
Exemplo n.º 11
0
 public static DupFinderSettings SetNormalizeTypes(this DupFinderSettings toolSettings, bool?normalizeTypes)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.NormalizeTypes = normalizeTypes;
     return(toolSettings);
 }
Exemplo n.º 12
0
 public static DupFinderSettings SetProperty(this DupFinderSettings toolSettings, string propertyKey, string propertyValue)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PropertiesInternal[propertyKey] = propertyValue;
     return(toolSettings);
 }
Exemplo n.º 13
0
 public static DupFinderSettings RemoveProperty(this DupFinderSettings toolSettings, string propertyKey)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.PropertiesInternal.Remove(propertyKey);
     return(toolSettings);
 }
Exemplo n.º 14
0
 public static DupFinderSettings SetOutputFile(this DupFinderSettings toolSettings, string outputFile)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.OutputFile = outputFile;
     return(toolSettings);
 }
Exemplo n.º 15
0
 public static DupFinderSettings ResetShowText(this DupFinderSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.ShowText = null;
     return(toolSettings);
 }
Exemplo n.º 16
0
 public static DupFinderSettings ResetOutputFile(this DupFinderSettings toolSettings)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.OutputFile = null;
     return(toolSettings);
 }
Exemplo n.º 17
0
 public static DupFinderSettings DisableShowText(this DupFinderSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.ShowText = false;
     return(toolSettings);
 }
Exemplo n.º 18
0
 public static DupFinderSettings AddExcludeComments(this DupFinderSettings toolSettings, params string[] excludeComments)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeCommentsInternal.AddRange(excludeComments);
     return(toolSettings);
 }
Exemplo n.º 19
0
 public static DupFinderSettings ToggleShowText(this DupFinderSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.ShowText = !toolSettings.ShowText;
     return(toolSettings);
 }
Exemplo n.º 20
0
 public static DupFinderSettings SetExcludeCodeRegions(this DupFinderSettings toolSettings, IEnumerable <string> excludeCodeRegions)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeCodeRegionsInternal = excludeCodeRegions.ToList();
     return(toolSettings);
 }
Exemplo n.º 21
0
 public static DupFinderSettings ResetCreateConfigFile(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.CreateConfigFile = null;
     return(toolSettings);
 }
Exemplo n.º 22
0
 public static DupFinderSettings ClearExcludeCodeRegions(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeCodeRegionsInternal.Clear();
     return(toolSettings);
 }
Exemplo n.º 23
0
 public static DupFinderSettings SetConfigFile(this DupFinderSettings toolSettings, string configFile)
 {
     toolSettings            = toolSettings.NewInstance();
     toolSettings.ConfigFile = configFile;
     return(toolSettings);
 }
Exemplo n.º 24
0
 public static DupFinderSettings SetDiscardTypes(this DupFinderSettings toolSettings, bool?discardTypes)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.DiscardTypes = discardTypes;
     return(toolSettings);
 }
Exemplo n.º 25
0
 public static DupFinderSettings SetSource(this DupFinderSettings toolSettings, string source)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Source = source;
     return(toolSettings);
 }
Exemplo n.º 26
0
 public static DupFinderSettings ToggleDiscardTypes(this DupFinderSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.DiscardTypes = !toolSettings.DiscardTypes;
     return(toolSettings);
 }
Exemplo n.º 27
0
 public static DupFinderSettings ResetSource(this DupFinderSettings toolSettings)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Source = null;
     return(toolSettings);
 }
Exemplo n.º 28
0
 public static DupFinderSettings ResetDiscardCost(this DupFinderSettings toolSettings)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.DiscardCost = null;
     return(toolSettings);
 }
Exemplo n.º 29
0
 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);
 }