Skip to content

Commit 5151f66

Browse files
committed
fix: Sort alphaetically
1 parent b4e3560 commit 5151f66

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

modules/hooks.nix

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -817,28 +817,6 @@ in
817817
};
818818
};
819819
};
820-
rumdl = mkOption {
821-
description = "rumdl hook";
822-
type = types.submodule {
823-
imports = [ hookModule ];
824-
options.settings = {
825-
configuration =
826-
mkOption {
827-
type = types.attrs;
828-
description =
829-
"See https://github.com/rvben/rumdl?tab=readme-ov-file#configuration";
830-
default = { };
831-
example = {
832-
configuration = {
833-
MD013 = {
834-
line-length = 100;
835-
};
836-
};
837-
};
838-
};
839-
};
840-
};
841-
};
842820
mdl = mkOption {
843821
description = "mdl hook";
844822
type = types.submodule {
@@ -1645,6 +1623,28 @@ in
16451623
};
16461624
};
16471625
};
1626+
rumdl = mkOption {
1627+
description = "rumdl hook";
1628+
type = types.submodule {
1629+
imports = [ hookModule ];
1630+
options.settings = {
1631+
configuration =
1632+
mkOption {
1633+
type = types.attrs;
1634+
description =
1635+
"See https://github.com/rvben/rumdl?tab=readme-ov-file#configuration";
1636+
default = { };
1637+
example = {
1638+
configuration = {
1639+
MD013 = {
1640+
line-length = 100;
1641+
};
1642+
};
1643+
};
1644+
};
1645+
};
1646+
};
1647+
};
16481648
rustfmt = mkOption {
16491649
description = ''
16501650
Additional rustfmt settings
@@ -3339,21 +3339,6 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
33393339
entry = "${hooks.markdownlint.package}/bin/markdownlint -c ${pkgs.writeText "markdownlint.json" (builtins.toJSON hooks.markdownlint.settings.configuration)}";
33403340
files = "\\.md$";
33413341
};
3342-
rumdl =
3343-
let
3344-
cmdArgs =
3345-
mkCmdArgs
3346-
(with hooks.rumdl.settings; [
3347-
[ (configuration != { }) " --config ${toml.generate ".rumdl.toml" configuration}" ]
3348-
]);
3349-
in
3350-
{
3351-
name = "rumdl";
3352-
description = "Style checker and linter for rumdl files.";
3353-
package = tools.rumdl;
3354-
entry = "${hooks.rumdl.package}/bin/rumdl check ${cmdArgs}";
3355-
files = "\\.md$";
3356-
};
33573342
mdformat = {
33583343
name = "mdformat";
33593344
description = "CommonMark compliant Markdown formatter";
@@ -3932,6 +3917,21 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
39323917
entry = "${hooks.ruff.package}/bin/ruff format";
39333918
types = [ "python" ];
39343919
};
3920+
rumdl =
3921+
let
3922+
cmdArgs =
3923+
mkCmdArgs
3924+
(with hooks.rumdl.settings; [
3925+
[ (configuration != { }) " --config ${toml.generate ".rumdl.toml" configuration}" ]
3926+
]);
3927+
in
3928+
{
3929+
name = "rumdl";
3930+
description = "Style checker and linter for rumdl files.";
3931+
package = tools.rumdl;
3932+
entry = "${hooks.rumdl.package}/bin/rumdl check ${cmdArgs}";
3933+
files = "\\.md$";
3934+
};
39353935
rustfmt =
39363936
let
39373937
mkAdditionalArgs = args: lib.optionalString (args != "") " -- ${args}";

0 commit comments

Comments
 (0)