Implement nullable feature #2
Annotations
30 warnings
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.Docker/Program.cs#L127
Dereference of a possibly null reference.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.Docker/Program.cs#L159
Converting null literal or possible null value to non-nullable type.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Modules/PublicModule.cs#L31
Cannot convert null literal to non-nullable reference type.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Modules/PublicModule.cs#L48
Cannot convert null literal to non-nullable reference type.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Services/CommandHandlingService.cs#L21
Nullability of reference types in type of parameter 'command' of 'Task CommandHandlingService.CommandExecutedAsync(CommandInfo command, ICommandContext context, IResult result)' doesn't match the target delegate 'Func<CommandInfo?, ICommandContext, IResult, Task>' (possibly because of nullability attributes).
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Services/CommandHandlingService.cs#L30
Possible null reference argument for parameter 'assembly' in 'Task<IEnumerable<ModuleInfo>> CommandService.AddModulesAsync(Assembly assembly, IServiceProvider services)'.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Modules/PublicModule.cs#L35
Possible null reference argument for parameter 'message' in 'Task<Cacheable<IUserMessage, Guid>> ModuleBase<SocketCommandContext>.ReplyTextAsync(string message, bool isQuote = true, bool isEphemeral = false, RequestOptions? options = null)'.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Program.cs#L25
Converting null literal or possible null value to non-nullable type.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Program.cs#L26
Possible null reference argument for parameter 'token' in 'Task BaseKookClient.LoginAsync(TokenType tokenType, string token, bool validateToken = true)'.
|
Build and Test (macOS-latest) / Build and Test:
samples/Kook.Net.Samples.TextCommands/Modules/PublicModule.cs#L77
Dereference of a possibly null reference.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.Docker/Program.cs#L127
Dereference of a possibly null reference.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.Docker/Program.cs#L159
Converting null literal or possible null value to non-nullable type.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Services/KookSocketService.cs#L44
Possible null reference argument for parameter 'token' in 'Task BaseKookClient.LoginAsync(TokenType tokenType, string token, bool validateToken = true)'.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Services/CommandHandlerService.cs#L19
Nullability of reference types in type of parameter 'command' of 'Task CommandHandlerService.CommandExecutedAsync(CommandInfo command, ICommandContext context, IResult result)' doesn't match the target delegate 'Func<CommandInfo?, ICommandContext, IResult, Task>' (possibly because of nullability attributes).
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Services/CommandHandlerService.cs#L26
Possible null reference argument for parameter 'assembly' in 'Task<IEnumerable<ModuleInfo>> CommandService.AddModulesAsync(Assembly assembly, IServiceProvider services)'.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Modules/CardCommandModule.cs#L59
Possible null reference argument for parameter 'cards' in 'Task<Cacheable<IUserMessage, Guid>> ModuleBase<SocketCommandContext>.ReplyCardsAsync(IEnumerable<ICard> cards, bool isQuote = true, bool isEphemeral = false, RequestOptions? options = null)'.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Modules/CardCommandModule.cs#L66
Possible null reference argument for parameter 'cards' in 'Task<Cacheable<IUserMessage, Guid>> ModuleBase<SocketCommandContext>.ReplyCardsAsync(IEnumerable<ICard> cards, bool isQuote = true, bool isEphemeral = false, RequestOptions? options = null)'.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Modules/CardCommandModule.cs#L73
Possible null reference argument for parameter 'cards' in 'Task<Cacheable<IUserMessage, Guid>> ModuleBase<SocketCommandContext>.ReplyCardsAsync(IEnumerable<ICard> cards, bool isQuote = true, bool isEphemeral = false, RequestOptions? options = null)'.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.SimpleBot/Program.cs#L133
Dereference of a possibly null reference.
|
Build and Test (ubuntu-latest) / Build and Test:
samples/Kook.Net.Samples.SimpleBot/Program.cs#L165
Converting null literal or possible null value to non-nullable type.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Services/KookSocketService.cs#L44
Possible null reference argument for parameter 'token' in 'Task BaseKookClient.LoginAsync(TokenType tokenType, string token, bool validateToken = true)'.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Modules/CardCommandModule.cs#L59
Possible null reference argument for parameter 'cards' in 'Task<Cacheable<IUserMessage, Guid>> ModuleBase<SocketCommandContext>.ReplyCardsAsync(IEnumerable<ICard> cards, bool isQuote = true, bool isEphemeral = false, RequestOptions? options = null)'.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Modules/CardCommandModule.cs#L66
Possible null reference argument for parameter 'cards' in 'Task<Cacheable<IUserMessage, Guid>> ModuleBase<SocketCommandContext>.ReplyCardsAsync(IEnumerable<ICard> cards, bool isQuote = true, bool isEphemeral = false, RequestOptions? options = null)'.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Modules/CardCommandModule.cs#L73
Possible null reference argument for parameter 'cards' in 'Task<Cacheable<IUserMessage, Guid>> ModuleBase<SocketCommandContext>.ReplyCardsAsync(IEnumerable<ICard> cards, bool isQuote = true, bool isEphemeral = false, RequestOptions? options = null)'.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Services/CommandHandlerService.cs#L19
Nullability of reference types in type of parameter 'command' of 'Task CommandHandlerService.CommandExecutedAsync(CommandInfo command, ICommandContext context, IResult result)' doesn't match the target delegate 'Func<CommandInfo?, ICommandContext, IResult, Task>' (possibly because of nullability attributes).
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.CardMarkup/Services/CommandHandlerService.cs#L26
Possible null reference argument for parameter 'assembly' in 'Task<IEnumerable<ModuleInfo>> CommandService.AddModulesAsync(Assembly assembly, IServiceProvider services)'.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.Audio/Services/MusicService.cs#L16
Non-nullable field '_currentSong' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.Audio/Services/MusicService.cs#L16
Non-nullable field '_sourceChannel' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.Audio/Services/MusicService.cs#L16
Non-nullable field '_audioClient' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|
Build and Test (windows-latest) / Build and Test:
samples/Kook.Net.Samples.Audio/Services/MusicService.cs#L16
Non-nullable field '_ffmpeg' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|