Lint yaml better
This commit is contained in:
+26
-1
@@ -1,4 +1,9 @@
|
||||
{ hooks, system, ... }:
|
||||
{
|
||||
hooks,
|
||||
lib,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
pre-commit-check = hooks.lib.${system}.run {
|
||||
@@ -9,6 +14,26 @@
|
||||
#flake-checker.enable = true;
|
||||
nixfmt-rfc-style.enable = true;
|
||||
check-merge-conflicts.enable = true;
|
||||
check-yaml.enable = true;
|
||||
yamllint = {
|
||||
enable = true;
|
||||
args = [
|
||||
"--config-data"
|
||||
(lib.generators.toYAML { } {
|
||||
extends = "default";
|
||||
ignore = [
|
||||
"manifests/cnpg-system/barman-cloud.yaml"
|
||||
".pre-commit-config.yaml"
|
||||
];
|
||||
rules = {
|
||||
comments = false;
|
||||
comments-indentation = false;
|
||||
document-start = false;
|
||||
};
|
||||
})
|
||||
];
|
||||
verbose = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user