Showing 2 of 2 total issues
Function Build
has 7 return statements (exceeds 4 allowed). Open
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")
}
Function GetGockerfileConfig
has 6 return statements (exceeds 4 allowed). Open
Open
func GetGockerfileConfig(ctx context.Context, c client.Client) (*config.Config, error) {
opts := c.BuildOpts().Opts
var localName string
filename := opts[keyFilename]