We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ab24f commit 83e9cadCopy full SHA for 83e9cad
1 file changed
nix/checks.nix
@@ -89,6 +89,17 @@
89
}
90
);
91
92
+ cargo-sort =
93
+ pkgs.runCommand "cargo-sort-${rev}"
94
+ {
95
+ inherit src;
96
+ nativeBuildInputs = [ pkgs.cargo-sort ];
97
+ }
98
+ ''
99
+ cargo-sort --check --workspace "$src"
100
+ mkdir -p $out
101
+ '';
102
+
103
no-todo-comments = pkgs.runCommand "no-todo-comments-${rev}" { inherit src; } ''
104
if grep -rn --exclude-dir=contrib 'TO[D]O\|FIX[M]E' $src/ 2>/dev/null; then
105
echo "FAIL: unresolved work-item markers found"
@@ -110,6 +121,7 @@
110
121
lint = pkgs.symlinkJoin {
111
122
name = "lint-checks-${rev}";
112
123
paths = [
124
+ checks.cargo-sort
113
125
checks.clippy
114
126
checks.doc
115
127
checks.no-todo-comments
0 commit comments