Check long lines and FIXME/TODO on CI (#575)
This commit is contained in:
parent
ed991cb509
commit
f50196a67f
4
.github/workflows/rust.yaml
vendored
4
.github/workflows/rust.yaml
vendored
@ -19,8 +19,10 @@ jobs:
|
|||||||
rustup --version
|
rustup --version
|
||||||
cargo --version
|
cargo --version
|
||||||
cargo clippy --version
|
cargo clippy --version
|
||||||
- name: Lint
|
- name: Clippy
|
||||||
run: cargo clippy
|
run: cargo clippy
|
||||||
|
- name: Lint
|
||||||
|
run: cargo run lint
|
||||||
- name: Format
|
- name: Format
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
- name: Completion Scripts
|
- name: Completion Scripts
|
||||||
|
@ -674,7 +674,8 @@ OPTIONS:
|
|||||||
Print colorful output [default: auto] [possible values: auto, always, never]
|
Print colorful output [default: auto] [possible values: auto, always, never]
|
||||||
|
|
||||||
--completions <SHELL>
|
--completions <SHELL>
|
||||||
Print shell completion script for <SHELL> [possible values: zsh, bash, fish, powershell, elvish]
|
Print shell completion script for <SHELL> \
|
||||||
|
[possible values: zsh, bash, fish, powershell, elvish]
|
||||||
|
|
||||||
-f, --justfile <JUSTFILE> Use <JUSTFILE> as justfile.
|
-f, --justfile <JUSTFILE> Use <JUSTFILE> as justfile.
|
||||||
--set <VARIABLE> <VALUE> Override <VARIABLE> with <VALUE>
|
--set <VARIABLE> <VALUE> Override <VARIABLE> with <VALUE>
|
||||||
|
49
src/lib.rs
49
src/lib.rs
@ -1,36 +1,31 @@
|
|||||||
#![deny(clippy::all, clippy::pedantic, clippy::restriction)]
|
#![deny(clippy::all, clippy::pedantic, clippy::restriction)]
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::print_stdout,
|
|
||||||
clippy::else_if_without_else,
|
|
||||||
clippy::use_debug,
|
|
||||||
clippy::implicit_return,
|
|
||||||
clippy::if_not_else,
|
|
||||||
clippy::missing_docs_in_private_items,
|
|
||||||
clippy::enum_glob_use,
|
|
||||||
clippy::integer_arithmetic,
|
|
||||||
clippy::option_unwrap_used,
|
|
||||||
clippy::indexing_slicing,
|
|
||||||
clippy::non_ascii_literal,
|
|
||||||
clippy::missing_inline_in_public_items,
|
|
||||||
clippy::option_expect_used,
|
|
||||||
clippy::comparison_chain,
|
clippy::comparison_chain,
|
||||||
clippy::wildcard_enum_match_arm,
|
clippy::else_if_without_else,
|
||||||
clippy::too_many_lines,
|
clippy::enum_glob_use,
|
||||||
clippy::shadow_unrelated,
|
|
||||||
clippy::needless_pass_by_value,
|
|
||||||
clippy::option_map_unwrap_or,
|
|
||||||
clippy::filter_map,
|
clippy::filter_map,
|
||||||
clippy::result_expect_used,
|
clippy::if_not_else,
|
||||||
clippy::unreachable,
|
clippy::implicit_return,
|
||||||
clippy::string_add,
|
clippy::indexing_slicing,
|
||||||
|
clippy::integer_arithmetic,
|
||||||
|
clippy::match_same_arms,
|
||||||
|
clippy::missing_docs_in_private_items,
|
||||||
|
clippy::missing_inline_in_public_items,
|
||||||
|
clippy::needless_pass_by_value,
|
||||||
|
clippy::non_ascii_literal,
|
||||||
|
clippy::option_expect_used,
|
||||||
|
clippy::option_map_unwrap_or,
|
||||||
|
clippy::option_unwrap_used,
|
||||||
clippy::panic,
|
clippy::panic,
|
||||||
clippy::match_same_arms
|
clippy::print_stdout,
|
||||||
|
clippy::result_expect_used,
|
||||||
|
clippy::shadow_unrelated,
|
||||||
|
clippy::string_add,
|
||||||
|
clippy::too_many_lines,
|
||||||
|
clippy::unreachable,
|
||||||
|
clippy::use_debug,
|
||||||
|
clippy::wildcard_enum_match_arm
|
||||||
)]
|
)]
|
||||||
// clippy::option_map_unwrap_or_else,
|
|
||||||
// clippy::result_expect_used,
|
|
||||||
// clippy::result_unwrap_used,
|
|
||||||
// clippy::unreachable
|
|
||||||
// )]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
|
Loading…
Reference in New Issue
Block a user