fix: exclude secrets from yaml linting
This commit is contained in:
parent
0d155fa553
commit
bf9584b0f1
57
flake.nix
57
flake.nix
@ -115,29 +115,40 @@
|
|||||||
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 = [
|
};
|
||||||
"--exclude"
|
in
|
||||||
"^https://.+\\.backblazeb2\\.com"
|
{
|
||||||
];
|
actionlint = default;
|
||||||
markdownlint.enable = true;
|
deadnix = default;
|
||||||
nixfmt-rfc-style.enable = true;
|
flake-checker = default;
|
||||||
ripsecrets.enable = true;
|
lychee = default // {
|
||||||
# statix.enable = true;
|
args = [
|
||||||
typos.enable = true;
|
"--exclude-all-private"
|
||||||
yamlfmt.enable = true;
|
"--exclude"
|
||||||
yamllint.enable = true;
|
"^https://.*\\.backblazeb2\\.com"
|
||||||
yamllint.args = [
|
"--exclude"
|
||||||
"--config-file"
|
"^https://.*\\.ataraxiadev\\.com"
|
||||||
".yamllint"
|
];
|
||||||
"--format"
|
};
|
||||||
"parsable"
|
markdownlint = default;
|
||||||
];
|
nixfmt-rfc-style = default;
|
||||||
};
|
ripsecrets = default;
|
||||||
|
typos = default;
|
||||||
|
yamlfmt = default;
|
||||||
|
yamllint = default // {
|
||||||
|
args = [
|
||||||
|
"--config-file"
|
||||||
|
".yamllint"
|
||||||
|
"--format"
|
||||||
|
"parsable"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user