From ab1cd03448f7c24ef8716f6b75b19a64a227fe3c Mon Sep 17 00:00:00 2001 From: Bagus Nur Listiyono Date: Sun, 29 Sep 2024 22:33:02 +0700 Subject: [PATCH] tiiiny bit of codeQA --- CollapseLauncher/CollapseLauncher.csproj | 1 - CollapseLauncher/XAMLs/MainApp/MainPage.xaml | 1 - .../XAMLs/MainApp/MainPage.xaml.cs | 1 - .../Theme/NavigationView_ThemeResource.xaml | 1 - CollapseLauncher/packages.lock.json | 13 ------------ .../ImageCropper/Themes/Generic.xaml | 5 ++--- Hi3Helper.Core/Hi3Helper.Core.csproj | 1 - .../Hi3Helper.EncTool.Test.csproj | 5 ----- Hi3Helper.EncTool.Test/Program.cs | 3 +-- Hi3Helper.EncTool.Test/packages.lock.json | 21 ------------------- Hi3Helper.Http | 2 +- Hi3Helper.TaskScheduler/packages.lock.json | 14 +++++++++++++ qodana.yaml | 2 ++ 13 files changed, 20 insertions(+), 50 deletions(-) diff --git a/CollapseLauncher/CollapseLauncher.csproj b/CollapseLauncher/CollapseLauncher.csproj index 2d65c3351..6b85775c4 100644 --- a/CollapseLauncher/CollapseLauncher.csproj +++ b/CollapseLauncher/CollapseLauncher.csproj @@ -125,7 +125,6 @@ - diff --git a/CollapseLauncher/XAMLs/MainApp/MainPage.xaml b/CollapseLauncher/XAMLs/MainApp/MainPage.xaml index a8344d263..4e179729c 100644 --- a/CollapseLauncher/XAMLs/MainApp/MainPage.xaml +++ b/CollapseLauncher/XAMLs/MainApp/MainPage.xaml @@ -7,7 +7,6 @@ xmlns:extension="using:CollapseLauncher.Extension" xmlns:helper="using:Hi3Helper" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:p="using:CollapseLauncher.Helper.Metadata" Unloaded="Page_Unloaded" mc:Ignorable="d"> diff --git a/CollapseLauncher/XAMLs/MainApp/MainPage.xaml.cs b/CollapseLauncher/XAMLs/MainApp/MainPage.xaml.cs index f9f3c4f87..969dc0af1 100644 --- a/CollapseLauncher/XAMLs/MainApp/MainPage.xaml.cs +++ b/CollapseLauncher/XAMLs/MainApp/MainPage.xaml.cs @@ -20,7 +20,6 @@ using Microsoft.UI.Text; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Controls.Primitives; using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Media; using Microsoft.UI.Xaml.Media.Animation; diff --git a/CollapseLauncher/XAMLs/Theme/NavigationView_ThemeResource.xaml b/CollapseLauncher/XAMLs/Theme/NavigationView_ThemeResource.xaml index e89a9d8f7..dd1fa29d3 100644 --- a/CollapseLauncher/XAMLs/Theme/NavigationView_ThemeResource.xaml +++ b/CollapseLauncher/XAMLs/Theme/NavigationView_ThemeResource.xaml @@ -3,7 +3,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" xmlns:controls="using:Microsoft.UI.Xaml.Controls" - xmlns:media="using:Microsoft.UI.Xaml.Media" xmlns:primitives="using:Microsoft.UI.Xaml.Controls.Primitives"> diff --git a/CollapseLauncher/packages.lock.json b/CollapseLauncher/packages.lock.json index 449ace6c8..1c341f4fe 100644 --- a/CollapseLauncher/packages.lock.json +++ b/CollapseLauncher/packages.lock.json @@ -230,12 +230,6 @@ "System.CommandLine": "2.0.0-beta4.22272.1" } }, - "System.Diagnostics.EventLog": { - "type": "Direct", - "requested": "[9.0.0-rc.1.24431.7, )", - "resolved": "9.0.0-rc.1.24431.7", - "contentHash": "ARI0u0Z1/eVTCeb6G4oS/xdTX0xvHPuIoT1IAHsRlOYzgzgmoXZxzH28AMD8etSCDXCBT+0icbcHMsNjOQlxDg==" - }, "System.Security.AccessControl": { "type": "Direct", "requested": "[6.0.1, )", @@ -407,7 +401,6 @@ "type": "Project", "dependencies": { "Hi3Helper.EncTool": "[1.0.0, )", - "Hi3Helper.Http": "[2.0.0, )", "Microsoft.Windows.CsWinRT": "[2.1.3, )" } }, @@ -515,12 +508,6 @@ "PhotoSauce.MagicScaler": "[0.14.2]" } }, - "System.Diagnostics.EventLog": { - "type": "Direct", - "requested": "[9.0.0-rc.1.24431.7, )", - "resolved": "9.0.0-rc.1.24431.7", - "contentHash": "ARI0u0Z1/eVTCeb6G4oS/xdTX0xvHPuIoT1IAHsRlOYzgzgmoXZxzH28AMD8etSCDXCBT+0icbcHMsNjOQlxDg==" - }, "System.Security.AccessControl": { "type": "Direct", "requested": "[6.0.1, )", diff --git a/Hi3Helper.CommunityToolkit/ImageCropper/Themes/Generic.xaml b/Hi3Helper.CommunityToolkit/ImageCropper/Themes/Generic.xaml index 08fe8e561..d39cc8fd0 100644 --- a/Hi3Helper.CommunityToolkit/ImageCropper/Themes/Generic.xaml +++ b/Hi3Helper.CommunityToolkit/ImageCropper/Themes/Generic.xaml @@ -1,7 +1,6 @@ - + + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> diff --git a/Hi3Helper.Core/Hi3Helper.Core.csproj b/Hi3Helper.Core/Hi3Helper.Core.csproj index cb5e72c86..f65319e99 100644 --- a/Hi3Helper.Core/Hi3Helper.Core.csproj +++ b/Hi3Helper.Core/Hi3Helper.Core.csproj @@ -51,7 +51,6 @@ - diff --git a/Hi3Helper.EncTool.Test/Hi3Helper.EncTool.Test.csproj b/Hi3Helper.EncTool.Test/Hi3Helper.EncTool.Test.csproj index d05b54ddb..06bde6394 100644 --- a/Hi3Helper.EncTool.Test/Hi3Helper.EncTool.Test.csproj +++ b/Hi3Helper.EncTool.Test/Hi3Helper.EncTool.Test.csproj @@ -9,9 +9,4 @@ true - - - - - diff --git a/Hi3Helper.EncTool.Test/Program.cs b/Hi3Helper.EncTool.Test/Program.cs index 4ef7d0905..141a21edb 100644 --- a/Hi3Helper.EncTool.Test/Program.cs +++ b/Hi3Helper.EncTool.Test/Program.cs @@ -1,5 +1,4 @@ -using Hi3Helper.EncTool.Parser.AssetMetadata; -using System.IO.Compression; +using System.IO.Compression; namespace Hi3Helper.EncTool.Test { diff --git a/Hi3Helper.EncTool.Test/packages.lock.json b/Hi3Helper.EncTool.Test/packages.lock.json index 25777ad66..eda3602b4 100644 --- a/Hi3Helper.EncTool.Test/packages.lock.json +++ b/Hi3Helper.EncTool.Test/packages.lock.json @@ -7,27 +7,6 @@ "requested": "[9.0.0-rc.1.24431.7, )", "resolved": "9.0.0-rc.1.24431.7", "contentHash": "B8jHIIszeUdDY+O4G1/xPOuhrriwsv9Z8/u3XSOAqc8Z0mQCeLBKg2oLGElDZeRF8wWXDGklAKY3f0IHopyXkQ==" - }, - "Google.Protobuf": { - "type": "Transitive", - "resolved": "3.28.2", - "contentHash": "Z86ZKAB+v1B/m0LTM+EVamvZlYw/g3VND3/Gs4M/+aDIxa2JE9YPKjDxTpf0gv2sh26hrve3eI03brxBmzn92g==" - }, - "System.IO.Hashing": { - "type": "Transitive", - "resolved": "9.0.0-rc.1.24431.7", - "contentHash": "giMiDNlne8WcLG7rsEfrETaukDUTBPn8a97QRo9LYR71O0Rb4SJ6TbfGdQ9oiBYldVPSAbSQANb5ThLZOo408Q==" - }, - "hi3helper.enctool": { - "type": "Project", - "dependencies": { - "Google.Protobuf": "[3.28.2, )", - "Hi3Helper.Http": "[2.0.0, )", - "System.IO.Hashing": "[9.0.0-rc.1.24431.7, )" - } - }, - "hi3helper.http": { - "type": "Project" } } } diff --git a/Hi3Helper.Http b/Hi3Helper.Http index ac382efa8..3e0b024c9 160000 --- a/Hi3Helper.Http +++ b/Hi3Helper.Http @@ -1 +1 @@ -Subproject commit ac382efa804b089e6df301bfbca762dab94815d6 +Subproject commit 3e0b024c9a2a33edeebe8125661e60b05965d58e diff --git a/Hi3Helper.TaskScheduler/packages.lock.json b/Hi3Helper.TaskScheduler/packages.lock.json index 6840be16f..37ea088e2 100644 --- a/Hi3Helper.TaskScheduler/packages.lock.json +++ b/Hi3Helper.TaskScheduler/packages.lock.json @@ -18,6 +18,15 @@ "resolved": "6.8.2", "contentHash": "sjGHrtGS1+kcrv99WXCvujOFBTQp4zCH3ZC9wo2LAtVaJkuLpHghQx3y4k1Q8ZKuDAbEw+HE6ZjPUJQK3ejepQ==" }, + "Microsoft.NETFramework.ReferenceAssemblies": { + "type": "Direct", + "requested": "[1.0.3, )", + "resolved": "1.0.3", + "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", + "dependencies": { + "Microsoft.NETFramework.ReferenceAssemblies.net462": "1.0.3" + } + }, "System.Net.Http": { "type": "Direct", "requested": "[4.3.4, )", @@ -60,6 +69,11 @@ "resolved": "1.1.0", "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" }, + "Microsoft.NETFramework.ReferenceAssemblies.net462": { + "type": "Transitive", + "resolved": "1.0.3", + "contentHash": "IzAV30z22ESCeQfxP29oVf4qEo8fBGXLXSU6oacv/9Iqe6PzgHDKCaWfwMBak7bSJQM0F5boXWoZS+kChztRIQ==" + }, "Microsoft.Win32.Primitives": { "type": "Transitive", "resolved": "4.3.0", diff --git a/qodana.yaml b/qodana.yaml index 20f536c8a..5cd0e0c45 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -16,6 +16,8 @@ exclude: - name: Xaml.ConstructorWarning - name: Xaml.InvalidResourceType - name: Xaml.StaticResourceNotResolved + - name: RedundantExtendsListEntry + - name: PartialTypeWithSinglePart include: - name: CheckDependencyLicenses licenseRules: