-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (40 loc) · 1.09 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (40 loc) · 1.09 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
38
39
40
41
42
43
44
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=1024]
- id: check-case-conflict
- id: detect-private-key
- id: mixed-line-ending
args: [--fix=lf]
- repo: local
hooks:
- id: swiftformat
name: SwiftFormat
language: system
# Fixer, not linter: rewrites the files and fails the run, like the
# pre-commit-hooks fixers above.
entry: swiftformat
types: [swift]
- id: swiftlint
name: SwiftLint
language: system
entry: swiftlint lint --strict --quiet
types: [swift]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint