Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve code quality across multiple files #203

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented Oct 7, 2024

  • Update CancelAfterAsync in BackgroundQueue.cs to use CancelAsync and improved TimeoutException message.
  • Modifie ExecuteAsync in BackgroundQueueService.cs to return immediately on cancellation exceptions.
  • Enhance ExecuteTaskChunk in ConcurrentBackgroundQueueService.cs to throw InvalidOperationException for null TaskQueue.
  • Change exception types in CronJobServiceExtensions.cs and Account.cs to InvalidOperationException.
  • Follow dispose pattern in DelayedFileSystemWatcher.cs and CaptchaSvgGenerator.cs and CronJobService.cs
  • Implement IEqualityComparer in Angle and GermanHoliday classes.
  • Refactor Location.cs for better readability.
  • Make classes MaidenheadLocator, StringFormatter, and Constants static
  • Update comments for clarity and removed redundant code.

- Update `CancelAfterAsync` in `BackgroundQueue.cs` to use `CancelAsync` and improved `TimeoutException` message.
- Modifie `ExecuteAsync` in `BackgroundQueueService.cs` to return immediately on cancellation exceptions.
- Enhance `ExecuteTaskChunk` in `ConcurrentBackgroundQueueService.cs` to throw `InvalidOperationException` for null `TaskQueue`.
- Change exception types in `CronJobServiceExtensions.cs` and `Account.cs` to `InvalidOperationException`.
- Follow dispose pattern in `DelayedFileSystemWatcher.cs` and `CaptchaSvgGenerator.cs` and `CronJobService.cs`
- Implement `IEqualityComparer` in `Angle` and `GermanHoliday` classes.
- Refactor `Location.cs` for better readability.
- Make classes `MaidenheadLocator`, `StringFormatter`, and `Constants` static
- Update comments for clarity and removed redundant code.
Copy link

sonarcloud bot commented Oct 7, 2024

@axunonb axunonb merged commit 4d34af8 into main Oct 7, 2024
4 checks passed
@axunonb axunonb deleted the pr/code-quality branch October 7, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant