Skip to content

Tidy should not check line lengths in UI tests #77548

Closed
@RalfJung

Description

@RalfJung

UI tests regularly have long lines due to the //~ ERROR annotations. So it is not very helpful for tidy to complain about overly long lines... every single time that happened, I ended up adding // ignore-tidy-linelength (the amount of time it took me to figure out the exact way to do this went down from 3-5min the first time to <20s by now). To make test maintenance even more annoying, when an error message changes to become shorter, tidy will complain about the ignore flag being unnecessary! And each time the flag is added or removed, you need to re-bless the tests as line numbers change.

This chore doesn't really seem worth it. We don't rustfmt the test suite either. Can we just disable the line length checker in the test suite please?

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions