zephinzer/godev

View on GitHub

Showing 3 of 18 total issues

Colors has 23 methods (exceeds 20 allowed). Consider refactoring.
Open

type Colors struct{}
Severity: Minor
Found in colors.go - About 2 hrs to fix

    Method Command.IsValid has 5 return statements (exceeds 4 allowed).
    Open

    func (command *Command) IsValid() error {
        application := command.config.Application
        if len(application) == 0 {
            return errors.New("no application was specified")
        }
    Severity: Major
    Found in command.go - About 35 mins to fix

      Method FileInitialiser.Handle has 5 return statements (exceeds 4 allowed).
      Open

      func (fi FileInitialiser) Handle(skip ...bool) error {
          if len(skip) > 0 && skip[0] {
              fi.logger.Info(
                  Color("gray",
                      fmt.Sprintf("godev> skipping '%s' - already exists", path.Base(fi.Path)),
      Severity: Major
      Found in initialiser.file.go - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language