From 7077b0ce65b50738fd37763ea8eb31aeaac9acd6 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 24 Apr 2017 10:25:38 -0300 Subject: [PATCH] Fix golint --- Taskfile.yml | 1 + cyclic.go | 1 + execext/exec.go | 1 + 3 files changed, 3 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 816f138a..0f45c89f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -9,6 +9,7 @@ lint: desc: Runs golint cmds: - golint . + - golint ./execext - golint ./cmd/task test: diff --git a/cyclic.go b/cyclic.go index afa52895..cbc30b50 100644 --- a/cyclic.go +++ b/cyclic.go @@ -1,5 +1,6 @@ package task +// HasCyclicDep checks if a task tree has any cyclic dependency func HasCyclicDep(m map[string]*Task) bool { visits := make(map[string]struct{}, len(m)) diff --git a/execext/exec.go b/execext/exec.go index 0150e8da..b4977399 100644 --- a/execext/exec.go +++ b/execext/exec.go @@ -10,6 +10,7 @@ import ( "github.com/mvdan/sh/syntax" ) +// RunCommandOptions is the options for the RunCommand func type RunCommandOptions struct { Context context.Context Command string