-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switches to use our new standard template for defining shared Rust and Clippy lints for our Embark projects, EmbarkStudios/rust-ecosystem#59. Did a couple of lint fixes from this but didn't want to make the change too intrusive so added some allow exceptions for now that can be revisited
- Loading branch information
Showing
10 changed files
with
169 additions
and
81 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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,10 +1,3 @@ | ||
// Author: Tom Olsson <[email protected]> | ||
// Copyright © 2019, Embark Studios, all rights reserved. | ||
// Created: 2 April 2019 | ||
|
||
#![warn(clippy::all)] | ||
#![deny(rust_2018_idioms)] | ||
|
||
//! # 🎳 physx | ||
//! | ||
//! ![Build Status](https://github.com/EmbarkStudios/physx-rs/workflows/CI/badge.svg) | ||
|
@@ -100,6 +93,59 @@ | |
//! license, shall be dual licensed as above, without any additional terms or | ||
//! conditions. | ||
// BEGIN - Embark standard lints v0.2. | ||
// do not change or add/remove here, but one can add exceptions after this section | ||
// for more info see: <https://github.com/EmbarkStudios/rust-ecosystem/issues/59> | ||
#![deny(unsafe_code)] | ||
#![warn( | ||
clippy::all, | ||
clippy::await_holding_lock, | ||
clippy::dbg_macro, | ||
clippy::debug_assert_with_mut_call, | ||
clippy::doc_markdown, | ||
clippy::empty_enum, | ||
clippy::enum_glob_use, | ||
clippy::exit, | ||
clippy::explicit_into_iter_loop, | ||
clippy::filter_map_next, | ||
clippy::fn_params_excessive_bools, | ||
clippy::if_let_mutex, | ||
clippy::imprecise_flops, | ||
clippy::inefficient_to_string, | ||
clippy::let_unit_value, | ||
clippy::linkedlist, | ||
clippy::lossy_float_literal, | ||
clippy::macro_use_imports, | ||
clippy::map_flatten, | ||
clippy::map_unwrap_or, | ||
clippy::match_on_vec_items, | ||
clippy::match_wildcard_for_single_variants, | ||
clippy::mem_forget, | ||
clippy::mismatched_target_os, | ||
clippy::needless_borrow, | ||
clippy::needless_continue, | ||
clippy::option_option, | ||
clippy::pub_enum_variant_names, | ||
clippy::ref_option_ref, | ||
clippy::rest_pat_in_fully_bound_structs, | ||
clippy::string_to_string, | ||
clippy::suboptimal_flops, | ||
clippy::todo, | ||
clippy::unnested_or_patterns, | ||
clippy::unused_self, | ||
clippy::verbose_file_reads, | ||
future_incompatible, | ||
nonstandard_style, | ||
rust_2018_idioms | ||
)] | ||
// END - Embark standard lints v0.2 | ||
// crate-specific exceptions: | ||
#![allow( | ||
unsafe_code, // this is a safe wrapper of unsafe code, so plenty of unsafe code in here | ||
clippy::doc_markdown, // TODO: fixup comments and docs (though annoyingly complains about "PhysX") | ||
clippy::pub_enum_variant_names, // TODO: revisit, will change API, remove from standard set? | ||
)] | ||
|
||
// Utility traits | ||
pub mod traits; | ||
|
||
|
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
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
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
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
Oops, something went wrong.