Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (19 loc) · 516 Bytes

event_base_class_suffix.md

File metadata and controls

29 lines (19 loc) · 516 Bytes

event_base_class_suffix

severity: WARNING

The base event class should always be suffixed by Event.

Example:

BAD:

@immutable
sealed class CounterData {}

final class CounterStarted extends CounterData {}

GOOD:

@immutable
sealed class CounterEvent {}

final class CounterStarted extends CounterEvent {}

Additional Resources