Update gometalinter

and enable the new WarnUnmatchedDirective to warn if a nolint is unnecessary.
remove some unnecessary nolint

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2017-10-11 12:18:27 -04:00
parent b68c3d007f
commit c0d004f7cf
46 changed files with 88 additions and 95 deletions

View File

@ -16,7 +16,7 @@ type enableOpts struct {
name string
}
func newEnableCommand(dockerCli *command.DockerCli) *cobra.Command {
func newEnableCommand(dockerCli command.Cli) *cobra.Command {
var opts enableOpts
cmd := &cobra.Command{
@ -34,7 +34,7 @@ func newEnableCommand(dockerCli *command.DockerCli) *cobra.Command {
return cmd
}
func runEnable(dockerCli *command.DockerCli, opts *enableOpts) error {
func runEnable(dockerCli command.Cli, opts *enableOpts) error {
name := opts.name
if opts.timeout < 0 {
return errors.Errorf("negative timeout %d is invalid", opts.timeout)