Skip to content

Lint Rust demos with clippy #908

Open
@Hofer-Julian

Description

@Hofer-Julian

One thing that would be good to have is to check all Rust demos with clippy.
Clippy both ensures that they build correctly, but also acts as a linter.
Looking at the code it seems like we currently lint with language servers.
That is possible with rust-analyzer, but it's also wasteful compared to just running cargo clippy directly.

What I think should be done:

  • Loop through each demo
  • Copy all relevant Rust files into the demo
  • Run cargo clippy (make sure that target dir is set correctly)
  • Remove copied Rust files again

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions