Commit fbcf5b0 1 parent 8fa11f2 commit fbcf5b0 Copy full SHA for fbcf5b0
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 8
8
language : system
9
9
files : \.nix$
10
10
- id : shfmt
11
- name : Sh (Shell formatter)
11
+ name : Sh (shell formatter)
12
12
description : This hook checks shell files with Stylua.
13
13
entry : bash -c 'for arg in "$@"; do nix shell nixpkgs#shfmt --command shfmt -w $arg; done;' --
14
14
language : system
@@ -19,9 +19,15 @@ repos:
19
19
entry : bash -c 'for arg in "$@"; do nix shell nixpkgs#stylua --command stylua $arg; done;' --
20
20
language : system
21
21
files : \.lua$
22
- - id : gitleaks
23
- name : Gitleaks (Secret scanner)
24
- description : This hook checks the existence of secrets.
22
+ - id : gitleaks-git
23
+ name : Gitleaks Git (secret scanner)
24
+ description : This hook checks the existence of secrets in Git .
25
25
entry : bash -c 'nix shell nixpkgs#gitleaks --command gitleaks git --pre-commit --redact --staged --no-banner --verbose 2> /dev/null'
26
26
language : system
27
27
pass_filenames : false
28
+ - id : gitleaks-dir
29
+ name : Gitleaks Dir (secret scanner)
30
+ description : This hook checks the existence of secrets in a directory.
31
+ entry : bash -c 'nix shell nixpkgs#gitleaks --command gitleaks dir --redact --no-banner --verbose 2> /dev/null'
32
+ language : system
33
+ pass_filenames : false
You can’t perform that action at this time.
0 commit comments