Use 'SpecializedCollections.EmptyEnumerable()'
Item | Value |
---|---|
Category | RoslynDiagnosticsPerformance |
Enabled | True |
Severity | Warning |
CodeFix | False |
Use 'SpecializedCollections.SingletonEnumerable()'
Item | Value |
---|---|
Category | RoslynDiagnosticsPerformance |
Enabled | True |
Severity | Warning |
CodeFix | False |
Invoke the correct property to ensure correct use site diagnostics
Item | Value |
---|---|
Category | Usage |
Enabled | False |
Severity | Error |
CodeFix | False |
Do not mix attributes from different versions of MEF.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | True |
Severity | Warning |
CodeFix | False |
Compilation event queue is required to generate symbol declared events for all declared source symbols. Hence, every source symbol type or one of its base types must generate a symbol declared event.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | False |
Severity | Error |
CodeFix | False |
Part exported with MEFv2 must be marked with the 'SharedAttribute'.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | True |
Severity | Warning |
CodeFix | True |
Test exports should not be discoverable.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | False |
Severity | Warning |
CodeFix | True |
Importing constructor should be marked with 'ObsoleteAttribute'.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | True |
Severity | Warning |
CodeFix | True |
Exported parts should be marked with 'ImportingConstructorAttribute'.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | True |
Severity | Warning |
CodeFix | True |
Use 'null' instead of 'default' for nullable types.
Item | Value |
---|---|
Category | RoslynDiagnosticsMaintainability |
Enabled | True |
Severity | Warning |
CodeFix | True |
Defaultable types should have defaultable fields.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | True |
Severity | Warning |
CodeFix | False |
Auto-properties always copy values, so they cannot be declared with non-copyable types.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | True |
Severity | Warning |
CodeFix | False |
'GetTestAccessor()' is a helper method reserved for testing. Production code must not call this member.
Item | Value |
---|---|
Category | RoslynDiagnosticsMaintainability |
Enabled | True |
Severity | Warning |
CodeFix | False |
Avoid the 'Opt' suffix in a nullable-enabled code.
Item | Value |
---|---|
Category | RoslynDiagnosticsDesign |
Enabled | True |
Severity | Warning |
CodeFix | True |
Instance of TemporaryArray<T>.AsRef() must be a 'using' variable.
Item | Value |
---|---|
Category | RoslynDiagnosticsReliability |
Enabled | True |
Severity | Warning |
CodeFix | False |
Primary constructor parameters should not be implicitly captured. Manually assign them to fields at the start of the type.
Item | Value |
---|---|
Category | RoslynDiagnosticsMaintainability |
Enabled | False |
Severity | Error |
CodeFix | False |