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
If attribute is added to type or member, there should be blank line enforced above it, unless
there is another attribute or xml doc comment in the line above
element decorated with attribute is first element of its parent (e.g. first member in the type, or first type in a namespace)
attribute is added inline - e.g. attributes added for parameters should not trigger this rule
Rationale - currently SC enforces blank line before element if there are no attributes and xml doc comments at all. It also enforces blank line above xml doc comment. Attributes feel like missing piece in the whole puzzle
The text was updated successfully, but these errors were encountered:
IMHO it would be strange to fix it within SA1516 scope, since xml doc comments do have separate dedicated rule - SA1514
sharwell
changed the title
Rule proposal: Layout rule - Blank line required before attributes
SA1516 should require a line before attributes
Sep 12, 2015
If attribute is added to type or member, there should be blank line enforced above it, unless
Rationale - currently SC enforces blank line before element if there are no attributes and xml doc comments at all. It also enforces blank line above xml doc comment. Attributes feel like missing piece in the whole puzzle
The text was updated successfully, but these errors were encountered: