code style [skip ci]

This commit is contained in:
DismissedLight
2023-02-12 16:18:17 +08:00
parent b5577e76a5
commit a32481980b
7 changed files with 7 additions and 5 deletions

View File

@@ -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;
/// <summary>
/// 本地化键
/// </summary>
[AttributeUsage(AttributeTargets.Enum)]
internal class LocalizationKeyAttribute : Attribute
{
/// <summary>

View File

@@ -146,6 +146,7 @@ internal class DailyNoteService : IDailyNoteService, IRecipient<UserRemovedMessa
else
{
IInfoBarService infoBarService = scope.ServiceProvider.GetRequiredService<IInfoBarService>();
// special retcode handling for dailynote
if (dailyNoteResponse.ReturnCode == (int)Web.Response.KnownReturnCode.CODE1034)
{

View File

@@ -17,7 +17,6 @@ namespace Snap.Hutao.View.Dialog;
public sealed partial class AdoptCalculatorDialog : ContentDialog
{
private readonly IServiceScope scope;
[SuppressMessage("", "IDE0052")]
private MiHoYoJSInterface? jsInterface;
/// <summary>

View File

@@ -30,7 +30,6 @@ namespace Snap.Hutao.ViewModel.Achievement;
/// 成就视图模型
/// </summary>
[Injection(InjectAs.Scoped)]
[SuppressMessage("", "SA1124")]
internal class AchievementViewModel : Abstraction.ViewModel, INavigationRecipient
{
private static readonly SortDescription IncompletedItemsFirstSortDescription = new(nameof(BindingAchievement.IsChecked), SortDirection.Ascending);

View File

@@ -138,7 +138,6 @@ internal class WelcomeViewModel : ObservableObject
/// </summary>
/// <param name="serviceProvider">服务提供器</param>
/// <param name="fileName">压缩文件名称</param>
///
public DownloadSummary(IServiceProvider serviceProvider, string fileName)
{
this.serviceProvider = serviceProvider;

View File

@@ -353,6 +353,7 @@ public class MiHoYoJSInterface
}
}
[SuppressMessage("", "CA2254")]
private IJsResult? LogUnhandledMessage([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string message, params object?[] param)
{
logger.LogWarning(message, param);

View File

@@ -46,7 +46,6 @@ internal class DynamicSecretCreationOptions
public string DefaultBody
{
get => SaltType == SaltType.PROD ? "{}" : string.Empty;
}
/// <summary>