-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (32 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (32 loc) · 1.01 KB
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
# Pre-commit configuration for automated code quality and security checks
# Hooks: security scanning, linting, spellcheck, manifest validation
# Requires: Node.js, npm, Python, pre-commit framework
repos:
- repo: https://github.com/ministryofjustice/devsecops-hooks
rev: v1.5.0
hooks:
- id: baseline
name: DevSecOps - Secret scanning
pass_filenames: false
- repo: local
hooks:
- id: lint
name: Lint check
entry: npm run validate:all
language: system
pass_filenames: false
- id: spellcheck
name: Spell check
entry: npm run spellcheck
language: system
pass_filenames: false
- id: pre-commit-hook
name: Pre-commit hook validation
entry: pre-commit validate-manifest
language: system
pass_filenames: false
- id: pre-commit-config
name: Pre-commit configuration validation
entry: pre-commit validate-config
language: system
pass_filenames: false