Skip to content

Commit 7d7c6eb

Browse files
committed
Fix: Auto Code Cleanup
1 parent 43e2ffa commit 7d7c6eb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/CodeOfChaos.CliArgsParser.Generators/Content/CommandGenerator/Generator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private static void GenerateSources(SourceProductionContext context, (Compilatio
6060
b.AppendLine();
6161
dto.ToCommandInitialization(b);
6262
b.AppendLine();
63-
} )
63+
})
6464
.AppendLine("}");
6565

6666
context.AddSource($"{dto.ClassName}.g.cs", builder.ToStringAndClear());

src/CodeOfChaos.CliArgsParser.Generators/Content/ParametersGenerator/Generator.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static void GenerateSources(SourceProductionContext context, (Compilatio
6363
.AppendLine($"public partial struct {dto.ToDeclarationName()} {{")
6464
.Indent(b => {
6565
b.AppendLine($"public static {dto.ClassName} FromRegistry(IUserInputRegistry registry) => new() {{");
66-
b.ForEachAppendLineIndented(dto.PropertyDtos, propertyDto => propertyDto.ToPropertyInitialization());
66+
b.ForEachAppendLineIndented(dto.PropertyDtos, itemFormatter: propertyDto => propertyDto.ToPropertyInitialization());
6767
b.AppendLine("};");
6868
})
6969
.Indent(b => {
@@ -73,6 +73,7 @@ private static void GenerateSources(SourceProductionContext context, (Compilatio
7373
object boxed = FromRegistry(registry)!;
7474
return (T)boxed;
7575
""");
76+
7677
b.AppendLine("}");
7778
})
7879
.AppendLine("}");

src/CodeOfChaos.CliArgsParser.Library/Shared/SemanticVersionDto.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ public void BumpVersion(VersionSection section) {
6464

6565
case VersionSection.Preview when Preview is null: {
6666
SemanticVersionDto newVersion = FromInput("Please enter a semantic version for the new preview version:");
67-
67+
6868
Major = newVersion.Major;
6969
Minor = newVersion.Minor;
7070
Patch = newVersion.Patch;
71-
Preview = newVersion.Preview ?? 0 ;
71+
Preview = newVersion.Preview ?? 0;
7272
return;
7373
}
7474

@@ -79,7 +79,7 @@ public void BumpVersion(VersionSection section) {
7979

8080
case VersionSection.Manual: {
8181
SemanticVersionDto newVersion = FromInput();
82-
82+
8383
Major = newVersion.Major;
8484
Minor = newVersion.Minor;
8585
Patch = newVersion.Patch;

0 commit comments

Comments
 (0)