Enable clippy on CI (#574)

* Enable clippy on CI

* Use rustc in check-clippy...
This commit is contained in:
Ana Hobden 2023-08-14 10:00:34 -07:00 committed by GitHub
parent b870f97c0e
commit 72bc65b2ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -21,6 +21,8 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check rustfmt
run: nix develop --command check-rustfmt
- name: Check Clippy
run: nix develop --command check-clippy
- name: Check Spelling
run: nix develop --command check-spelling
- name: Check nixpkgs-fmt formatting

View file

@ -144,6 +144,7 @@
check.check-nixpkgs-fmt
check.check-editorconfig
check.check-semver
check.check-clippy
]
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [
libiconv

View file

@ -50,4 +50,13 @@ in
cargo-semver-checks semver-checks check-release
'';
});
# Clippy
check-clippy = (writeShellApplication {
name = "check-clippy";
runtimeInputs = with pkgs; [ cargo clippy rustc ];
text = ''
cargo clippy
'';
});
}