Skip to content

Was the command line option --out-format removed at golangci-lint v2? #5612

Answered by ldez
suzuki-shunsuke asked this question in Q&A
Discussion options

You must be logged in to vote

--out-format has been migrated to the following flags:

--output.text.path stdout           Output path can be either stdout, `stderr` or path to the file to write to.
--output.text.print-linter-name     Print linter name in the end of issue text. (default true)
--output.text.print-issued-lines    Print lines of code with issue. (default true)
--output.text.colors                Use colors. (default true)
--output.json.path stdout           Output path can be either stdout, `stderr` or path to the file to write to.
--output.tab.path stdout            Output path can be either stdout, `stderr` or path to the file to write to.
--output.tab.print-linter-name      Print linter name in the end …

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@ldez
Comment options

ldez Mar 24, 2025
Maintainer

Answer selected by suzuki-shunsuke
@suzuki-shunsuke
Comment options

@suzuki-shunsuke
Comment options

@ldez
Comment options

ldez Mar 24, 2025
Maintainer

@suzuki-shunsuke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants