From 6025f670f2edddb53d1e0feaf1833305e683fba2 Mon Sep 17 00:00:00 2001 From: golangci Date: Sun, 6 May 2018 13:28:00 +0300 Subject: [PATCH] build tags support --- internal/commands/run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/commands/run.go b/internal/commands/run.go index 11756382..99300e61 100644 --- a/internal/commands/run.go +++ b/internal/commands/run.go @@ -37,6 +37,7 @@ func (e *Executor) initRun() { fmt.Sprintf("Format of output: %s", strings.Join(config.OutFormats, "|"))) runCmd.Flags().IntVar(&rc.ExitCodeIfIssuesFound, "issues-exit-code", 1, "Exit code when issues were found") + runCmd.Flags().StringSliceVar(&rc.BuildTags, "build-tags", []string{}, "Build tags (not all linters support them)") runCmd.Flags().BoolVar(&rc.Errcheck.CheckClose, "errcheck.check-close", false, "Errcheck: check missed error checks on .Close() calls") runCmd.Flags().BoolVar(&rc.Errcheck.CheckTypeAssertions, "errcheck.check-type-assertions", false, "Errcheck: check for ignored type assertion results")