command/docker.go
Function Start
has 7 return statements (exceeds 4 allowed). Open
Open
func Start(ctx context.Context, tag, name string, env []string, output io.Writer) (err error) {
// Create a docker client.
cli, err := client.NewEnvClient()
if err != nil {
Function Dockerfile
has 6 return statements (exceeds 4 allowed). Open
Open
func Dockerfile(travis *Travis, opt *DockerfileOpt, archive string) (res []byte, err error) {
var data []byte
// Loading the base template.
Function archiveContext
has 6 return statements (exceeds 4 allowed). Open
Open
func archiveContext(ctx context.Context, root string, writer io.Writer) (err error) {
// Create a buffered writer.
bufWriter := bufio.NewWriter(writer)
defer bufWriter.Flush()
Function Build
has 5 return statements (exceeds 4 allowed). Open
Open
func Build(ctx context.Context, dir, tag, version string, noCache bool, output io.Writer) (err error) {
// Create a docker client.
cli, err := client.NewEnvClient()
if err != nil {