Fix issues with High CPU Usage on background #1142
Annotations
27 warnings
test-codebase:
src/UniGetUI.Core.Settings/SettingsEngine_Dictionaries.cs#L33
Possible null reference return.
|
test-codebase:
src/WindowsPackageManager.Interop/WindowsPackageManager/ClassModel.cs#L11
Non-nullable property 'InterfaceType' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
test-codebase:
src/WindowsPackageManager.Interop/WindowsPackageManager/ClassModel.cs#L16
Non-nullable property 'ProjectedClassType' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
test-codebase:
src/WindowsPackageManager.Interop/WindowsPackageManager/ClassModel.cs#L21
Non-nullable property 'Clsids' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
test-codebase:
src/UniGetUI.Core.Tools/DWMThreadHelper.cs#L134
Avoid multiple blank lines (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2000)
|
test-codebase:
src/UniGetUI.Core.IconStore/IconCacheEngine.cs#L233
Remove unused parameter 'extension' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0060)
|
test-codebase:
src/UniGetUI.PackageEngine.PackageManagerClasses/Packages/Classes/IgnoredUpdatesDatabase.cs#L73
Nullability of reference types in value of type 'Dictionary<string, string>' doesn't match target type 'IReadOnlyDictionary<string, string?>'.
|
test-codebase:
src/UniGetUI.PackageEngine.PackageManagerClasses/Packages/Classes/IgnoredUpdatesDatabase.cs#L73
Nullability of reference types in value of type 'IReadOnlyDictionary<string, string?>' doesn't match target type 'IReadOnlyDictionary<string, string>'.
|
test-codebase:
src/UniGetUI.PackageEngine.PackageManagerClasses/Packages/InvalidImportedPackage.cs#L149
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
test-codebase:
src/UniGetUI.PackageEngine.PackageManagerClasses/Packages/InvalidImportedPackage.cs#L174
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
test-codebase:
src/UniGetUI.Core.Classes.Tests/TaskRecyclerTests.cs#L15
Member 'SlowMethod2' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822)
|
test-codebase:
src/UniGetUI.Core.Classes.Tests/TaskRecyclerTests.cs#L21
Member 'SlowMethod3' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822)
|
test-codebase:
src/UniGetUI.Core.Classes.Tests/TaskRecyclerTests.cs#L11
Type 'TestClass' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
|
test-codebase:
src/UniGetUI.Core.Settings/SettingsEngine_Dictionaries.cs#L33
Possible null reference return.
|
test-codebase:
src/UniGetUI.Core.Settings.Tests/SettingsTest.cs#L117
Dereference of a possibly null reference.
|
test-codebase:
src/UniGetUI.Core.Tools/DWMThreadHelper.cs#L134
Avoid multiple blank lines (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2000)
|
test-codebase:
src/UniGetUI.Core.IconStore/IconCacheEngine.cs#L233
Remove unused parameter 'extension' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0060)
|
test-codebase:
src/UniGetUI/App.xaml.cs#L389
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
test-codebase:
src/UniGetUI/Pages/SoftwarePages/SoftwareUpdatesPage.cs#L356
Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
|
test-codebase:
src/UniGetUI/Controls/OperationWidgets/OperationControl.cs#L125
Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
|
test-codebase:
src/UniGetUI/Controls/OperationWidgets/OperationControl.cs#L406
Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
|
test-codebase:
src/UniGetUI/Controls/OperationWidgets/OperationControl.cs#L435
Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
|
test-codebase:
src/UniGetUI/Controls/OperationWidgets/OperationControl.cs#L460
Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
|
test-codebase:
src/UniGetUI/Pages/MainView.xaml.cs#L348
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
test-codebase:
src/UniGetUI/Pages/SettingsPage.xaml.cs#L38
Non-nullable field 'ResetBackupDirectory' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
|
test-codebase:
src/UniGetUI/Pages/SettingsPage.xaml.cs#L38
Non-nullable field 'OpenBackupDirectory' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
|
test-codebase:
src/UniGetUI/Pages/SettingsPage.xaml.cs#L38
Non-nullable field 'BackupDirectoryLabel' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
|