Skip to content

Commit b1f354b

Browse files
committed
2 parents f8afacc + 459c32a commit b1f354b

8 files changed

Lines changed: 450 additions & 122 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,20 @@ public string AccountNumber => Entity.AccountNumber;
190190

191191
**Note:** This is optional. Without it, wrapper properties work normally but won't have XML documentation tooltips.
192192

193+
#### Analyzer Diagnostics
194+
195+
The source generator includes analyzers that help catch common issues at compile time:
196+
197+
| ID | Severity | Title |
198+
|----|----------|-------|
199+
| [XPC2001](XrmPluginCore.SourceGenerator/rules/XPC2001.md) | Warning | No parameterless constructor found |
200+
| [XPC3001](XrmPluginCore.SourceGenerator/rules/XPC3001.md) | Warning | Prefer nameof over string literal for handler method |
201+
| [XPC3002](XrmPluginCore.SourceGenerator/rules/XPC3002.md) | Info | Consider using modern image registration API |
202+
| [XPC3003](XrmPluginCore.SourceGenerator/rules/XPC3003.md) | Warning | Image registration without method reference |
203+
| [XPC4001](XrmPluginCore.SourceGenerator/rules/XPC4001.md) | Error | Handler method not found |
204+
| [XPC4002](XrmPluginCore.SourceGenerator/rules/XPC4002.md) | Warning | Handler signature does not match registered images |
205+
| [XPC4003](XrmPluginCore.SourceGenerator/rules/XPC4003.md) | Error | Handler signature does not match registered images |
206+
193207
### Using the LocalPluginContext wrapper (Legacy)
194208

195209
**NOTE**: This is only supported for legacy DAXIF/XrmFramework style plugins. It is recommended to use dependency injection based plugins instead.

0 commit comments

Comments
 (0)