Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Analyzers/Activities/FunctionNotFoundAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// <summary>
/// Analyzer that detects calls to non-existent activities and sub-orchestrations.
/// </summary>
[DiagnosticAnalyzer(LanguageNames.CSharp)]

Check warning on line 16 in src/Analyzers/Activities/FunctionNotFoundAnalyzer.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)

Check warning on line 16 in src/Analyzers/Activities/FunctionNotFoundAnalyzer.cs

View workflow job for this annotation

GitHub Actions / build

This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
public sealed class FunctionNotFoundAnalyzer : DiagnosticAnalyzer
{
/// <summary>
Expand All @@ -37,7 +37,7 @@
ActivityNotFoundTitle,
ActivityNotFoundMessageFormat,
AnalyzersCategories.Activity,
DiagnosticSeverity.Warning,
DiagnosticSeverity.Info,
customTags: [WellKnownDiagnosticTags.CompilationEnd],
isEnabledByDefault: true,
helpLinkUri: "https://go.microsoft.com/fwlink/?linkid=2346202");
Expand All @@ -47,7 +47,7 @@
SubOrchestrationNotFoundTitle,
SubOrchestrationNotFoundMessageFormat,
AnalyzersCategories.Orchestration,
DiagnosticSeverity.Warning,
DiagnosticSeverity.Info,
customTags: [WellKnownDiagnosticTags.CompilationEnd],
isEnabledByDefault: true,
helpLinkUri: "https://go.microsoft.com/fwlink/?linkid=2346202");
Expand Down
4 changes: 2 additions & 2 deletions src/Analyzers/AnalyzerReleases.Shipped.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

Rule ID | Category | Severity | Notes
--------|----------|----------|-------
DURABLE2003 | Activity | Warning | **FunctionNotFoundAnalyzer**: Warns when an activity function call references a name that does not match any defined activity in the compilation.
DURABLE2004 | Orchestration | Warning | **FunctionNotFoundAnalyzer**: Warns when a sub-orchestration call references a name that does not match any defined orchestrator in the compilation.
DURABLE2003 | Activity | Info | **FunctionNotFoundAnalyzer**: Reports when an activity function call references a name that does not match any defined activity in the compilation. If the function is defined in another assembly, this diagnostic can be safely ignored. Static resolution across referenced assemblies is not supported.
DURABLE2004 | Orchestration | Info | **FunctionNotFoundAnalyzer**: Reports when a sub-orchestration call references a name that does not match any defined orchestrator in the compilation. If the function is defined in another assembly, this diagnostic can be safely ignored. Static resolution across referenced assemblies is not supported.

## Release 0.1.0

Expand Down
4 changes: 2 additions & 2 deletions src/Analyzers/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@
<value>Use '{0}' instead of '{1}'</value>
</data>
<data name="ActivityNotFoundAnalyzerMessageFormat" xml:space="preserve">
<value>The activity function '{0}' was not found in the current compilation. Ensure the activity is defined and the name matches exactly.</value>
<value>The activity function '{0}' was not found in the current compilation. Ensure the activity is defined and the name matches exactly. If the function is defined in another assembly, this diagnostic can be safely ignored. Static resolution across referenced assemblies is not supported.</value>
</data>
<data name="ActivityNotFoundAnalyzerTitle" xml:space="preserve">
<value>Activity function not found</value>
</data>
<data name="SubOrchestrationNotFoundAnalyzerMessageFormat" xml:space="preserve">
<value>The sub-orchestration '{0}' was not found in the current compilation. Ensure the orchestrator is defined and the name matches exactly.</value>
<value>The sub-orchestration '{0}' was not found in the current compilation. Ensure the orchestrator is defined and the name matches exactly. If the function is defined in another assembly, this diagnostic can be safely ignored. Static resolution across referenced assemblies is not supported.</value>
</data>
<data name="SubOrchestrationNotFoundAnalyzerTitle" xml:space="preserve">
<value>Sub-orchestration not found</value>
Expand Down
Loading