Skip to content

Warn on // tidy-ignore-linelength #130984

Closed
@jieyouxu

Description

@jieyouxu

I've ran into this many times, where I tried to write

// tidy-ignore-linelength

or other tidy-ignore-* tidy directives. But this is actually wrong and does nothing, since the actual syntax is

// ignore-tidy-linelength

It might be helpful if tidy warns on seeing // tidy-ignore-linelength. It's not a big deal, just a minor papercut.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tidyArea: The tidy toolC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions