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