hunterlong/statup

View on GitHub
types/services/database.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Service.Delete has 6 return statements (exceeds 4 allowed).
Open

func (s *Service) Delete() error {
    s.Close()
    if err := s.AllFailures().DeleteAll(); err != nil {
        return err
    }
Severity: Major
Found in types/services/database.go - About 40 mins to fix

    Method Service.Validate has 5 return statements (exceeds 4 allowed).
    Open

    func (s *Service) Validate() error {
        if s.Name == "" {
            return errors.New("missing service name")
        } else if s.Domain == "" && s.Type != "static" {
            return errors.New("missing domain name")
    Severity: Major
    Found in types/services/database.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status