-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-hooks.yaml
78 lines (78 loc) · 2.63 KB
/
.pre-commit-hooks.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
- id: remove-unreferenced-image
name: check if image is not referenced by any file
entry: pre_commit_hooks/main.sh remove-unreferenced-image
language: script
types: [image]
- id: use-webp-image
name: check if image is in webp format
entry: pre_commit_hooks/main.sh use-webp-image
language: script
require_serial: true
types: [image]
exclude_types: [svg]
- id: fix-en-dash-list
name: fix en dash list which is not recognized as real list
entry: pre_commit_hooks/main.sh fix-en-dash-list
language: script
types: [markdown]
- id: no-full-uri-for-internal-pages
name: fix full URI link for internal pages
entry: pre_commit_hooks/main.sh no-full-uri-for-internal-pages
language: script
types: [markdown]
- id: tab-with-querystring-undefined
name: queryString must be defined when groupId is not defined
entry: pre_commit_hooks/main.sh tab-with-querystring-undefined
language: script
types: [markdown]
- id: tab-without-querystring
name: Tabs must come with queryString
entry: pre_commit_hooks/main.sh tab-without-querystring
language: script
types: [markdown]
- id: check-external-links
name: Check external links
entry: pre_commit_hooks/main.sh check-external-links
language: script
types: [markdown]
stages: [manual]
- id: disable-sidebar_label
name: Use Markdown title instead of sidebar_label
entry: pre_commit_hooks/main.sh disable-sidebar_label
language: script
types: [markdown]
- id: index-to-README
name: Rename index.md to README.md
entry: pre_commit_hooks/main.sh index-to-README
language: script
types: [markdown]
- id: globally-available-components
name: Remove duplicated import for globally enabled components
entry: pre_commit_hooks/main.sh globally-available-components
language: script
types: [markdown]
- id: remove-category-json
name: Remove duplicated import for globally enabled components
entry: pre_commit_hooks/main.sh remove-category-json
language: script
types: [json]
- id: check-folder-structure
name: Ensure same folder structure between translations
entry: pre_commit_hooks/main.sh check-folder-structure
language: script
types_or: [file, symlink]
- id: check-chinese
name: Check if English documents contain Chinese
entry: pre_commit_hooks/main.sh check-chinese
language: script
types_or: [markdown]
- id: check-title-initial
name: Check if the first letter of the title is capitalized
entry: pre_commit_hooks/main.sh check-title-initial
language: script
types_or: [markdown]
- id: trademark-check
name: Enforce proper standard when referencing trademarks
entry: pre_commit_hooks/main.sh trademark-check
language: script
types: [markdown]