po3rin/gockerfile

View on GitHub

Showing 2 of 2 total issues

Function Build has 7 return statements (exceeds 4 allowed).
Open

func Build(ctx context.Context, c client.Client) (*client.Result, error) {
    cfg, err := GetGockerfileConfig(ctx, c)
    if err != nil {
        return nil, errors.Wrap(err, "got error getting gockerfile")
    }
Severity: Major
Found in build.go - About 45 mins to fix

    Function GetGockerfileConfig has 6 return statements (exceeds 4 allowed).
    Open

    func GetGockerfileConfig(ctx context.Context, c client.Client) (*config.Config, error) {
        opts := c.BuildOpts().Opts
    
        var localName string
        filename := opts[keyFilename]
    Severity: Major
    Found in build.go - About 40 mins to fix
      Severity
      Category
      Status
      Source
      Language