deadnix is a package to find unused nix code, we can add it to enforce that we don't leave let bindings/inputs/etc. around when they are not needed
+5
-1
.tangled/workflows/deadnix.yml
+5
-1
.tangled/workflows/deadnix.yml
···
10
10
11
11
dependencies:
12
12
nixpkgs:
13
+
- ansifilter
13
14
- deadnix
14
15
15
16
steps:
16
17
- name: Check for unused nix bindings
17
-
command: deadnix --exclude **/npins --fail
18
+
command: |
19
+
set -eo pipefail
20
+
21
+
deadnix --exclude **/npins --no-underscore --fail | ansifilter
packetmix/nilla.nix
packetmix/nilla.nix
This file has not been changed.
History
5 rounds
0 comments
a.starrysky.fyi
submitted
#4
expand 0 comments
pull request successfully merged
a.starrysky.fyi
submitted
#3
expand 0 comments
a.starrysky.fyi
submitted
#2
expand 0 comments
a.starrysky.fyi
submitted
#1
1 commit
expand
collapse
ci(treewide): add deadnix
deadnix is a package to find unused nix code, we can add it to enforce
that we don't leave let bindings/inputs/etc. around when they are not
needed
expand 0 comments
a.starrysky.fyi
submitted
#0
1 commit
expand
collapse
ci: add deadnix
deadnix is a package to find unused nix code, we can add it to enforce
that we don't leave let bindings/inputs/etc. around when they are not
needed