mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-03-23 15:48:50 +00:00
remove crate lints
This commit is contained in:
parent
4118f488bf
commit
29afe237d5
1 changed files with 4 additions and 91 deletions
|
@ -1,98 +1,11 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
//---------------------------------------------------------------------------------------------------- Lints
|
|
||||||
// Forbid lints.
|
|
||||||
// Our code, and code generated (e.g macros) cannot overrule these.
|
|
||||||
#![forbid(
|
|
||||||
// `unsafe` is allowed but it _must_ be
|
|
||||||
// commented with `SAFETY: reason`.
|
|
||||||
clippy::undocumented_unsafe_blocks,
|
|
||||||
|
|
||||||
// Never.
|
|
||||||
unused_unsafe,
|
|
||||||
redundant_semicolons,
|
|
||||||
unused_allocation,
|
|
||||||
coherence_leak_check,
|
|
||||||
|
|
||||||
// Maybe can be put into `#[deny]`.
|
|
||||||
unconditional_recursion,
|
|
||||||
for_loops_over_fallibles,
|
|
||||||
unused_braces,
|
|
||||||
unused_labels,
|
|
||||||
keyword_idents,
|
|
||||||
non_ascii_idents,
|
|
||||||
variant_size_differences,
|
|
||||||
single_use_lifetimes,
|
|
||||||
|
|
||||||
// Probably can be put into `#[deny]`.
|
|
||||||
future_incompatible,
|
|
||||||
let_underscore,
|
|
||||||
break_with_label_and_loop,
|
|
||||||
duplicate_macro_attributes,
|
|
||||||
exported_private_dependencies,
|
|
||||||
large_assignments,
|
|
||||||
overlapping_range_endpoints,
|
|
||||||
semicolon_in_expressions_from_macros,
|
|
||||||
noop_method_call,
|
|
||||||
)]
|
|
||||||
// Deny lints.
|
|
||||||
// Some of these are `#[allow]`'ed on a per-case basis.
|
|
||||||
#![deny(
|
|
||||||
clippy::all,
|
|
||||||
clippy::correctness,
|
|
||||||
clippy::suspicious,
|
|
||||||
clippy::style,
|
|
||||||
clippy::complexity,
|
|
||||||
clippy::perf,
|
|
||||||
clippy::pedantic,
|
|
||||||
clippy::nursery,
|
|
||||||
clippy::cargo,
|
|
||||||
unused_doc_comments,
|
|
||||||
unused_mut,
|
|
||||||
missing_docs,
|
|
||||||
deprecated,
|
|
||||||
unused_comparisons,
|
|
||||||
nonstandard_style,
|
|
||||||
// unreachable_pub
|
|
||||||
)]
|
|
||||||
#![allow(
|
#![allow(
|
||||||
// FIXME: this lint affects crates outside of
|
unused_imports,
|
||||||
// `database/` for some reason, allow for now.
|
unreachable_pub,
|
||||||
clippy::cargo_common_metadata,
|
unused_crate_dependencies,
|
||||||
|
reason = "TODO: remove after v1.0.0"
|
||||||
// FIXME: adding `#[must_use]` onto everything
|
|
||||||
// might just be more annoying than useful...
|
|
||||||
// although it is sometimes nice.
|
|
||||||
clippy::must_use_candidate,
|
|
||||||
|
|
||||||
// FIXME: good lint but too many false positives
|
|
||||||
// with our `Env` + `RwLock` setup.
|
|
||||||
clippy::significant_drop_tightening,
|
|
||||||
|
|
||||||
// FIXME: good lint but is less clear in most cases.
|
|
||||||
clippy::items_after_statements,
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
rustdoc::bare_urls,
|
|
||||||
|
|
||||||
clippy::multiple_crate_versions,
|
|
||||||
clippy::module_name_repetitions,
|
|
||||||
clippy::module_inception,
|
|
||||||
clippy::redundant_pub_crate,
|
|
||||||
clippy::option_if_let_else,
|
|
||||||
)]
|
)]
|
||||||
// Allow some lints in tests.
|
|
||||||
#![cfg_attr(
|
|
||||||
test,
|
|
||||||
allow(
|
|
||||||
clippy::cognitive_complexity,
|
|
||||||
clippy::needless_pass_by_value,
|
|
||||||
clippy::cast_possible_truncation,
|
|
||||||
clippy::too_many_lines
|
|
||||||
)
|
|
||||||
)]
|
|
||||||
// TODO: remove after debug and/or v1.0.0 impl.
|
|
||||||
#![allow(unused_imports, unreachable_pub, unused_crate_dependencies)]
|
|
||||||
|
|
||||||
mod blockchain;
|
mod blockchain;
|
||||||
mod config;
|
mod config;
|
||||||
|
|
Loading…
Reference in a new issue