-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Tab output format without a color #3728
Comments
Hello, I created PR #3729. I don't introduce a Also, you can already use the env var |
I missed one existing option because this option was not documented: --color never I will document that. And I think we will have to review this global approach to color and output. |
In fact, the option The config file version doesn't work, and I don't know why, probably a historical reason. |
I think I know why: the option has been probably introduced to handle colors inside logs but as this option is modifying the global var So this option cannot be documented in the reference file, and will always work only with CLI flags like the |
Well, my feature is completely done in #3729. A global |
Your feature request related to a problem? Please describe.
I started writing a blog post regarding my
golangci-lint
setup and decided to try thetab
format, which looks cool and I like it.I tried the following config and was upset because my
lint.txt
is full of cryptic symbols related to the colouring (see screenshot)Describe the solution you'd like.
Add a new format which outputs results in the
tab
format but without colours, so no cryptic symbols appear in the output file.Describe alternatives you've considered.
Keep using
line-number
or using a personal fork without colours. This can be alsosed
-ed but I don't like this fix.Additional context.
I'm happy to make a PR, I'm just not sure which fix would be better: add a new
tab-no-colour
format or add a separate config fieldno-color: <boolean>
or just join https://no-color.org/ movement.The text was updated successfully, but these errors were encountered: