-
Notifications
You must be signed in to change notification settings - Fork 21
/
.overcommit.yml
164 lines (161 loc) · 4.8 KB
/
.overcommit.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
---
PreCommit:
ALL:
problem_on_unmodified_line: ignore
on_warn: fail
quiet: true
AuthorEmail:
enabled: true
AuthorName:
enabled: true
BrokenSymlinks:
enabled: true
exclude:
- test/TestVuoUtilities/symlinks-directory/b/*
CaseConflicts:
enabled: true
Codespell:
enabled: true
description: 'Check spelling'
required_executable: codespell
flags:
- --config
- .codespellrc
exclude:
- translation/*_de.ts
- translation/*_es.ts
- translation/*_fr.ts
install_command: 'brew install codespell'
Cppcheck:
enabled: true
description: 'Run cppcheck'
required_executable: base/run-cppcheck
flags:
- '-'
include:
- '**/*.c'
- '**/*.cc'
install_command: 'brew install cppcheck'
EndOfFile:
enabled: true
description: 'Check linebreaks at end of file'
exclude:
- documentation/VuoManual.txt # Intentionally has an extra linebreak to separate the contributors abstract from the list.
ExecutePermissions:
enabled: true
exclude:
- '**/*.php'
- '**/*.pl'
- '**/*.sh'
- base/build-and-analyze
- base/run-cppcheck
- compiler/binary/install_name_tool
- framework/vuo-run
- node/vuo.blackmagic/generateVideoModes
FixMe:
enabled: true
keywords:
- CFShow
- NOCOMMIT
- NSLog
- VL()
- VLog
- VuoHeap_addTrace
- console.log
- qDebug
exclude:
- '**/*.t2d'
ForbiddenBranches:
enabled: true
branch_patterns: ['main']
ImageOptim:
enabled: true
exclude:
- 'test/**/*.jpg'
- 'test/**/*.png'
InvisibleUnicode:
enabled: true
description: 'Check for invisible Unicode characters'
LineEndings:
enabled: true
exclude:
- '**/*.3ds'
- '**/*.afdesign'
- '**/*.ai'
- '**/*.bmp'
- '**/*.gif'
- '**/*.icns'
- '**/*.jpg'
- '**/*.mov'
- '**/*.mp3'
- '**/*.pdf'
- '**/*.png'
- '**/*.pptx'
- '**/*.pxi'
- '**/*.tga'
- '**/*.tiff'
- '**/*.ttf'
- base/miniz.c
- compiler/binary/install_name_tool
- compiler/binary/libunwind.a
- framework/shaders/GPUNoiseLib.glsl
- license/*.txt
- node/vuo.leap/Leap/libLeap.dylib
- node/vuo.syphon/Syphon/Syphon.framework/Syphon
- node/vuo.syphon/Syphon/Syphon.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
- node/vuo.syphon/Syphon/Syphon.framework/Versions/A/Syphon
- node/vuo.video/HapInAVFoundation.framework/HapInAVFoundation
- node/vuo.video/HapInAVFoundation.framework/Versions/A/Frameworks/libsnappy.dylib
- node/vuo.video/HapInAVFoundation.framework/Versions/A/Frameworks/libsquish.dylib
- node/vuo.video/HapInAVFoundation.framework/Versions/A/HapInAVFoundation
- package/vuo.keychain
- renderer/font/*.txt
- test/TestCompositions/composition/*.rss
- test/TestShaderFile/shaders/**/*.fs
- test/TestVuoUtilities/aliases-directory/targetDir alias
- test/TestVuoUtilities/aliases-directory/targetFile alias
- test/TestVuoUtilities/symlinks-directory/b/*
Mdl:
enabled: true
flags: ['--json', '-s.mdlstyle.rb']
include:
- '**/*.md'
- '**/*.txt'
exclude:
- '**/CMakeLists.txt'
MergeConflicts:
enabled: true
MidLineTabs:
enabled: true
description: 'Check for mid-line tabs'
PhpLint:
enabled: true
Pylint:
enabled: true
ShellCheck:
enabled: true
TrailingWhitespace:
enabled: true
XmlLint:
enabled: true
YamlLint:
enabled: true
CommitMsg:
ALL:
on_warn: fail
quiet: true
CapitalizedSubject:
enabled: true
EmptyMessage:
enabled: true
MessageFormat:
enabled: true
pattern: '\A[^\n]*\[#[0-9]+\]'
expected_pattern_message: 'Please include a b33p.net issue number (e.g., "[#42]") in the first line of the commit message.'
sample_message: 'When zoomed to fit, continue to zoom-to-fit when resizing the window. [#16085]'
SingleLineSubject:
enabled: true
TextWidth:
enabled: false
TrailingPeriod:
enabled: false