mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 13:45:12 +02:00
other: update lints (#1369)
I have `missing_docs` disabled for now as that'll take a long time to get through... maybe in a separate PR.
This commit is contained in:
parent
ecb6faa089
commit
e71048e394
15
Cargo.toml
15
Cargo.toml
@ -208,3 +208,18 @@ assets = [
|
|||||||
{ source = "completion/_btm", dest = "/usr/share/zsh/vendor-completions/", mode = "644" },
|
{ source = "completion/_btm", dest = "/usr/share/zsh/vendor-completions/", mode = "644" },
|
||||||
{ source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" },
|
{ source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Activate whenever we bump the unofficial MSRV to 1.74, I guess?
|
||||||
|
# [lints.rust]
|
||||||
|
# rust_2018_idioms = "deny"
|
||||||
|
# missing_docs = "deny"
|
||||||
|
# unused_extern_crates = "deny"
|
||||||
|
|
||||||
|
# [lints.rustdoc]
|
||||||
|
# broken_intra_doc_links = "deny"
|
||||||
|
# missing_crate_level_docs = "deny"
|
||||||
|
|
||||||
|
# [lints.clippy]
|
||||||
|
# todo = "deny"
|
||||||
|
# unimplemented = "deny"
|
||||||
|
# missing_safety_doc = "deny"
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
|
/// Filters used by widgets to filter out certain entries.
|
||||||
|
/// TODO: Move this out maybe?
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Filter {
|
pub struct Filter {
|
||||||
// TODO: Maybe change to "ignore_matches"?
|
/// Whether the filter _accepts_ all entries that match `list`,
|
||||||
pub is_list_ignored: bool,
|
/// or _denies_ any entries that match it.
|
||||||
|
pub is_list_ignored: bool, // TODO: Maybe change to "ignore_matches"?
|
||||||
|
|
||||||
|
/// The list of regexes to match against. Whether it goes through
|
||||||
|
/// the filter or not depends on `is_list_ignored`.
|
||||||
pub list: Vec<regex::Regex>,
|
pub list: Vec<regex::Regex>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
//! bottom, refer to [here](https://clementtsang.github.io/bottom/stable/).
|
//! bottom, refer to [here](https://clementtsang.github.io/bottom/stable/).
|
||||||
|
|
||||||
#![deny(rust_2018_idioms)]
|
#![deny(rust_2018_idioms)]
|
||||||
|
// #![deny(missing_docs)]
|
||||||
|
#![deny(unused_extern_crates)]
|
||||||
|
#![deny(rustdoc::broken_intra_doc_links)]
|
||||||
|
#![deny(rustdoc::missing_crate_level_docs)]
|
||||||
#![deny(clippy::todo)]
|
#![deny(clippy::todo)]
|
||||||
#![deny(clippy::unimplemented)]
|
#![deny(clippy::unimplemented)]
|
||||||
#![deny(clippy::missing_safety_doc)]
|
#![deny(clippy::missing_safety_doc)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user