Skip to content

Enable clippy linting in repo #1104

@lionel-

Description

@lionel-

https://github.com/rust-lang/rust-clippy

We use it in air: https://github.com/posit-dev/air/blob/main/clippy.toml

And it's used in most major Rust projects:

In addition to linting towards conventional style conventions, it also makes it possible to disallow use of certain methods, functions, or types, which could be handy in the future (see clippy.toml files above for examples of this). We could disallow .unwrap() and .expect() in favour of log_err or explicit panic for instance. This is nice especially with agentic workflows since style directives might be ignored by agents but they can't ignore lint rules.

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