Skip to content

Tab output format without a color #3728

@cristaloleg

Description

@cristaloleg

Your feature request related to a problem? Please describe.

I started writing a blog post regarding my golangci-lint setup and decided to try the tab 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)

output:
  format: tab:lint.txt

image

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 also sed-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 field no-color: <boolean> or just join https://no-color.org/ movement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: outputRelated to issue outputenhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions