MP0003
Injects a logger into a module constructor instead of using the module context.
| Property | Value |
|---|---|
| Category | Usage |
| Default severity | Error |
| Availability | Public analyzer package |
Configure severity
.editorconfig
dotnet_diagnostic.MP0003.severity = error
Use none to disable the rule, or silent, suggestion, warning, or error to change its severity.
Suppress a specific occurrence
#pragma warning disable MP0003
// Code that intentionally violates MP0003.
#pragma warning restore MP0003