-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove empty lines at beginning of statements without braces (#980)
* Remove empty lines at beginning of statements without braces closes #979 * formatting files * try again
- Loading branch information
Showing
5 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/OptionalBraces.expected.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if (true) | ||
CallMethod(); | ||
else if (false) | ||
CallMethod(); | ||
else | ||
CallMethod(); | ||
|
||
for (; ; ) | ||
CallMethod(); | ||
|
||
while (true) | ||
CallMethod(); |
17 changes: 17 additions & 0 deletions
17
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/OptionalBraces.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
if (true) | ||
|
||
CallMethod(); | ||
else if (false) | ||
|
||
CallMethod(); | ||
else | ||
|
||
CallMethod(); | ||
|
||
for (; ; ) | ||
|
||
CallMethod(); | ||
|
||
while (true) | ||
|
||
CallMethod(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters