about summary refs log tree commit diff stats
path: root/home-manager/packages/scripts/wrappers/deprecated/clippy
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/packages/scripts/wrappers/deprecated/clippy')
-rwxr-xr-xhome-manager/packages/scripts/wrappers/deprecated/clippy56
1 files changed, 56 insertions, 0 deletions
diff --git a/home-manager/packages/scripts/wrappers/deprecated/clippy b/home-manager/packages/scripts/wrappers/deprecated/clippy
new file mode 100755
index 00000000..89f8554a
--- /dev/null
+++ b/home-manager/packages/scripts/wrappers/deprecated/clippy
@@ -0,0 +1,56 @@
+#!/bin/sh
+# shellcheck disable=SC2086
+# shellcheck source=/dev/null
+. ~/.local/lib/shell/lib
+
+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