Skip to content

Commit f0fc642

Browse files
hossameldinmiclaude
andcommitted
Fix CI format drift and deploy-staging workflow YAML
dotnet format whitespace fixes for the 6 files failing the CI "Check formatting" gate (exit code 2). Indent the REMOTE heredoc terminator inside the run block scalar: at column 0 it terminated the YAML block and made the workflow file unparseable (both deploy-staging runs failed at 0s with "workflow file issue"). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012Hshqj5eFfJNWCX6XNMxCh
1 parent ca72641 commit f0fc642

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/deploy-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ jobs:
8484
git checkout "$BRANCH"
8585
git pull --ff-only origin "$BRANCH"
8686
bash scripts/deploy-staging.sh
87-
REMOTE
87+
REMOTE

src/Balsm.Infrastructure/Audit/AuditSaveChangesInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public override async ValueTask<int> SavedChangesAsync(
2929
{
3030
var action = e.State switch
3131
{
32-
32+
3333
EntityState.Added => "Created",
3434
EntityState.Deleted => "Deleted",
3535
_ => e.Entity.IsDeleted ? "SoftDeleted" : "Updated"

src/Balsm.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ private static async Task HandleExceptionAsync(HttpContext context, Exception ex
5050
Status = statusCode,
5151
Title = title,
5252
Type = $"https://httpstatuses.io/{statusCode}",
53-
Extensions =
54-
{
53+
Extensions =
54+
{
5555
["correlationId"] = correlationId,
56-
["sentry"] = sentryEventId
56+
["sentry"] = sentryEventId
5757
}
5858
};
5959

src/Balsm.Supervisor/Cli/CliRouter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public static async Task<int> RunAsync(string[] args)
2121

2222
return args[0].ToLowerInvariant() switch
2323
{
24-
"status" => await StatusCommand.RunAsync(json),
24+
"status" => await StatusCommand.RunAsync(json),
2525
"version" => await VersionCommand.RunAsync(json),
26-
"logs" => await LogsCommand.RunAsync(args, json),
27-
_ => UsageError(args[0])
26+
"logs" => await LogsCommand.RunAsync(args, json),
27+
_ => UsageError(args[0])
2828
};
2929
}
3030

src/Balsm.Supervisor/Cli/LogsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static async Task<int> RunAsync(string[] args, bool json)
4747
{
4848
var name = item.GetProperty("name").GetString();
4949
var size = item.GetProperty("sizeBytes").GetInt64();
50-
var mod = item.GetProperty("lastModified").GetDateTime();
50+
var mod = item.GetProperty("lastModified").GetDateTime();
5151
Console.WriteLine($" {mod:yyyy-MM-dd HH:mm} {FormatBytes(size),10} {name}");
5252
}
5353
return 0;

src/Balsm.Supervisor/Cli/StatusCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public static async Task<int> RunAsync(bool json)
5454
var root = doc.RootElement;
5555

5656
var running = root.TryGetProperty("isRunning", out var r) && r.GetBoolean();
57-
var mode = root.TryGetProperty("mode", out var m) ? m.GetString() : "?";
58-
var version = root.TryGetProperty("version", out var v) ? v.GetString() : "?";
59-
var pid = root.TryGetProperty("pid", out var p) ? p.GetInt32().ToString() : "?";
57+
var mode = root.TryGetProperty("mode", out var m) ? m.GetString() : "?";
58+
var version = root.TryGetProperty("version", out var v) ? v.GetString() : "?";
59+
var pid = root.TryGetProperty("pid", out var p) ? p.GetInt32().ToString() : "?";
6060
var httpPort = root.TryGetProperty("httpPort", out var hp) ? hp.GetInt32() : port;
6161

6262
Console.WriteLine($" status : {(running ? "running" : "stopped")}");

src/Modules/Entity/Balsm.Entity.Infrastructure/Data/Configurations/EntityTypeConfiguration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Balsm.Entity.Infrastructure.Data.Configurations;
77
internal sealed class EntityTypeConfiguration : IEntityTypeConfiguration<EntityType>
88
{
99
private static readonly Guid PharmacyId = new("10000000-0000-0000-0000-000000000001");
10-
private static readonly Guid ClinicId = new("10000000-0000-0000-0000-000000000002");
10+
private static readonly Guid ClinicId = new("10000000-0000-0000-0000-000000000002");
1111
private static readonly Guid HospitalId = new("10000000-0000-0000-0000-000000000003");
1212

1313
private static readonly DateTime SeedTime = new(2025, 1, 1, 0, 0, 0, DateTimeKind.Utc);
@@ -18,8 +18,8 @@ public void Configure(EntityTypeBuilder<EntityType> builder)
1818
builder.HasQueryFilter(e => !e.IsDeleted);
1919

2020
builder.HasData(
21-
new EntityType(PharmacyId) { Code = "pharmacy", LabelEn = "Pharmacy", LabelAr = "صيدلية", IsSeeded = true, CreatedAt = SeedTime },
22-
new EntityType(ClinicId) { Code = "clinic", LabelEn = "Clinic", LabelAr = "عيادة", IsSeeded = true, CreatedAt = SeedTime },
21+
new EntityType(PharmacyId) { Code = "pharmacy", LabelEn = "Pharmacy", LabelAr = "صيدلية", IsSeeded = true, CreatedAt = SeedTime },
22+
new EntityType(ClinicId) { Code = "clinic", LabelEn = "Clinic", LabelAr = "عيادة", IsSeeded = true, CreatedAt = SeedTime },
2323
new EntityType(HospitalId) { Code = "hospital", LabelEn = "Hospital", LabelAr = "مستشفى", IsSeeded = true, CreatedAt = SeedTime }
2424
);
2525
}

0 commit comments

Comments
 (0)