Skip to content

Commit

Permalink
AV2400: Simple properties/events on single line (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoelman authored Apr 23, 2024
1 parent 9d4f431 commit 7308090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _rules/2400.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ severity: 1

- Always put opening and closing curly braces on a new line.

Exception: simple properties/events without a body, such as: `public string Value { get; set; } = "default";`

- Don't indent object/collection initializers and initialize each property on a new line, so use a format like this:

var dto = new ConsumerDto
Expand Down

0 comments on commit 7308090

Please sign in to comment.