fix: resolve SonarQube reliability and maintainability issues#555
fix: resolve SonarQube reliability and maintainability issues#555
Conversation
|
This PR contains 1839 lines changed across 16 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
493fe13 to
a8eab0c
Compare
|
This PR contains 1847 lines changed across 17 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1855 lines changed across 20 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
b612678 to
41f7a5e
Compare
|
This PR contains 6192 lines changed across 59 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1857 lines changed across 21 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 6194 lines changed across 59 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
33aff31 to
3737ad3
Compare
|
This PR contains 1860 lines changed across 22 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1892 lines changed across 22 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1952 lines changed across 23 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1957 lines changed across 23 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1975 lines changed across 24 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1983 lines changed across 24 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 1985 lines changed across 25 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 2002 lines changed across 25 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
PR Grade: B+ (provisionally A- once CI is green) Rationale:
Promotion criteria to A:
|
|
This PR contains 2007 lines changed across 25 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
Coverage update applied:
|
… add .sonarqube to gitignore
…ognitive complexity
…lection to scan script
…lection to scan script
- Fix S2699: Add explicit assertions to 5 blocker tests - Fix S2701: Replace Assert.Equal(true/false) with Assert.True/False - Fix S6966: Use await RunAsync/CloseAndFlushAsync in Web Program.cs - Fix S7781: Use replaceAll over replace in fix_resources.js - Fix S1144: Remove unused private methods, fields, and setters - Fix S1172: Remove unused method parameters and their call sites - Fix S4144: Remove duplicate TryReadAuthDuplicate method - Fix S1854: Remove useless assignment in OpenRouterProvider - Fix S2971: Simplify LINQ .Where().FirstOrDefault() to .FirstOrDefault() - Fix S3358: Extract 11 nested ternary operations into if/else chains - Fix S112: Replace System.Exception throws with specific exception types - Fix S108: Add comments to intentional empty catch blocks - Fix S4487: Remove unread _debugMode field and SetDebugMode method - Fix S1186: Remove empty Configure method from Web Program.cs - Fix S2365/S3358: Remove unused MainWindowVisibilityItems property - Fix S1118: Add protected constructors to Program classes - Fix S3881: Fix IDisposable implementations to conform to dispose pattern - Fix S6580: Use CultureInfo.InvariantCulture for date parsing - Fix S6562: Specify DateTimeKind for DateTime creation - Fix S3010: Move static field assignment to static method - Add sonar-issues.ps1 utility script for querying SonarQube API
1edfe85 to
024ade5
Compare
- ProviderDerivedModelAssignmentResolver: 15 tests (was 7.7%) - MonitorLauncherProcessController: 20 tests (was 15.2%) - GitHubAuthService: 15 tests (was 28.9%) - GitHubUpdateChecker: 10 tests (was 33.3%) - WebDatabaseService: 10 tests (was 46.8%) - AntigravityProvider: 20 tests (was 47.2%) - ConfigService: 11 tests (was 52.1%) - ProviderManager: 15 tests (was 61.9%) - Update sonar.ps1 to collect coverage from all test projects - Update sonar-issues.ps1 for coverage-by-file queries
|
This PR contains 2710 lines changed across 60 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 2717 lines changed across 60 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
|
This PR contains 2708 lines changed across 60 files. Details:
Recommendation: This is an automated message. Feel free to ignore if this PR is intentionally large. |
Summary
Changes by category
Test plan