-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clippy-deny the
todo!()
macro (#4340)
`todo!()` shouldn't slip into prod code
- Loading branch information
Showing
3 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# * `-A unknown_lints` – do not warn about unknown lint suppressions | ||
# that people with newer toolchains might use | ||
# * `-D warnings` - fail on any warnings (`cargo` returns non-zero exit status) | ||
export CLIPPY_COMMON_ARGS="--locked --workspace --all-targets -- -A unknown_lints -D warnings" | ||
# * `-D clippy::todo` - don't let `todo!()` slip into `main` | ||
export CLIPPY_COMMON_ARGS="--locked --workspace --all-targets -- -A unknown_lints -D warnings -D clippy::todo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![allow(clippy::todo)] | ||
|
||
use std::ffi::CString; | ||
|
||
use crate::{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd9a550
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2998 tests run: 2872 passed, 0 failed, 126 skipped (full report)
Flaky tests (3)
Postgres 16
test_statvfs_pressure_usage
: debugtest_empty_branch_remote_storage_upload
: debugPostgres 14
test_location_conf_churn[3]
: debugCode coverage* (full report)
functions
:32.7% (6872 of 21002 functions)
lines
:50.2% (53653 of 106911 lines)
* collected from Rust tests only
cd9a550 at 2024-06-25T19:34:13.303Z :recycle: