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.
2 parents d0ce0a8 + 55f5732 commit 6bf7e08Copy full SHA for 6bf7e08
modules/hooks.nix
@@ -305,6 +305,14 @@ in
305
};
306
307
308
+ yamllint =
309
+ {
310
+ relaxed = mkOption {
311
+ type = types.bool;
312
+ description = lib.mdDoc "Use the relaxed configuration";
313
+ default = false;
314
+ };
315
316
317
318
config.hooks =
@@ -603,7 +611,8 @@ in
603
611
name = "yamllint";
604
612
description = "Yaml linter.";
605
613
types = [ "file" "yaml" ];
606
- entry = "${tools.yamllint}/bin/yamllint";
614
+ entry = with settings.yamllint;
615
+ "${tools.yamllint}/bin/yamllint ${lib.optionalString relaxed "-d relaxed"}";
607
616
608
617
rustfmt =
609
618
let
0 commit comments