Skip to content

Clippy has no --color option #8044

Open
@mvtec-bergdolll

Description

@mvtec-bergdolll

Similar to other cargo tooling and cargo itself there should be a --color=always/never option for clippy.

I have situation where I'd like to pipe clippy into other programs and preserve the colors. But I see no way of achieving that.

Example bash: cargo test -- --color=always |& less preserves colors but cargo clippy -- --color=always |& less fails and just cargo clippy |& less strips colors.

@ rustbot label +C-enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-uiArea: Clippy interface, usage and configurationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions