Skip to content

Commit 3eb753a

Browse files
author
Kapil Borle
committed
Add newline after help snippet
1 parent 4731dd1 commit 3eb753a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Rules/ProvideCommentHelp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private IEnumerable<CorrectionExtent> GetCorrection(FunctionDefinitionAst funcDe
157157
funcDefnAst.Extent.StartLineNumber,
158158
funcDefnAst.Extent.StartColumnNumber,
159159
funcDefnAst.Extent.StartColumnNumber,
160-
helpBuilder.GetCommentHelp(),
160+
helpBuilder.GetCommentHelp() + Environment.NewLine,
161161
funcDefnAst.Extent.File);
162162
}
163163

Tests/Rules/ProvideCommentHelp.tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ An example
5757
.NOTES
5858
General notes
5959
#>
60+
6061
'@
6162
Test-Correction $def $expectedCorrection
6263
}
@@ -86,6 +87,7 @@ An example
8687
.NOTES
8788
General notes
8889
#>
90+
8991
'@
9092
Test-Correction $def $expectedCorrection
9193
}
@@ -118,6 +120,7 @@ An example
118120
.NOTES
119121
General notes
120122
#>
123+
121124
'@
122125
Test-Correction $def $expectedCorrection
123126
}

0 commit comments

Comments
 (0)