Skip to content

Commit

Permalink
Fixing thing
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Apr 17, 2023
1 parent e61f38d commit a8d1c64
Show file tree
Hide file tree
Showing 6 changed files with 23,965 additions and 1,156 deletions.
2 changes: 1 addition & 1 deletion Src/CSharpier.Cli/CommandLineFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ CancellationToken cancellationToken
try
{
// TODO xml find correct formatter
codeFormattingResult = await CSharpFormatter.FormatAsync(
codeFormattingResult = await CodeFormatter.FormatAsync(
fileToFormatInfo.FileContents,
Path.GetExtension(fileToFormatInfo.Path),
printerOptions,
Expand Down
2 changes: 1 addition & 1 deletion Src/CSharpier.Playground/Controllers/FormatController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public FormatController(ILogger<FormatController> logger)
[HttpPost]
public async Task<FormatResult> Post([FromBody] string content, string fileExtension)
{
// TODO use the proper formatter class?
// TODO xml use the proper formatter class?
if (fileExtension == "cs")
{
var result = await CSharpFormatter.FormatAsync(
Expand Down
6 changes: 5 additions & 1 deletion Src/CSharpier.Tests/FormattingTests/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ public class BaseTest
{
private readonly DirectoryInfo rootDirectory = DirectoryFinder.FindParent("CSharpier.Tests");

protected async Task RunTest(string fileName, string fileExtensionWithoutDot, bool useTabs = false)
protected async Task RunTest(
string fileName,
string fileExtensionWithoutDot,
bool useTabs = false
)
{
var filePath = Path.Combine(
this.rootDirectory.FullName,
Expand Down
Loading

0 comments on commit a8d1c64

Please sign in to comment.