forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
63 lines (56 loc) · 1.58 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## You can find more hooks here https://pre-commit.com/hooks.html
repos:
- repo: local
hooks:
- id: check-versions
name: Check development environment tooling versions
entry: make
language: system
types_or: ["swift", "objective-c", "objective-c++", "c", "c++" ]
fail_fast: true
args:
- "check-versions"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-actions
- id: check-github-workflows
args: [--verbose]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: local
hooks:
- id: format-clang
name: Format ObjC, ObjC++, C, and C++
entry: make
language: system
types_or: ["objective-c", "objective-c++", "c", "c++"]
args:
- "format-clang"
- id: format-swift
name: Format Swift
entry: make
language: system
types_or: ["swift" ]
args:
- "format-swift"
- id: lint
name: Run Linters
entry: make
language: system
types_or: ["swift", "objective-c", "objective-c++", "c", "c++" ]
args:
- "lint"