Skip to content

Commit cdf3f27

Browse files
CopilotYunchuWang
andauthored
Change FunctionNotFound analyzer severity to Info for cross-assembly scenarios (#584)
* Initial plan * Change DURABLE2003/2004 severity to Info and update messages per issue #580 Co-authored-by: YunchuWang <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: YunchuWang <[email protected]> Co-authored-by: wangbill <[email protected]>
1 parent 54503d2 commit cdf3f27

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
@@ -205,13 +205,13 @@
205205
<value>Use '{0}' instead of '{1}'</value>
206206
</data>
207207
<data name="ActivityNotFoundAnalyzerMessageFormat" xml:space="preserve">
208-
<value>The activity function '{0}' was not found in the current compilation. Ensure the activity is defined and the name matches exactly.</value>
208+
<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>
209209
</data>
210210
<data name="ActivityNotFoundAnalyzerTitle" xml:space="preserve">
211211
<value>Activity function not found</value>
212212
</data>
213213
<data name="SubOrchestrationNotFoundAnalyzerMessageFormat" xml:space="preserve">
214-
<value>The sub-orchestration '{0}' was not found in the current compilation. Ensure the orchestrator is defined and the name matches exactly.</value>
214+
<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>
215215
</data>
216216
<data name="SubOrchestrationNotFoundAnalyzerTitle" xml:space="preserve">
217217
<value>Sub-orchestration not found</value>

0 commit comments

Comments
 (0)