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 System.Text;
#nullable disable
using System.Text;
namespace NadekoBot.Modules.Games.Common.Trivia;
@@ -265,4 +266,4 @@ public class TriviaGame
return sb.ToString();
}
}
}

View File

@@ -1,4 +1,5 @@
using CommandLine;
#nullable disable
using CommandLine;
namespace NadekoBot.Modules.Games.Common.Trivia;
@@ -25,4 +26,4 @@ public class TriviaOptions : INadekoCommandOptions
Timeout = 10;
}
}
}

View File

@@ -1,4 +1,5 @@
using System.Text.RegularExpressions;
#nullable disable
using System.Text.RegularExpressions;
// THANKS @ShoMinamimoto for suggestions and coding help
namespace NadekoBot.Modules.Games.Common.Trivia;
@@ -103,4 +104,4 @@ public class TriviaQuestion
}
return string.Join(" ", new string(letters).Replace(" ", " \u2000", StringComparison.InvariantCulture).AsEnumerable());
}
}
}

View File

@@ -1,4 +1,5 @@
namespace NadekoBot.Modules.Games.Common.Trivia;
#nullable disable
namespace NadekoBot.Modules.Games.Common.Trivia;
public class TriviaQuestionPool
{
@@ -35,4 +36,4 @@ public class TriviaQuestionPool
return randomQuestion;
}
}
}