fix: exclude secrets from yaml linting
This commit is contained in:
parent
0d155fa553
commit
bf9584b0f1
41
flake.nix
41
flake.nix
@ -115,23 +115,33 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
lsp.package = pkgs.nixd;
|
lsp.package = pkgs.nixd;
|
||||||
};
|
};
|
||||||
pre-commit.hooks = {
|
pre-commit.hooks =
|
||||||
actionlint.enable = true;
|
let
|
||||||
deadnix.enable = true;
|
default = {
|
||||||
flake-checker.enable = true;
|
enable = true;
|
||||||
lychee.enable = true;
|
excludes = [ "secrets/.*" ];
|
||||||
lychee.args = [
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
actionlint = default;
|
||||||
|
deadnix = default;
|
||||||
|
flake-checker = default;
|
||||||
|
lychee = default // {
|
||||||
|
args = [
|
||||||
|
"--exclude-all-private"
|
||||||
"--exclude"
|
"--exclude"
|
||||||
"^https://.+\\.backblazeb2\\.com"
|
"^https://.*\\.backblazeb2\\.com"
|
||||||
|
"--exclude"
|
||||||
|
"^https://.*\\.ataraxiadev\\.com"
|
||||||
];
|
];
|
||||||
markdownlint.enable = true;
|
};
|
||||||
nixfmt-rfc-style.enable = true;
|
markdownlint = default;
|
||||||
ripsecrets.enable = true;
|
nixfmt-rfc-style = default;
|
||||||
# statix.enable = true;
|
ripsecrets = default;
|
||||||
typos.enable = true;
|
typos = default;
|
||||||
yamlfmt.enable = true;
|
yamlfmt = default;
|
||||||
yamllint.enable = true;
|
yamllint = default // {
|
||||||
yamllint.args = [
|
args = [
|
||||||
"--config-file"
|
"--config-file"
|
||||||
".yamllint"
|
".yamllint"
|
||||||
"--format"
|
"--format"
|
||||||
@ -140,6 +150,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user