Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ jobs:
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
sh rustup-init.sh -y --default-toolchain none
rustup target add x86_64-unknown-linux-gnu
- name: Check clippy configs all match
run: cargo run --manifest-path ci/Cargo.toml -- clippy-config-check
run: cargo run --locked --manifest-path ci/Cargo.toml -- clippy-config-check


run_clippy:
Expand All @@ -41,5 +40,5 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
sh rustup-init.sh -y --default-toolchain none
- name: clippy
run: cargo clippy --manifest-path ${{ matrix.package }}/Cargo.toml
run: cargo clippy --locked --manifest-path ${{ matrix.package }}/Cargo.toml

14 changes: 14 additions & 0 deletions check_diff/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,17 @@ diffy = "0.4.0"
crossbeam-channel = "0.5.15"
ignore = "0.4.25"
toml = "1.1"

[lints.clippy]
# allow all rules with a low priority ..
all = { level = "allow", priority = -1 }
# so we can pick out an exact subset of rules to deny
correctness = "deny"
char_lit_as_u8 = "deny"
four_forward_slashes = "deny"
non_minimal_cfg = "deny"
print_literal = "deny"
same_item_push = "deny"
single_char_add_str = "deny"
to_string_in_format_args = "deny"
unconditional_recursion = "deny"
1 change: 1 addition & 0 deletions ci/src/clippy_config_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use itertools::Itertools;

const CARGO_TOMLS: &[&'static str] = &[
"Cargo.toml",
"check_diff/Cargo.toml",
"ci/Cargo.toml",
"config_proc_macro/Cargo.toml",
];
Expand Down