Skip to content

Commit 2a9a32b

Browse files
hemanandrclaude
andcommitted
lint: fix code quality issues and improve type safety
Frontend improvements: - Extract BucketType to shared types file for better organization - Fix React key prop warnings with unique keys - Fix async handler warnings with proper void wrapping - Run Prettier formatting across all frontend files - Organize imports and remove unused exports Backend improvements: - Fix whitespace formatting issues with dotnet format - Address final newline requirements - Build passes with only 1 nullable reference warning Remaining linting issues are primarily in UI component library files which should not be modified to maintain compatibility. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a50d52a commit 2a9a32b

File tree

110 files changed

+3104
-2628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+3104
-2628
lines changed

ThingConnect.Pulse.Server/Controllers/StatusController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ public async Task<ActionResult<HistoryResponseDto>> GetEndpointHistoryAsync(
144144
return StatusCode(500, new { message = "Internal server error while retrieving endpoint history" });
145145
}
146146
}
147-
}
147+
}

ThingConnect.Pulse.Server/Controllers/TestMonitoringController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,4 @@ public async Task<IActionResult> GetOutages()
160160

161161
return Ok(new { Outages = outages, Count = outages.Count });
162162
}
163-
}
163+
}

ThingConnect.Pulse.Server/Controllers/TestRollupController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ public async Task<IActionResult> ProcessRollupDailyAsync()
5656
return StatusCode(500, new { message = "Error processing rollups", error = ex.Message });
5757
}
5858
}
59-
}
59+
}

ThingConnect.Pulse.Server/Infrastructure/PlainTextInputFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public override async Task<InputFormatterResult> ReadRequestBodyAsync(
2222
string content = await reader.ReadToEndAsync();
2323
return await InputFormatterResult.SuccessAsync(content);
2424
}
25-
}
25+
}

ThingConnect.Pulse.Server/Models/CheckResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ public static CheckResult Failure(Guid endpointId, DateTimeOffset timestamp, str
6161
Error = error
6262
};
6363
}
64-
}
64+
}

ThingConnect.Pulse.Server/Models/ConfigDtos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ public sealed class TargetSection
7676
public string? Path { get; set; }
7777
public string? ExpectText { get; set; }
7878
public string? UserAgent { get; set; }
79-
}
79+
}

ThingConnect.Pulse.Server/Models/HistoryDtos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ public sealed class HistoryResponseDto
3939
public List<RollupBucketDto> Rollup15m { get; set; } = new();
4040
public List<DailyBucketDto> RollupDaily { get; set; } = new();
4141
public List<OutageDto> Outages { get; set; } = new();
42-
}
42+
}

ThingConnect.Pulse.Server/Models/StatusDtos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ public sealed class PagedLiveDto
5050
{
5151
public PageMetaDto Meta { get; set; } = default!;
5252
public List<LiveStatusItemDto> Items { get; set; } = new();
53-
}
53+
}

ThingConnect.Pulse.Server/Services/ConfigParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ private static string GetDocsDirectory()
135135

136136
return Path.Combine(Directory.GetCurrentDirectory(), "..", "docs");
137137
}
138-
}
138+
}

ThingConnect.Pulse.Server/Services/ConfigurationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,4 @@ private static string GenerateVersionId()
236236
return DateTimeOffset.UtcNow.ToString("yyyyMMddHHmmss") + "-" +
237237
Guid.NewGuid().ToString("N")[..8];
238238
}
239-
}
239+
}

0 commit comments

Comments
 (0)