Skip to content

Add Roslyn Analyzer to detect calls to non-existent functions (name mismatch) #1719

Add Roslyn Analyzer to detect calls to non-existent functions (name mismatch)

Add Roslyn Analyzer to detect calls to non-existent functions (name mismatch) #1719

Triggered via pull request December 9, 2025 23:10
Status Success
Total duration 6m 52s
Artifacts 1

validate-build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: src/Worker/Core/DependencyInjection/DurableTaskWorkerBuilderExtensions.cs#L81
Prefer the generic overload 'Microsoft.DurableTask.Worker.DurableTaskWorkerBuilderExtensions.UseBuildTarget<TTarget>(Microsoft.DurableTask.Worker.IDurableTaskWorkerBuilder)' instead of 'Microsoft.DurableTask.Worker.DurableTaskWorkerBuilderExtensions.UseBuildTarget(Microsoft.DurableTask.Worker.IDurableTaskWorkerBuilder, System.Type)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
build: src/Worker/Core/Shims/TaskOrchestrationShim.cs#L98
The parameters should begin on the line after the declaration, whenever the parameter span across multiple lines (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1116.md)
build: src/Worker/Core/DurableTaskWorkerOptions.cs#L179
'DurableTaskWorkerOptions.OrchestrationFilter' is obsolete: 'Experimental'
build: src/Worker/Core/DurableTaskWorkerOptions.cs#L179
'DurableTaskWorkerOptions.OrchestrationFilter' is obsolete: 'Experimental'
build: src/Client/Core/DependencyInjection/DurableTaskClientBuilderExtensions.cs#L83
Prefer the generic overload 'Microsoft.DurableTask.Client.DurableTaskBuilderExtensions.UseBuildTarget<TTarget>(Microsoft.DurableTask.Client.IDurableTaskClientBuilder)' instead of 'Microsoft.DurableTask.Client.DurableTaskBuilderExtensions.UseBuildTarget(Microsoft.DurableTask.Client.IDurableTaskClientBuilder, System.Type)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
build: src/Abstractions/TaskOrchestrationContext.cs#L444
Possible null reference return.
build: src/Abstractions/TaskOrchestrationContext.cs#L444
The type 'TState' cannot be used as type parameter 'TState' in the generic type or method 'ILogger.BeginScope<TState>(TState)'. Nullability of type argument 'TState' doesn't match 'notnull' constraint.
build: src/Abstractions/TaskOrchestrationContext.cs#L444
Nullability in constraints for type parameter 'TState' of method 'TaskOrchestrationContext.ReplaySafeLogger.BeginScope<TState>(TState)' doesn't match the constraints for type parameter 'TState' of interface method 'ILogger.BeginScope<TState>(TState)'. Consider using an explicit interface implementation instead.

Artifacts

Produced during runtime
Name Size Digest
pkg Expired
2.61 MB
sha256:44097b282fa0eef68b9ab75ff869de95952da933fa7dc14166e9448e1ad3bb0a