Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang build option with multi tags #1883

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -9295,7 +9295,8 @@ Requires Go 1.6 or newer. See URL `https://golang.org/cmd/go'."
:command ("go" "build"
(option-flag "-i" flycheck-go-build-install-deps)
;; multiple tags are listed as "dev debug ..."
(option-list "-tags=" flycheck-go-build-tags concat)
(option "-tags=" flycheck-go-build-tags concat
flycheck-option-comma-separated-list)
"-o" null-device)
:error-patterns
((error line-start (file-name) ":" line ":"
Expand Down Expand Up @@ -9334,7 +9335,8 @@ Requires Go 1.6 or newer. See URL `https://golang.org/cmd/go'."
Requires Go 1.6 or newer. See URL `https://golang.org/cmd/go'."
:command ("go" "test"
(option-flag "-i" flycheck-go-build-install-deps)
(option-list "-tags=" flycheck-go-build-tags concat)
(option "-tags=" flycheck-go-build-tags concat
flycheck-option-comma-separated-list)
"-c" "-o" null-device)
:error-patterns
((error line-start (file-name) ":" line ":"
Expand All @@ -9358,7 +9360,8 @@ Requires errcheck newer than commit 8515d34 (Aug 28th, 2015).
See URL `https://github.com/kisielk/errcheck'."
:command ("errcheck"
"-abspath"
(option-list "-tags=" flycheck-go-build-tags concat)
(option "-tags=" flycheck-go-build-tags concat
flycheck-option-comma-separated-list)
".")
:error-patterns
((warning line-start
Expand Down Expand Up @@ -9398,7 +9401,8 @@ versions of go\". `staticheck' can target earlier versions (with
limited features) if `flycheck-go-version' is set. See URL
`https://staticcheck.io/'."
:command ("staticcheck" "-f" "json"
(option-list "-tags" flycheck-go-build-tags concat)
(option "-tags" flycheck-go-build-tags concat
flycheck-option-comma-separated-list)
(option "-go" flycheck-go-version))

:error-parser flycheck-parse-go-staticcheck
Expand Down