Correct keyword spacing in Generator.Bind.

This commit is contained in:
Jarl Gullberg 2017-07-28 12:23:33 +02:00
parent 6ea763c821
commit 1260fd0a6b
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23
2 changed files with 4 additions and 4 deletions

View file

@ -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));

View file

@ -6,7 +6,7 @@
<Rule Id="SA0002" Action="Error" /> <!-- Invalid settings file -->
<!-- Spacing rules -->
<Rule Id="SA1000" Action="None" /> <!-- Keywords must be spaced correctly -->
<Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
<Rule Id="SA1001" Action="None" /> <!-- Commas must be spaced correctly -->
<Rule Id="SA1002" Action="None" /> <!-- Semicolons must be spaced correctly -->
<Rule Id="SA1003" Action="None" /> <!-- Symbols must be spaced correctly -->