Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode common safety anti-patterns in Clippy #24

Closed
Shnatsel opened this issue Jan 14, 2019 · 2 comments
Closed

Encode common safety anti-patterns in Clippy #24

Shnatsel opened this issue Jan 14, 2019 · 2 comments

Comments

@Shnatsel
Copy link
Member

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.

@tarcieri
Copy link
Member

Whoops, guess I opened #27 without seeing this before and it's a dup. How would you like to proceed @Shnatsel ?

@Shnatsel
Copy link
Member Author

This is now a duplicate of #27, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants