Skip to content

Commit 4770a41

Browse files
committed
applied .editorconfig
1 parent 43f8c58 commit 4770a41

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/CLI/CLI.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public sealed class LocRootCommand : RootCommand
5151

5252
public Argument<string> PathArgument { get; } = new Argument<string>("path")
5353
{
54-
Description = "The path to the file or the directory that contains the files to calculate the count of. Use '.' to refer to the current directory.",
54+
Description = "The path to the file or the directory that contains the files to calculate the count of. Use '.' to refer to the current directory.",
5555
};
56-
56+
5757
public LocRootCommand() : base("a tool to count the lines of projects")
5858
{
5959
FormatOption.CompletionSources.Add(Enum.GetValues<Format>().Select(value => value.ToString().ToLowerInvariant()).ToArray());
@@ -92,7 +92,7 @@ async Task Execute(ParseResult parseResult, CancellationToken cancellationToken)
9292

9393
var result = await Loc.Run(path, data, excludeDirectories, excludeFiles, cancellationToken);
9494

95-
if (listFiles)
95+
if(listFiles)
9696
{
9797
Console.WriteLine();
9898
}

src/Errors/Error.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
public abstract record Error : IError
44
{
55
public abstract override string ToString();
6-
}
6+
}

src/Errors/IError.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
namespace Linecount.Errors;
22

3-
public interface IError;
3+
public interface IError;

src/FilterType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ public enum FilterType
66
Filtered,
77
FilteredExcept,
88
FilteredBoth
9-
}
9+
}

src/Loc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
using Linecount.Logging;
66
using Linecount.Result;
77

8-
namespace Linecount;
8+
using ReportResult = Linecount.Result.Result<Linecount.LineCountReport, Linecount.Errors.IError>;
99

10-
using ReportResult = Result<LineCountReport, IError>;
10+
namespace Linecount;
1111

1212
// The excessive exception handling is necessitated by the fact that thrown exceptions don't carry any information about the file that caused them, rendering top-level exception handling infeasible.
1313
public static class Loc

0 commit comments

Comments
 (0)