-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
54 lines (54 loc) · 1.74 KB
/
.pre-commit-hooks.yaml
File metadata and controls
54 lines (54 loc) · 1.74 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
45
46
47
48
49
50
51
52
53
54
- id: jira-issue
name: Commit Has Jira Issue
description: Check commit message for a recognized Jira issue
entry: check-linden-jira-issue
language: python
stages: [commit-msg]
- id: opensource-license
name: Code Has Opensource License
description: Check code files for a valid opensource license header
entry: check-linden-opensource-license
files: \.(?:cpp|c|h|py|glsl)$
language: python
- id: license
name: Code Has License
description: Check code files for a valid internal/proprietary license header
entry: check-linden-license
files: \.(?:cpp|c|h|py|glsl|sh|bat|pl)$
language: python
- id: llsd
name: Check LLSD
description: Check LLSD files for parseable syntax
entry: check-llsd
types: [xml]
language: python
- id: indent-with-spaces
name: Check Indentation (Spaces)
description: Check if files that should be indented with spaces are
entry: check-linden-indent-with-spaces
files: \.(?:cpp|c|h|inl|py|glsl|cmake)$
language: python
- id: indent-with-tabs
name: Check Indentation (Tabs)
description: Checks if files that should be indented with tabs are
entry: check-linden-indent-with-tabs
files: (?:^[Mm]akefile|\.make)$
language: python
- id: no-trigraphs
name: Check for Trigraphs
description: Search c/c++ code for trigraphs, see https://wiki.secondlife.com/wiki/Coding_Standard#Trigraphs
entry: check-linden-no-trigraphs
files: \.(?:cpp|c|h)$
language: python
- id: copyright
name: Copyright
description: Check for copyright notice
entry: check-linden-copyright
files: \.(?:cpp|c|h|py|glsl)$
language: python
- id: end-of-file
name: Fix end of files
description: Ensure file is empty or ends in newline
entry: check-end-of-file
language: python
types: [text]