|
817 | 817 | }; |
818 | 818 | }; |
819 | 819 | }; |
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 | | - }; |
842 | 820 | mdl = mkOption { |
843 | 821 | description = "mdl hook"; |
844 | 822 | type = types.submodule { |
@@ -1645,6 +1623,28 @@ in |
1645 | 1623 | }; |
1646 | 1624 | }; |
1647 | 1625 | }; |
| 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 | + }; |
1648 | 1648 | rustfmt = mkOption { |
1649 | 1649 | description = '' |
1650 | 1650 | Additional rustfmt settings |
@@ -3339,21 +3339,6 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm |
3339 | 3339 | entry = "${hooks.markdownlint.package}/bin/markdownlint -c ${pkgs.writeText "markdownlint.json" (builtins.toJSON hooks.markdownlint.settings.configuration)}"; |
3340 | 3340 | files = "\\.md$"; |
3341 | 3341 | }; |
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 | | - }; |
3357 | 3342 | mdformat = { |
3358 | 3343 | name = "mdformat"; |
3359 | 3344 | description = "CommonMark compliant Markdown formatter"; |
@@ -3932,6 +3917,21 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm |
3932 | 3917 | entry = "${hooks.ruff.package}/bin/ruff format"; |
3933 | 3918 | types = [ "python" ]; |
3934 | 3919 | }; |
| 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 | + }; |
3935 | 3935 | rustfmt = |
3936 | 3936 | let |
3937 | 3937 | mkAdditionalArgs = args: lib.optionalString (args != "") " -- ${args}"; |
|
0 commit comments