modularize Rust lints and add RUST_UNWRAP check
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest2 patches 7 repliesIn review
- v82 patches 1 replySuperseded
- v71 patch 1 replySuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 1 patch | 1 reply | Superseded | |
| v5 | 1 patch | 3 replies | Superseded |
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | scripts: checkpatch: move Rust-specific lints to separate fileMAINTAINERS scripts/ scripts/ | +36 | 0 replies | |
| 2/2 | scripts: checkpatch: add RUST_UNWRAP lintscripts/ | +15 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.
Cover letter [PATCH v9 0/2] modularize Rust lints and add RUST_UNWRAP check
This series moves Rust-specific linting logic into a separate file to prevent further growth of the main scripts/checkpatch.pl script and introduces a new lint to enforce safety standards.
The first patch creates the infrastructure for scripts/rust_checkpatch.pl and adds a conditional loading hook in the main checkpatch script. It also updates the MAINTAINERS file to track this new file.
The second patch introduces the RUST_UNWRAP lint, which warns against the use of .unwrap() and .expect() unless they are accompanied by a '// PANIC:' justification comment.
Jason Hall (2):
scripts: checkpatch: move Rust-specific lints to separate file
scripts: checkpatch: add RUST_UNWRAP lint
MAINTAINERS | 6 ++++++ scripts/checkpatch.pl | 14 ++++++++++++++ scripts/rust_checkpatch.pl | 30 ++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 scripts/rust_checkpatch.pl
Signature · 1 line
2.43.0