// CI workflow checks and code cleanup tools
| name | nix-cleanup |
| description | CI workflow checks and code cleanup tools |
This skill provides context about the CI workflow and code cleanup tools used in this repository.
The CI is defined in @.github/workflows/ci.yml and runs three main checks:
Flake Check (nix flake check --no-build)
Statix (nix run nixpkgs#statix -- check .)
statix fixDeadnix (nix run nixpkgs#deadnix -- .)
let bindings, function arguments, etc.deadnix -eAlways run these before committing:
# Quick check (no builds)
nix flake check --no-build
# Lint for anti-patterns
nix run nixpkgs#statix -- check .
# Find dead code
nix run nixpkgs#deadnix -- .
# Fix statix issues
nix run nixpkgs#statix -- fix .
# Remove dead code
nix run nixpkgs#deadnix -- -e .
# Bad - 'foo' is never used
let
foo = "unused";
bar = "used";
in bar
# Good - removed unused binding
let
bar = "used";
in bar
# Bad - 'pkgs' is never used
{ pkgs, lib, ... }: {
imports = [ ];
}
# Good - removed from signature
{ lib, ... }: {
imports = [ ];
}
/nix-check slash command after making changesstatix and deadnix to keep code clean