update devenv
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
d16fa1c3e3
commit
185a4a7efb
5 changed files with 172 additions and 55 deletions
78
devenv.nix
78
devenv.nix
|
|
@ -20,6 +20,7 @@
|
|||
shellcheck
|
||||
gitleaks
|
||||
yamlfmt
|
||||
go-task
|
||||
];
|
||||
|
||||
# https://devenv.sh/languages/
|
||||
|
|
@ -54,43 +55,46 @@
|
|||
'';
|
||||
|
||||
# https://devenv.sh/pre-commit-hooks/
|
||||
# git-hooks.hooks = {
|
||||
# check-yaml.enable = true;
|
||||
# end-of-file-fixer.enable = true;
|
||||
# trim-trailing-whitespace.enable = true;
|
||||
# yamlfmt = {
|
||||
# enable = true;
|
||||
# entry = "yamlfmt";
|
||||
# args = ["-in-place"];
|
||||
# files = "\\.ya?ml$";
|
||||
# language = "system";
|
||||
# };
|
||||
# yamllint.enable = true;
|
||||
# shellcheck.enable = true;
|
||||
#
|
||||
# kubeconform = {
|
||||
# enable = true;
|
||||
# entry = "kubeconform";
|
||||
# args = [
|
||||
# "-strict"
|
||||
# "-summary"
|
||||
# "-ignore-missing-schemas"
|
||||
# "-schema-location"
|
||||
# "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.ResourceKind}}-{{.ResourceAPIVersion}}.json"
|
||||
# "-schema-location"
|
||||
# "default"
|
||||
# ];
|
||||
# files = "\\.ya?ml$";
|
||||
# };
|
||||
#
|
||||
# gitleaks = {
|
||||
# enable = true;
|
||||
# entry = "gitleaks detect --no-git -v --redact";
|
||||
# language = "system";
|
||||
# pass_filenames = false;
|
||||
# };
|
||||
# };
|
||||
# pre-commit.hooks.shellcheck.enable = true;
|
||||
git-hooks.hooks = {
|
||||
check-yaml.enable = true;
|
||||
end-of-file-fixer.enable = true;
|
||||
trim-trailing-whitespace.enable = true;
|
||||
|
||||
yamlfmt = {
|
||||
enable = true;
|
||||
entry = "yamlfmt";
|
||||
args = ["-in-place"];
|
||||
files = "\\.ya?ml$";
|
||||
language = "system";
|
||||
};
|
||||
|
||||
yamllint.enable = true;
|
||||
shellcheck.enable = true;
|
||||
|
||||
kubeconform = {
|
||||
enable = true;
|
||||
entry = "kubeconform";
|
||||
args = [
|
||||
"-strict"
|
||||
"-summary"
|
||||
"-ignore-missing-schemas"
|
||||
"-schema-location"
|
||||
"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.ResourceKind}}-{{.ResourceAPIVersion}}.json"
|
||||
"-schema-location"
|
||||
"default"
|
||||
];
|
||||
files = "\\.ya?ml$";
|
||||
language = "system";
|
||||
pass_filenames = true;
|
||||
};
|
||||
|
||||
gitleaks = {
|
||||
enable = true;
|
||||
entry = "gitleaks detect --no-git -v --redact";
|
||||
language = "system";
|
||||
pass_filenames = false;
|
||||
};
|
||||
};
|
||||
|
||||
# See full reference at https://devenv.sh/reference/options/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue