Skip to content

Simplify Webhook.Controllers, harmonize stuff #289

Simplify Webhook.Controllers, harmonize stuff

Simplify Webhook.Controllers, harmonize stuff #289

Triggered via push July 3, 2024 13:33
Status Failure
Total duration 46s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 10 warnings
build: Webhook.Controllers/Controllers/BotController.cs#L4
The type or namespace name 'Filters' does not exist in the namespace 'Telegram.Bot' (are you missing an assembly reference?)
build: Webhook.Controllers/Controllers/BotController.cs#L4
The type or namespace name 'Filters' does not exist in the namespace 'Telegram.Bot' (are you missing an assembly reference?)
build
Process completed with exit code 1.
build: InlineQueries/Program.cs#L20
'File.ReadAllText(string)' synchronously blocks. Await 'File.ReadAllTextAsync(string, CancellationToken)' instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1849)
build: Serverless/AwsLambda.Webhook/lambda-bot/Function.cs#L21
In externally visible method 'Task<string> LambdaFunction.FunctionHandler(JsonElement request, ILambdaContext context)', validate parameter 'context' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
build: Serverless/AzureFunctions.Webhook/Startup.cs#L13
In externally visible method 'void Startup.Configure(IFunctionsHostBuilder builder)', validate parameter 'builder' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
build: Console.Advanced/Services/UpdateHandler.cs#L197
Dereference of a possibly null reference.
build: Console.Advanced/Services/UpdateHandler.cs#L22
In member Task UpdateHandler.HandleErrorAsync(ITelegramBotClient bot, Exception exception, HandleErrorSource source, CancellationToken cancellationToken), change parameter name bot to botClient in order to match the identifier as it has been declared in Task IUpdateHandler.HandleErrorAsync(ITelegramBotClient botClient, Exception exception, HandleErrorSource source, CancellationToken cancellationToken) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1725)
build: Console.Advanced/Services/UpdateHandler.cs#L27
Forward the 'cancellationToken' parameter to the 'Delay' method or pass in 'CancellationToken.None' explicitly to indicate intentionally not propagating the token (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2016)
build: Console.Advanced/Services/UpdateHandler.cs#L24
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
build: Console.Advanced/Services/UpdateHandler.cs#L24
Use PascalCase for named placeholders in the logging message template (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1727)
build: Console.Advanced/Services/UpdateHandler.cs#L52
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
build: Console.Advanced/Services/UpdateHandler.cs#L69
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)