diff --git a/src/Snap.Hutao/Snap.Hutao/Core/Annotation/LocalizationKeyAttribute.cs b/src/Snap.Hutao/Snap.Hutao/Core/Annotation/LocalizationKeyAttribute.cs
index 1fb583f7..4f68fa60 100644
--- a/src/Snap.Hutao/Snap.Hutao/Core/Annotation/LocalizationKeyAttribute.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Core/Annotation/LocalizationKeyAttribute.cs
@@ -1,8 +1,12 @@
-namespace Snap.Hutao.Core.Annotation;
+// Copyright (c) DGP Studio. All rights reserved.
+// Licensed under the MIT license.
+
+namespace Snap.Hutao.Core.Annotation;
///
/// 本地化键
///
+[AttributeUsage(AttributeTargets.Enum)]
internal class LocalizationKeyAttribute : Attribute
{
///
diff --git a/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs b/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs
index e14a4ff8..d11f0d21 100644
--- a/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs
@@ -146,6 +146,7 @@ internal class DailyNoteService : IDailyNoteService, IRecipient();
+
// special retcode handling for dailynote
if (dailyNoteResponse.ReturnCode == (int)Web.Response.KnownReturnCode.CODE1034)
{
diff --git a/src/Snap.Hutao/Snap.Hutao/View/Dialog/AdoptCalculatorDialog.xaml.cs b/src/Snap.Hutao/Snap.Hutao/View/Dialog/AdoptCalculatorDialog.xaml.cs
index af6299b4..8fde8927 100644
--- a/src/Snap.Hutao/Snap.Hutao/View/Dialog/AdoptCalculatorDialog.xaml.cs
+++ b/src/Snap.Hutao/Snap.Hutao/View/Dialog/AdoptCalculatorDialog.xaml.cs
@@ -17,7 +17,6 @@ namespace Snap.Hutao.View.Dialog;
public sealed partial class AdoptCalculatorDialog : ContentDialog
{
private readonly IServiceScope scope;
- [SuppressMessage("", "IDE0052")]
private MiHoYoJSInterface? jsInterface;
///
diff --git a/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs b/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs
index 64361e53..4587cf54 100644
--- a/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs
+++ b/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs
@@ -30,7 +30,6 @@ namespace Snap.Hutao.ViewModel.Achievement;
/// 成就视图模型
///
[Injection(InjectAs.Scoped)]
-[SuppressMessage("", "SA1124")]
internal class AchievementViewModel : Abstraction.ViewModel, INavigationRecipient
{
private static readonly SortDescription IncompletedItemsFirstSortDescription = new(nameof(BindingAchievement.IsChecked), SortDirection.Ascending);
diff --git a/src/Snap.Hutao/Snap.Hutao/ViewModel/WelcomeViewModel.cs b/src/Snap.Hutao/Snap.Hutao/ViewModel/WelcomeViewModel.cs
index c8bd97e8..c2c1120c 100644
--- a/src/Snap.Hutao/Snap.Hutao/ViewModel/WelcomeViewModel.cs
+++ b/src/Snap.Hutao/Snap.Hutao/ViewModel/WelcomeViewModel.cs
@@ -138,7 +138,6 @@ internal class WelcomeViewModel : ObservableObject
///
/// 服务提供器
/// 压缩文件名称
- ///
public DownloadSummary(IServiceProvider serviceProvider, string fileName)
{
this.serviceProvider = serviceProvider;
diff --git a/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs b/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs
index aca9d710..41218a0f 100644
--- a/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs
@@ -353,6 +353,7 @@ public class MiHoYoJSInterface
}
}
+ [SuppressMessage("", "CA2254")]
private IJsResult? LogUnhandledMessage([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string message, params object?[] param)
{
logger.LogWarning(message, param);
diff --git a/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/DynamicSecret/DynamicSecretCreationOptions.cs b/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/DynamicSecret/DynamicSecretCreationOptions.cs
index a2095b26..a9b3efdc 100644
--- a/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/DynamicSecret/DynamicSecretCreationOptions.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/DynamicSecret/DynamicSecretCreationOptions.cs
@@ -46,7 +46,6 @@ internal class DynamicSecretCreationOptions
public string DefaultBody
{
get => SaltType == SaltType.PROD ? "{}" : string.Empty;
-
}
///