-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.59 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
name: "**CHECK** Case conflict"
- id: check-added-large-files
name: "**CHECK** Large files"
args: ["--maxkb=5120"]
- id: check-executables-have-shebangs
name: "**CHECK** Executables for shebangs"
- id: check-merge-conflict
name: "**CHECK** Merge conflicts"
- id: check-symlinks
name: "**CHECK** Symlinks"
- id: end-of-file-fixer
name: "**CHECK** End of files"
- id: trailing-whitespace
name: "**CHECK** Trailing whitespace"
- id: check-yaml
name: "**CHECK** YAML linter"
args: ["--allow-multiple-documents"]
- id: check-toml
name: "**CHECK** TOML linter"
- id: check-json
name: "**CHECK** JSON linter"
- id: check-xml
name: "**CHECK** XML linter"
- id: requirements-txt-fixer
name: "**CHECK** Text linter"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: "**CHECK** General linter"
files: \.(js|ts|jsx|tsx|css|less|html|json|markdown|md|yaml|yml)$
# - repo: https://github.com/gitleaks/gitleaks
# rev: v8.18.2
# hooks:
# - id: gitleaks
# name: "**CHECK** Hardcoded secrets"
# description: Detect hardcoded secrets using Gitleaks
# entry: gitleaks protect --verbose --redact --staged
# language: golang
# pass_filenames: false
ci:
autofix_prs: false
submodules: false