You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/hooks.nix
+54-13Lines changed: 54 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1520,19 +1520,53 @@ in
1520
1520
type=types.submodule{
1521
1521
imports=hookModule;
1522
1522
options.settings={
1523
-
relaxed=mkOption{
1524
-
type=types.bool;
1525
-
description=lib.mdDoc"Whether to use the relaxed configuration.";
1526
-
default=false;
1527
-
};
1523
+
# `list-files` is not useful for a pre-commit hook as it always exits with exit code 0
1524
+
# `no-warnings` is not useful for a pre-commit hook as it exits with exit code 2 and the hook
1525
+
# therefore fails when warnings level problems are detected but there is no output
1526
+
configuration=mkOption{
1527
+
type=types.str;
1528
+
description=lib.mdDoc"Multiline-string configuration passed as config file. If set, configuration file set in `yamllint.settings.configPath` gets ignored.";
1529
+
default="";
1530
+
example=''
1531
+
---
1532
+
1533
+
extends: relaxed
1528
1534
1535
+
rules:
1536
+
indentation: enable
1537
+
'';
1538
+
};
1539
+
configData=mkOption{
1540
+
type=types.str;
1541
+
description=lib.mdDoc"Serialized YAML object describing the configuration.";
0 commit comments