Skip to content

Encode common safety anti-patterns in Clippy #24

Closed
@Shnatsel

Description

@Shnatsel

https://github.com/rust-lang/rust-clippy is the go-to linter for Rust. We should encode common anti-patterns in it so that people will get warnings about such code. This includes:

  1. Code that compromises safety directly, such as improper path handling
  2. Code that tends to be slow and get refactored into unsafe code for performance reasons, even though a safe alternative is available (see New lint: slow or unsafe vector initialization rust-lang/rust-clippy#3237 for an example)

#19 will help in detecting the anti-patterns.

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