about summary refs log tree commit diff stats
path: root/home-manager/packages/scripts/wrappers/deprecated/clippy
blob: ec21ba0793cf2857339fcaab309cf00b5636249b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /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