From 7c542611149e6a0bbbf6644e342aa7c19411e97a Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sun, 7 Jul 2024 19:08:06 -0400 Subject: [PATCH] attempt to add mdl Signed-off-by: ahuston-0 --- .mdl_style.rb | 2 +- checks.nix | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.mdl_style.rb b/.mdl_style.rb index 6b9b7c9..6a1bb85 100644 --- a/.mdl_style.rb +++ b/.mdl_style.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby all -rule 'MD007', :indent => 4 +rule 'MD007', :indent => 2 rule 'MD013', :tables => false diff --git a/checks.nix b/checks.nix index 3cfebe5..77653e5 100644 --- a/checks.nix +++ b/checks.nix @@ -43,6 +43,16 @@ forEachSystem (system: { # toml hooks check-toml.enable = true; + # markdown hooks + mdl = { + enable = true; + settings.rules = [ + "all" + "rule 'MD007', :indent => 2" + "rule 'MD013', :tables => false" + ]; + }; + # git hooks check-merge-conflicts.enable = true; ## prevents committing to main