Repository navigation
Closed
Description
Records does not seem to be fully handled:
| Rule(s) | File | Notes |
|---|---|---|
| SA1203 | StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1203ConstantsMustAppearBeforeFields.cs |
ImmutableArray.Create(Class, Struct) |
| SA1204 | StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1204StaticElementsMustAppearBeforeInstanceElements.cs |
ImmutableArray.Create(Class, Struct) |
| SA1206 | StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1206DeclarationKeywordsMustFollowOrder.cs |
has a comment noting the union pseudo-kind is also missing — records never considered |
| SA1207 | StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1207ProtectedMustComeBeforeInternal.cs |
same pattern |
| SA1214 | StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1214ReadonlyElementsMustAppearBeforeNonReadonlyElements.cs |
same pattern |
| SA1601 | StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/SA1601PartialElementsMustBeDocumented.cs |
Class, Struct, Interface — partial records skipped |
| SA1620/SA1621/SA1622 | StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/GenericTypeParameterDocumentationAnalyzer.cs |
Class, Struct, Interface — typeparam docs skipped for records |
| SA1648 | StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/SA1648InheritDocMustBeUsedWithInheritingClass.cs |
Class, Struct, Interface, Enum, Delegate |
| SA1506 | StyleCop.Analyzers/StyleCop.Analyzers/LayoutRules/SA1506ElementDocumentationHeadersMustNotBeFollowedByBlankLine.cs |
HandledSyntaxKinds — union comment present, records absent |
| SA1514 | StyleCop.Analyzers/StyleCop.Analyzers/LayoutRules/SA1514ElementDocumentationHeaderMustBePrecededByBlankLine.cs |
same pattern |
| SA1200 | StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1200UsingDirectivesMustBePlacedCorrectly.cs |
case list for suppressing the "usings outside namespace" check on top-level types omits RecordDeclaration/RecordStructDeclaration |
Metadata
Metadata
Assignees
Labels
No labels
Activity
Update SA1200 to also handle records
Update SA1203 to handle records and interfaces
Update SA1204 to handle records and interfaces
Update SA1206 to handle records
Update SA1207 to handle constructors, enums and records
Update SA1214 to handle records and interfaces
Update SA1506 to handle records
Update SA1514 to handle records
Update SA1601 to handle records
Update SA1648 to handle records
Update GenericTypeParameterDocumentationAnalyzer to handle records
Update some documentation files
[-]Review and probably improve handling of records[/-][+]Improve handling of records[/+]Update SA1206 to handle records
Update SA1203 to handle records and interfaces
Update SA1207 to handle constructors, enums and records
Update SA1200 to also handle records
Update SA1506 to handle records
Update SA1514 to handle records
Update SA1648 to handle records
Update SA1601 to handle records
Update GenericTypeParameterDocumentationAnalyzer to handle records
Add tests for record handling in ordering, layout and documentation r…