updoot
This commit is contained in:
@@ -1,5 +1,26 @@
|
||||
[alias]
|
||||
cl = "clippy -- --no-deps -Wclippy::correctness -Wclippy::complexity -Wclippy::suspicious -Wclippy::style -Wclippy::perf -Wclippy::pedantic -Wclippy::nursery -Aclippy::cargo -Aclippy::restriction -Aclippy::must_use_candidate"
|
||||
clippy-all = [
|
||||
"clippy",
|
||||
"--",
|
||||
"--no-deps", # run Clippy only on the given crate
|
||||
# Deny, Warn, Allow, Forbid
|
||||
"-Wclippy::correctness", # code that is outright wrong or useless
|
||||
"-Wclippy::complexity", # code that does something simple but in a complex way
|
||||
"-Wclippy::suspicious", # code that is most likely wrong or useless
|
||||
"-Wclippy::style", # code that should be written in a more idiomatic way
|
||||
"-Wclippy::perf", # code that can be written to run faster
|
||||
"-Wclippy::pedantic", # lints which are rather strict or have occasional false positives
|
||||
"-Wclippy::nursery", # new lints that are still under development
|
||||
"-Aclippy::cargo", # lints for the cargo manifest
|
||||
"-Aclippy::restriction", # lints which prevent the use of language and library features
|
||||
# Specific
|
||||
"-Aclippy::must_use_candidate", # must_use is rather annoing
|
||||
"-Aclippy::cognitive_complexity",
|
||||
"-Aclippy::too_many_lines",
|
||||
"-Aclippy::missing_errors_doc",
|
||||
"-Aclippy::from_iter_instead_of_collect", # formats better
|
||||
|
||||
]
|
||||
|
||||
[build]
|
||||
rustc-wrapper = "sccache"
|
||||
|
||||
Reference in New Issue
Block a user