yasshi2525/RushHour

View on GitHub
entities/line_task.go

Summary

Maintainability
A
3 hrs
Test Coverage
D
69%

LineTask has 24 methods (exceeds 20 allowed). Consider refactoring.
Open

type LineTask struct {
    Base
    Persistence

    TaskType LineTaskType `gorm:"not null" json:"type"`
Severity: Minor
Found in entities/line_task.go - About 2 hrs to fix

    Method LineTask.Resolve has 52 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (lt *LineTask) Resolve(args ...Entity) {
        for _, raw := range args {
            switch obj := raw.(type) {
            case *Player:
                lt.O = obj
    Severity: Minor
    Found in entities/line_task.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status