dotcloud/docker

View on GitHub
builder/remotecontext/detect.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func withDockerfileFromContext(c modifiableContext, dockerfilePath string) (builder.Source, *parser.Result, error) {
    df, err := openAt(c, dockerfilePath)
    if err != nil {
        if errors.Is(err, os.ErrNotExist) {
            if dockerfilePath == builder.DefaultDockerfileName {
Severity: Major
Found in builder/remotecontext/detect.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status