You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SA1137 false negative at inconsistent indentation inside extension block
SA1502 false negative for extension block with openning and closing braces on same line
SA1505 false negative at starting blank line first in extension block
SA1508 false negative at ending blank line in extension block
Add tests for already correct behavior:
SA1000: Keyword extension should be ignored
SA1008: There should be no space in extension<TSource> (
SA1008: There should be no space in extension<TSource>( IEnumerable<TSource>)
SA1009: There should be no space in extension<TSource>(IEnumerable<TSource> source )
SA1014: There should be no space in extension <TSource>
SA1014: There should be no space in extension< TSource>
SA1015: There should be no space in extension<TSource> (
SA1201
SA1202
SA1203?
SA1204?
SA1313: Parameter name should start with lower case
SA1314: Type parameter should start with T in extension block
SA1400: No access modifiers is not needed for extension block
SA1507: Multiple blank lines should not be allowed inside an extension block
SA1509: There should be no blank line before the opening brace in an extension blolck
SA1513: There should be a blank line after an extension block
SA1515: Should not trigger first in extension block
SA1516: There should be a blank line after an extension block
Investigation is in progress.
How to treat this in documentation rules? Not require documentation, but make all other rules run if it exists?
What about SA1201ElementsMustAppearInTheCorrectOrder?
What about SA1600ElementsMustBeDocumented?
What about SA1611ElementParametersMustBeDocumented?
What about SA1618GenericTypeParametersMustBeDocumented?
What about SA1619GenericTypeParametersMustBeDocumentedPartialClass?
Activity
bjornhellander commentedon Sep 15, 2025
Incorrect behavior:
Add tests for already correct behavior:
extension<TSource> (extension<TSource>( IEnumerable<TSource>)extension<TSource>(IEnumerable<TSource> source )extension <TSource>extension< TSource>extension<TSource> (extensionblockextensionblolckInvestigation is in progress.
How to treat this in documentation rules? Not require documentation, but make all other rules run if it exists?
What about SA1201ElementsMustAppearInTheCorrectOrder?
What about SA1600ElementsMustBeDocumented?
What about SA1611ElementParametersMustBeDocumented?
What about SA1618GenericTypeParametersMustBeDocumented?
What about SA1619GenericTypeParametersMustBeDocumentedPartialClass?
Check SA1400 again!
Update SA1101PrefixLocalCallsWithThis to not trigger in extension mem…
Update SA1137ElementsShouldHaveTheSameIndentation to handle extension…
Update SA1137ElementsShouldHaveTheSameIndentation to handle extension…
Update SA1502ElementMustNotBeOnASingleLine to handle extension declar…
Add SA1505OpeningBracesMustNotBeFollowedByBlankLine test for extensio…
Add SA1505OpeningBracesMustNotBeFollowedByBlankLine test for extensio…
Add SA1505OpeningBracesMustNotBeFollowedByBlankLine test for extensio…
Add SA1508ClosingBracesMustNotBePrecededByBlankLine test for extensio…
Improve some test names #30
bjornhellander commentedon Sep 18, 2025
Handled analyzers with incorrect behavior in #44
Add SA1600ElementsMustBeDocumented tests for extension declarations #30
Update SA1500BracesForMultiLineStatementsMustNotShareLine to handle e…
Add SA1400AccessModifierMustBeDeclared tests for extension declarations
16 remaining items
Add SA1314TypeParameterNamesMustBeginWithT tests for extension declar…
Add SA1507CodeMustNotContainMultipleBlankLinesInARow tests for extens…
Add SA1509OpeningBracesMustNotBePrecededByBlankLine tests for extensi…
Add SA1513ClosingBraceMustBeFollowedByBlankLine tests for extension d…
Add SA1515SingleLineCommentMustBePrecededByBlankLine tests for extens…
Update SA1500 to handle C# 14 extension blocks
Update SA1502 to handle C# 14 extension blocks
Update SA1505 to handle C# 14 extension blocks
Update SA1508 to handle C# 14 extension blocks
Update SA1516 to handle C# 14 extension blocks
Update SA1106 to handle C# 14 extension blocks
Update SA1110 to handle C# 14 extension blocks
Update SA1111 to handle C# 14 extension blocks
Update SA1137 to handle C# 14 extension blocks
Add C# 14 extension block tests for rules that already handle them