-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Planning to do a larger v7 update to our standard lints (#59) with a bunch of additions and requirement of Rust 1.60
Lint candidates
These are the candidates currently thinking of and are using in our internal main repo but will experiment with all of these in our other private and open repos and see if there are any issues with them there.
Planning to add
Quite trivial but nice ones:
clippy::disallowed_script_identsclippy::equatable_if_letclippy::fn_to_numeric_cast_anyclippy::index_refutable_sliceclippy::iter_not_returning_iteratorclippy::negative_feature_namesclippy::nonstandard_macro_bracesclippy::trailing_empty_arrayclippy::unnecessary_wrapstrivial_numeric_casts
Planning to remove
These are now warn-by-default:
clippy::disallowed_methodsclippy::disallowed_types
Considering
More opinionated for our engine repository workflow:
clippy::mod_module_files- the style we use and preferclippy::undocumented_unsafe_blocks- this one we do have a lot ofallows with for FFI crates and such, but it is a quite nice default still that we just recently activatedunsafe_op_in_unsafe_fn- see this tracking issue and deeper discussion in RFC about the direction of getting this to be default in the language asunsafe fnandunsafeblocks are quite different things. Tracking Issue for "unsafe blocks in unsafe fn" (RFC #2585) rust-lang/rust#71668rustdoc::missing_crate_level_docs- this may not be that important for many repos, but we've found it a nice quality to have for both internal and open source crates - and can just be a single-line when you add the crate.
Metadata
Metadata
Assignees
Labels
No labels