From 1260fd0a6bd2d767133a6b445b1fb9fbce3ca90b Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Fri, 28 Jul 2017 12:23:33 +0200 Subject: [PATCH] Correct keyword spacing in Generator.Bind. --- src/Generator.Bind/CSharpSpecWriter.cs | 6 +++--- stylecop.ruleset | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Generator.Bind/CSharpSpecWriter.cs b/src/Generator.Bind/CSharpSpecWriter.cs index 4e4958f..f9c00c7 100644 --- a/src/Generator.Bind/CSharpSpecWriter.cs +++ b/src/Generator.Bind/CSharpSpecWriter.cs @@ -709,13 +709,13 @@ namespace Bind if (!String.IsNullOrEmpty(p.ComputeSize)) { int count; - if(Int32.TryParse(p.ComputeSize, out count)) + if (Int32.TryParse(p.ComputeSize, out count)) { attributes.Add(String.Format("CountAttribute(Count = {0})", count)); } else { - if(p.ComputeSize.StartsWith("COMPSIZE")) + if (p.ComputeSize.StartsWith("COMPSIZE")) { //remove the compsize hint, just keep comma delimited param names var len = "COMPSIZE(".Length; @@ -729,7 +729,7 @@ namespace Bind } } - if(attributes.Count != 0) + if (attributes.Count != 0) { sb.Append("["); sb.Append(string.Join(", ", attributes)); diff --git a/stylecop.ruleset b/stylecop.ruleset index 218f7bb..b26ed9d 100644 --- a/stylecop.ruleset +++ b/stylecop.ruleset @@ -6,7 +6,7 @@ - + -- 2.7.4