[AZ-372] Apply dotnet format whitespace cleanup; archive batch 22
ci/woodpecker/push/01-test Pipeline was successful
ci/woodpecker/push/02-build-push Pipeline was successful

Pure whitespace-only cleanup uncovered by the new format gate from the
previous commit. Verified via `git diff -w --stat`: only 4 files differ
when whitespace is ignored, and those differ only by the BOM byte.

Cleanup kinds applied across 22 source files:
- BOM removal (MapConfig.cs, SatTile.cs, GeoUtils.cs,
  IntegrationTests/Program.cs)
- CRLF -> LF (IntegrationTests/Program.cs)
- Trailing whitespace on blank lines (Common, Api, DataAccess,
  IntegrationTests, Services.RegionProcessing,
  Services.TileDownloader)
- Final newline added (RoutePoint.cs, GeoPoint.cs, others)

After this commit `dotnet format whitespace SatelliteProvider.sln
--verify-no-changes` exits 0; AC-1 is enforceable from `scripts/
run-tests.sh` going forward.

Also lands the batch 22 report, code-review report
(PASS_WITH_WARNINGS, 2 Low findings — both deferred per spec),
dependency-table status update (AZ-372 -> Done (In Testing)), task
archive (todo/ -> done/), and autodev state update.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-05-11 04:43:08 +03:00
parent 68359350fc
commit 534ab41b8e
28 changed files with 519 additions and 279 deletions
@@ -105,12 +105,12 @@ public static class RouteTestHelpers
public static void PrintGeneratedFiles(RouteResponseModel route, int uniqueTileCount, bool includeZip = false)
{
var stitchedInfo = new FileInfo(route.StitchedImagePath!);
Console.WriteLine("Files Generated:");
Console.WriteLine($" ✓ CSV: {Path.GetFileName(route.CsvFilePath)} ({uniqueTileCount} tiles)");
Console.WriteLine($" ✓ Summary: {Path.GetFileName(route.SummaryFilePath)}");
Console.WriteLine($" ✓ Stitched Map: {Path.GetFileName(route.StitchedImagePath)} ({stitchedInfo.Length / 1024:F2} KB)");
if (includeZip && !string.IsNullOrEmpty(route.TilesZipPath))
{
var zipInfo = new FileInfo(route.TilesZipPath);
@@ -125,20 +125,20 @@ public static class RouteTestHelpers
Console.WriteLine($" Route ID: {route.Id}");
Console.WriteLine($" Total Points: {route.TotalPoints}");
Console.WriteLine($" Distance: {route.TotalDistanceMeters:F2}m");
if (geofenceCount.HasValue)
{
Console.WriteLine($" Geofence Regions: {geofenceCount.Value}");
}
Console.WriteLine($" Unique Tiles: {uniqueTileCount}");
if (includeZip && !string.IsNullOrEmpty(route.TilesZipPath))
{
var zipInfo = new FileInfo(route.TilesZipPath);
Console.WriteLine($" ZIP File Size: {zipInfo.Length / 1024:F2} KB");
}
Console.WriteLine($" Maps Ready: {route.MapsReady}");
Console.WriteLine();
}
@@ -146,7 +146,7 @@ public static class RouteTestHelpers
public static async Task<RouteResponseModel> CreateRoute(HttpClient httpClient, CreateRouteRequest request)
{
var response = await httpClient.PostAsJsonAsync("/api/satellite/route", request, JsonWriteOptions);
if (!response.IsSuccessStatusCode)
{
var errorContent = await response.Content.ReadAsStringAsync();
@@ -154,7 +154,7 @@ public static class RouteTestHelpers
}
var route = await response.Content.ReadFromJsonAsync<RouteResponseModel>(JsonOptions);
if (route == null)
{
throw new Exception("No route data returned from API");
@@ -164,24 +164,24 @@ public static class RouteTestHelpers
}
public static async Task<RouteResponseModel> WaitForRouteReady(
HttpClient httpClient,
Guid routeId,
int maxAttempts = 180,
HttpClient httpClient,
Guid routeId,
int maxAttempts = 180,
int pollInterval = 3000)
{
for (int attempt = 0; attempt < maxAttempts; attempt++)
{
await Task.Delay(pollInterval);
var getResponse = await httpClient.GetAsync($"/api/satellite/route/{routeId}");
if (!getResponse.IsSuccessStatusCode)
{
throw new Exception($"Failed to get route status: {getResponse.StatusCode}");
}
var currentRoute = await getResponse.Content.ReadFromJsonAsync<RouteResponseModel>(JsonOptions);
if (currentRoute == null)
{
throw new Exception("No route returned");