Skip to content

Make sure enums are always laid out vertically #266

Description

@NathanLovato

According to the style guide, enums should always be laid out vertically.

Write enums with each item on its own line. This allows adding documentation comments above each item more easily, and also makes for cleaner diffs in version control when items are added or removed.

enum Element {
	EARTH,
	WATER,
	AIR,
	FIRE,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions