Account for better secondary retry policy #5487
Annotations
1 error and 8 warnings
Build Artifacts (Linux):
src/Octoshift/RetryPolicy.cs#L46
Cannot convert async lambda expression to delegate type 'Func<int, DelegateResult<HttpResponseMessage>, Context, TimeSpan>'. An async lambda expression may return void, Task or Task<T>, none of which are convertible to 'Func<int, DelegateResult<HttpResponseMessage>, Context, TimeSpan>'.
|
Upload Binaries
No files were found with the provided path: dist/linux-x64/ado2gh-linux-amd64
dist/linux-x64/bbs2gh-linux-amd64
dist/linux-x64/gei-linux-amd64
dist/osx-x64/ado2gh-darwin-amd64
dist/osx-x64/bbs2gh-darwin-amd64
dist/osx-x64/gei-darwin-amd64
dist/win-x64/ado2gh-windows-amd64.exe
dist/win-x64/bbs2gh-windows-amd64.exe
dist/win-x64/gei-windows-amd64.exe. No artifacts will be uploaded.
|
Build Artifacts (Linux):
src/Octoshift/Services/GenericArgsBinder.cs#L21
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The generic parameter 'TArgs' of 'OctoshiftCLI.Services.GenericArgsBinder<TCommand, TArgs>' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
Build Artifacts (Linux):
src/Octoshift/Services/GenericArgsBinder.cs#L19
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperties()'. The generic parameter 'TCommand' of 'OctoshiftCLI.Services.GenericArgsBinder<TCommand, TArgs>' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
Build Artifacts (Linux):
src/Octoshift/RetryPolicy.cs#L73
Modify 'HttpRetry' to catch a more specific allowed exception type, or rethrow the exception (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031)
|
Build Artifacts (Linux):
src/Octoshift/Extensions/CommandExtensions.cs#L32
Call to 'System.Reflection.MethodInfo.MakeGenericMethod(params Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic method.
|
Build Artifacts (Linux):
src/Octoshift/Extensions/AssemblyExtensions.cs#L13
Using member 'System.Reflection.Assembly.GetTypes()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed.
|
Build Artifacts (Linux):
src/Octoshift/RetryPolicy.cs#L28
'HttpRetry' has a cyclomatic complexity of '26'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
|
Build Artifacts (Linux):
src/Octoshift/RetryPolicy.cs#L46
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Loading