inklabs/rangedb

View on GitHub
examples/chat/room_aggregate_gen.go

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 3 of 3 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

switch e := event.(type) {
 
case RoomWasOnBoarded:
a.roomWasOnBoarded(e)
 
 
Severity: Major
Found in examples/chat/room_aggregate_gen.go and 1 other location - About 2 hrs to fix
examples/chat/room_aggregate_gen.go on lines 64..102

Similar blocks of code found in 2 locations. Consider refactoring.
Open

switch c := command.(type) {
 
case OnBoardRoom:
a.onBoardRoom(c)
 
 
Severity: Major
Found in examples/chat/room_aggregate_gen.go and 1 other location - About 2 hrs to fix
examples/chat/room_aggregate_gen.go on lines 22..60

Similar blocks of code found in 2 locations. Consider refactoring.
Open

func (a *room) Load(recordIterator rangedb.RecordIterator) {
for recordIterator.Next() {
if recordIterator.Err() == nil {
if event, ok := recordIterator.Record().Data.(rangedb.Event); ok {
a.apply(event)
Severity: Minor
Found in examples/chat/room_aggregate_gen.go and 1 other location - About 30 mins to fix
examples/chat/user_aggregate_gen.go on lines 11..19
Category
Status