Crates.io | rust-linter |
lib.rs | rust-linter |
version | 0.1.0 |
source | src |
created_at | 2024-10-23 12:03:35.218936 |
updated_at | 2024-10-23 12:03:35.218936 |
description | A simple code linter for Rust that detects common issues like unused variables and improper naming conventions. |
homepage | |
repository | https://github.com/iamrajhans/rust-linter |
max_upload_size | |
id | 1420004 |
size | 35,052 |
A simple code linter for Rust that detects common issues like unused variables and improper naming conventions.
rustfmt
.Clone the repository:
git clone <repository_url>
Build and run the project:
cargo run -- <file_to_lint.rs>
Lint a Rust file by specifying its path as a command-line argument.
To specify the output format (plain or JSON):
cargo run -- <file_to_lint.rs> -o json
To automatically fix formatting issues using rustfmt
:
cargo run -- <file_to_lint.rs> --fix