Skip to content

Tracking Issue: Split up our UI-tests into smaller parts #2038

Closed
@oli-obk

Description

@oli-obk

Changing files like tests/ui/methods.rs causes a lot of diff noise. I think the ui output of every file should be kept below 100 lines preferrably and below 200 as a hard limit.

The files would best be split up to only check one or two lints

Current status:

$ wc -l tests/ui/*.stderr | sort -nr | head -n 15
   272 tests/ui/cognitive_complexity.stderr
   260 tests/ui/collapsible_if.stderr
   259 tests/ui/non_copy_const.stderr
   258 tests/ui/missing-doc.stderr
   247 tests/ui/if_same_then_else.stderr
   246 tests/ui/transmute.stderr
   245 tests/ui/match_same_arms.stderr
   224 tests/ui/needless_range_loop.stderr
   220 tests/ui/drop_forget_ref.stderr
   214 tests/ui/use_self.stderr
   214 tests/ui/eq_op.stderr
   213 tests/ui/indexing_slicing.stderr
   210 tests/ui/option_map_unit_fn.stderr
   203 tests/ui/booleans.stderr

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-an-interesting-projectCategory: Interesting projects, that usually are more involved design/code wise.C-tracking-issueCategory: Tracking IssueE-help-wantedCall for participation: Help is requested to fix this issue.good first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions