Skip to content

Commit

Permalink
Enable clippy on CI (#574)
Browse files Browse the repository at this point in the history
* Enable clippy on CI

* Use rustc in check-clippy...
  • Loading branch information
Hoverbear authored Aug 14, 2023
1 parent b870f97 commit 72bc65b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions nix/check.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
});

}

0 comments on commit 72bc65b

Please sign in to comment.