Inital bot files
Some checks failed
CI / Build (ubuntu-latest) (push) Waiting to run
CI / Build (windows-latest) (push) Waiting to run
CI / Flake checks (push) Waiting to run
CI / CI Release gate (push) Blocked by required conditions
Docker / Build image (push) Waiting to run
Docker / Docker Release gate (push) Blocked by required conditions
Docker / Push image (push) Blocked by required conditions
Clippy / Run scan (push) Has been cancelled
Some checks failed
CI / Build (ubuntu-latest) (push) Waiting to run
CI / Build (windows-latest) (push) Waiting to run
CI / Flake checks (push) Waiting to run
CI / CI Release gate (push) Blocked by required conditions
Docker / Build image (push) Waiting to run
Docker / Docker Release gate (push) Blocked by required conditions
Docker / Push image (push) Blocked by required conditions
Clippy / Run scan (push) Has been cancelled
This commit is contained in:
commit
6bac95dce6
91 changed files with 4422 additions and 0 deletions
39
nix/clippy.nix
Normal file
39
nix/clippy.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
cargo,
|
||||
clippy,
|
||||
clippy-sarif,
|
||||
refraction,
|
||||
rustPlatform,
|
||||
sarif-fmt,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "${refraction.pname}-sarif-report";
|
||||
inherit (refraction)
|
||||
version
|
||||
src
|
||||
cargoDeps
|
||||
buildInputs
|
||||
;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cargo
|
||||
clippy
|
||||
clippy-sarif
|
||||
rustPlatform.cargoSetupHook
|
||||
sarif-fmt
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
cargo clippy \
|
||||
--all-features \
|
||||
--all-targets \
|
||||
--tests \
|
||||
--message-format=json \
|
||||
| clippy-sarif | tee $out | sarif-fmt
|
||||
'';
|
||||
|
||||
dontInstall = true;
|
||||
dontFixup = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue