#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null . %SHELL_LIBRARY_PATH tmp=$(mktemp); cat << EOF > $tmp; -W clippy::allow_attributes_without_reason -W clippy::clone_on_ref_ptr -W clippy::create_dir -W clippy::decimal_literal_representation -W clippy::filetype_is_file -W clippy::get_unwrap -W clippy::if_then_some_else_none -W clippy::large_include_file -W clippy::let_underscore_must_use -W clippy::missing_enforced_import_renames -W clippy::mixed_read_write_in_expression -W clippy::mod_module_files -W clippy::multiple_inherent_impl -W clippy::rc_mutex -W clippy::rc_buffer -W clippy::rest_pat_in_fully_bound_structs -W clippy::same_name_method -W clippy::single_char_lifetime_names -W clippy::str_to_string -W clippy::string_to_string -W clippy::unneeded_field_pattern -W clippy::unseparated_literal_suffix -W clippy::verbose_file_reads -W clippy::wildcard_enum_match_arm # debugging remnants -W clippy::unwrap_used #-W clippy::use_debug #-W clippy::unreachable #-W clippy::unimplemented #-W clippy::todo #-W clippy::panic #-W clippy::panic_in_result_fn #-W clippy::expect_used #-W clippy::dbg_macro # Docs -W clippy::missing_docs_in_private_items -W clippy::undocumented_unsafe_blocks EOF cargo clippy -- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used -W clippy::cargo $(clean "$tmp") if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi