Skip to content

CI: fuzz: Run cargo fmt and cargo clippy #7718

@drinkcat

Description

@drinkcat

Looks like we have no CI test that runs cargo fmt and cargo clippy in fuzz directory.

cd fuzz && cargo fmt does work, so we could add that reasonably easily.

But cd fuzz && cargo clippy doesn't, as it looks like cfg(fuzzing) is not set in that case.

error[E0603]: module `number` is private
  --> fuzz_targets/fuzz_seq_parse_number.rs:9:13
   |
9  | use uu_seq::number::PreciseNumber;
   |             ^^^^^^ private module
   |
note: the module `number` is defined here
  --> /home/drinkcat/dev/coreutils/coreutils/src/uu/seq/src/seq.rs:24:1
   |
24 | mod number;
   | ^^^^^^^^^^

Fixed what was possible to fix in #7717, but we should find a way to automate this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions