Skip to content

Latest commit

 

History

History
229 lines (172 loc) · 4.43 KB

Roslyn.Diagnostics.Analyzers.md

File metadata and controls

229 lines (172 loc) · 4.43 KB

Roslyn.Diagnostics.Analyzers

RS0001: Use 'SpecializedCollections.EmptyEnumerable()'

Use 'SpecializedCollections.EmptyEnumerable()'

Item Value
Category RoslynDiagnosticsPerformance
Enabled True
Severity Warning
CodeFix False

RS0002: Use 'SpecializedCollections.SingletonEnumerable()'

Use 'SpecializedCollections.SingletonEnumerable()'

Item Value
Category RoslynDiagnosticsPerformance
Enabled True
Severity Warning
CodeFix False

RS0004: Invoke the correct property to ensure correct use site diagnostics

Invoke the correct property to ensure correct use site diagnostics

Item Value
Category Usage
Enabled False
Severity Error
CodeFix False

RS0005: Do not use generic 'CodeAction.Create' to create 'CodeAction'

Do not use generic 'CodeAction.Create' to create 'CodeAction'

Item Value
Category RoslynDiagnosticsPerformance
Enabled True
Severity Warning
CodeFix False

RS0006: Do not mix attributes from different versions of MEF

Do not mix attributes from different versions of MEF.

Item Value
Category RoslynDiagnosticsReliability
Enabled True
Severity Warning
CodeFix False

RS0019: 'SymbolDeclaredEvent' must be generated for source symbols

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

RS0023: Parts exported with MEFv2 must be marked with 'SharedAttribute'

Part exported with MEFv2 must be marked with the 'SharedAttribute'.

Item Value
Category RoslynDiagnosticsReliability
Enabled True
Severity Warning
CodeFix False

RS0032: Test exports should not be discoverable

Test exports should not be discoverable.

Item Value
Category RoslynDiagnosticsReliability
Enabled False
Severity Warning
CodeFix True

RS0033: Importing constructor should be marked with 'ObsoleteAttribute'

Importing constructor should be marked with 'ObsoleteAttribute'.

Item Value
Category RoslynDiagnosticsReliability
Enabled True
Severity Warning
CodeFix True

RS0034: Exported parts should be marked with 'ImportingConstructorAttribute'

Exported parts should be marked with 'ImportingConstructorAttribute'.

Item Value
Category RoslynDiagnosticsReliability
Enabled True
Severity Warning
CodeFix True

RS0038: Prefer null literal

Use 'null' instead of 'default' for nullable types.

Item Value
Category RoslynDiagnosticsMaintainability
Enabled True
Severity Warning
CodeFix True

RS0040: Defaultable types should have defaultable fields

Defaultable types should have defaultable fields.

Item Value
Category RoslynDiagnosticsReliability
Enabled True
Severity Warning
CodeFix False

RS0042: Do not copy value

Do not unbox non-copyable value types.

Item Value
Category RoslynDiagnosticsReliability
Enabled True
Severity Warning
CodeFix False

RS0043: Do not call 'GetTestAccessor()'

'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

RS0046: Avoid the 'Opt' suffix

Avoid the 'Opt' suffix in a nullable-enabled code.

Item Value
Category RoslynDiagnosticsDesign
Enabled True
Severity Warning
CodeFix True

RS0049: Instance of TemporaryArray<T>.AsRef() must be a 'using' variable

Instance of TemporaryArray<T>.AsRef() must be a 'using' variable.

Item Value
Category RoslynDiagnosticsReliability
Enabled True
Severity Warning
CodeFix False

RS0100: Statements must be placed on their own line

Statements must be placed on their own line

Item Value
Category RoslynDiagnosticsMaintainability
Enabled True
Severity Warning
CodeFix True

RS0101: Avoid multiple blank lines

Avoid multiple blank lines

Item Value
Category RoslynDiagnosticsMaintainability
Enabled True
Severity Warning
CodeFix True

RS0102: Braces must not have blank lines between them

Braces must not have blank lines between them

Item Value
Category RoslynDiagnosticsMaintainability
Enabled True
Severity Warning
CodeFix True