Skip to content

Commit e3324ef

Browse files
CopilotYunchuWang
andcommitted
Change DURABLE2003/2004 severity to Info and update messages per issue #580
Co-authored-by: YunchuWang <[email protected]>
1 parent 25eaebc commit e3324ef

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Analyzers/Activities/FunctionNotFoundAnalyzer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public sealed class FunctionNotFoundAnalyzer : DiagnosticAnalyzer
3737
ActivityNotFoundTitle,
3838
ActivityNotFoundMessageFormat,
3939
AnalyzersCategories.Activity,
40-
DiagnosticSeverity.Warning,
40+
DiagnosticSeverity.Info,
4141
customTags: [WellKnownDiagnosticTags.CompilationEnd],
4242
isEnabledByDefault: true,
4343
helpLinkUri: "https://go.microsoft.com/fwlink/?linkid=2346202");
@@ -47,7 +47,7 @@ public sealed class FunctionNotFoundAnalyzer : DiagnosticAnalyzer
4747
SubOrchestrationNotFoundTitle,
4848
SubOrchestrationNotFoundMessageFormat,
4949
AnalyzersCategories.Orchestration,
50-
DiagnosticSeverity.Warning,
50+
DiagnosticSeverity.Info,
5151
customTags: [WellKnownDiagnosticTags.CompilationEnd],
5252
isEnabledByDefault: true,
5353
helpLinkUri: "https://go.microsoft.com/fwlink/?linkid=2346202");

src/Analyzers/AnalyzerReleases.Shipped.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
Rule ID | Category | Severity | Notes
99
--------|----------|----------|-------
10-
DURABLE2003 | Activity | Warning | **FunctionNotFoundAnalyzer**: Warns when an activity function call references a name that does not match any defined activity in the compilation.
11-
DURABLE2004 | Orchestration | Warning | **FunctionNotFoundAnalyzer**: Warns when a sub-orchestration call references a name that does not match any defined orchestrator in the compilation.
10+
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.
11+
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.
1212

1313
## Release 0.1.0
1414

src/Analyzers/Resources.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@
199199
<value>Use '{0}' instead of '{1}'</value>
200200
</data>
201201
<data name="ActivityNotFoundAnalyzerMessageFormat" xml:space="preserve">
202-
<value>The activity function '{0}' was not found in the current compilation. Ensure the activity is defined and the name matches exactly.</value>
202+
<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>
203203
</data>
204204
<data name="ActivityNotFoundAnalyzerTitle" xml:space="preserve">
205205
<value>Activity function not found</value>
206206
</data>
207207
<data name="SubOrchestrationNotFoundAnalyzerMessageFormat" xml:space="preserve">
208-
<value>The sub-orchestration '{0}' was not found in the current compilation. Ensure the orchestrator is defined and the name matches exactly.</value>
208+
<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>
209209
</data>
210210
<data name="SubOrchestrationNotFoundAnalyzerTitle" xml:space="preserve">
211211
<value>Sub-orchestration not found</value>

0 commit comments

Comments
 (0)