SimonBaeumer/goss

View on GitHub
cmd/goss/goss.go

Summary

Maintainability
C
1 day
Test Coverage

Function createAddCommand has 134 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func createAddCommand(app *cli.App) cli.Command {
    return cli.Command{
        Name:    "add",
        Aliases: []string{"a"},
        Usage:   "add a resource to the test suite",
Severity: Major
Found in cmd/goss/goss.go - About 4 hrs to fix

    Function createValidateCommand has 70 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func createValidateCommand(app *cli.App) cli.Command {
        startTime := time.Now()
    
        return cli.Command{
            Name:    "validate",
    Severity: Minor
    Found in cmd/goss/goss.go - About 1 hr to fix

      Function createApp has 65 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func createApp() *cli.App {
          app := cli.NewApp()
          app.EnableBashCompletion = true
          app.Version = version
          app.Name = "goss"
      Severity: Minor
      Found in cmd/goss/goss.go - About 1 hr to fix

        Function createServeCommand has 63 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func createServeCommand() cli.Command {
            return cli.Command{
                Name:    "serve",
                Aliases: []string{"s"},
                Usage:   "Serve a health endpoint",
        Severity: Minor
        Found in cmd/goss/goss.go - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status