NadekoBot.Extensions should now be fully annotated with nullable reference types as well as many classes from NadekoBot.Common

This commit is contained in:
Kwoth
2021-12-28 10:44:00 +01:00
parent 0634470a8a
commit 59f5056035
543 changed files with 1895 additions and 1448 deletions

View File

@@ -1,4 +1,5 @@
using AngleSharp;
#nullable disable
using AngleSharp;
using AngleSharp.Html.Dom;
using NadekoBot.Modules.Searches.Common;
using Newtonsoft.Json;
@@ -149,4 +150,4 @@ public class AnimeSearchService : INService
return null;
}
}
}
}

View File

@@ -1,4 +1,5 @@
using LinqToDB.EntityFrameworkCore;
#nullable disable
using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
@@ -10,4 +11,4 @@ public static class AtlExtensions
=> set
.Include(x => x.Users)
.FirstOrDefaultAsyncEF(x => x.ChannelId == channelId);
}
}

View File

@@ -1,4 +1,5 @@
using NadekoBot.Modules.Searches.Common;
#nullable disable
using NadekoBot.Modules.Searches.Common;
using Newtonsoft.Json;
namespace NadekoBot.Modules.Searches.Services;
@@ -95,4 +96,4 @@ public class CryptoService : INService
getCryptoLock.Release();
}
}
}
}

View File

@@ -1,4 +1,5 @@
using CodeHollow.FeedReader.Feeds;
#nullable disable
using CodeHollow.FeedReader.Feeds;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
@@ -228,4 +229,4 @@ public class FeedsService : INService
return true;
}
}
}

View File

@@ -1,4 +1,5 @@
namespace NadekoBot.Modules.Searches;
#nullable disable
namespace NadekoBot.Modules.Searches;
public interface ITranslateService
{
@@ -7,4 +8,4 @@ public interface ITranslateService
IEnumerable<string> GetLanguages();
Task<bool?> RegisterUserAsync(ulong userId, ulong channelId, string @from, string to);
Task<bool> UnregisterUser(ulong channelId, ulong userId);
}
}

View File

@@ -1,4 +1,5 @@
using NadekoBot.Modules.Searches.Common;
#nullable disable
using NadekoBot.Modules.Searches.Common;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using SixLabors.ImageSharp;
@@ -650,4 +651,4 @@ public class SearchesService : INService
fullQueryLink,
"0");
}
}
}

View File

@@ -1,3 +1,4 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Modules.Searches.Common;
using NadekoBot.Modules.Searches.Common.StreamNotifications;
@@ -555,4 +556,4 @@ public sealed class StreamNotificationService : INService
public StreamDataKey Key { get; init; }
public ulong GuildId { get; init; }
}
}
}

View File

@@ -1,4 +1,5 @@
using System.Net;
#nullable disable
using System.Net;
using LinqToDB;
using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
@@ -222,4 +223,4 @@ public sealed class TranslateService : ITranslateService, ILateExecutor, IReadyE
}
public IEnumerable<string> GetLanguages() => _google.Languages.Select(x => x.Key);
}
}

View File

@@ -1,4 +1,5 @@
namespace NadekoBot.Modules.Searches.Services;
#nullable disable
namespace NadekoBot.Modules.Searches.Services;
// public class YtTrackService : INService
// {
@@ -131,4 +132,4 @@
//
// return true;
// }
// }
// }