overcommit 0.30.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/default.yml +123 -93
- data/lib/overcommit/configuration.rb +24 -2
- data/lib/overcommit/configuration_validator.rb +28 -1
- data/lib/overcommit/constants.rb +7 -5
- data/lib/overcommit/exceptions.rb +6 -0
- data/lib/overcommit/git_repo.rb +6 -0
- data/lib/overcommit/hook/base.rb +22 -4
- data/lib/overcommit/hook/commit_msg/capitalized_subject.rb +1 -1
- data/lib/overcommit/hook/commit_msg/message_format.rb +27 -0
- data/lib/overcommit/hook/pre_commit/base.rb +17 -8
- data/lib/overcommit/hook/pre_commit/berksfile_check.rb +3 -1
- data/lib/overcommit/hook/pre_commit/bundle_check.rb +3 -1
- data/lib/overcommit/hook/pre_commit/es_lint.rb +10 -0
- data/lib/overcommit/hook/pre_commit/execute_permissions.rb +10 -0
- data/lib/overcommit/hook/pre_commit/forbidden_branches.rb +24 -0
- data/lib/overcommit/hook/pre_commit/mdl.rb +23 -0
- data/lib/overcommit/hook/pre_commit/rubo_cop.rb +15 -4
- data/lib/overcommit/hook/pre_commit/scss_lint.rb +23 -10
- data/lib/overcommit/hook/pre_push/minitest.rb +4 -0
- data/lib/overcommit/hook/pre_push/protected_branches.rb +13 -6
- data/lib/overcommit/hook_context/base.rb +7 -0
- data/lib/overcommit/hook_context/pre_commit.rb +7 -0
- data/lib/overcommit/hook_context/pre_push.rb +12 -1
- data/lib/overcommit/hook_context/run_all.rb +1 -1
- data/lib/overcommit/hook_runner.rb +90 -41
- data/lib/overcommit/hook_signer.rb +1 -1
- data/lib/overcommit/message_processor.rb +20 -7
- data/lib/overcommit/os.rb +2 -2
- data/lib/overcommit/printer.rb +32 -8
- data/lib/overcommit/utils.rb +36 -0
- data/lib/overcommit/version.rb +3 -1
- data/template-dir/hooks/commit-msg +9 -1
- data/template-dir/hooks/overcommit-hook +9 -1
- data/template-dir/hooks/post-checkout +9 -1
- data/template-dir/hooks/post-commit +9 -1
- data/template-dir/hooks/post-merge +9 -1
- data/template-dir/hooks/post-rewrite +9 -1
- data/template-dir/hooks/pre-commit +9 -1
- data/template-dir/hooks/pre-push +9 -1
- data/template-dir/hooks/pre-rebase +9 -1
- metadata +21 -4
data/config/default.yml
CHANGED
|
@@ -39,6 +39,13 @@ gemfile: false
|
|
|
39
39
|
# to the root of the repository.
|
|
40
40
|
plugin_directory: '.git-hooks'
|
|
41
41
|
|
|
42
|
+
# Number of hooks that can be run concurrently. Typically this won't need to be
|
|
43
|
+
# adjusted, but if you know that some of your hooks themselves use multiple
|
|
44
|
+
# processors you can lower this value accordingly. You can define
|
|
45
|
+
# single-operator mathematical expressions, e.g. '%{processors} * 2', or
|
|
46
|
+
# '%{processors} / 2'.
|
|
47
|
+
concurrency: '%{processors}'
|
|
48
|
+
|
|
42
49
|
# Whether to check if a hook plugin has changed since Overcommit last ran it.
|
|
43
50
|
# This is a defense mechanism when working with repositories which can contain
|
|
44
51
|
# untrusted code (e.g. when you fetch a pull request from a third party).
|
|
@@ -55,46 +62,53 @@ CommitMsg:
|
|
|
55
62
|
|
|
56
63
|
CapitalizedSubject:
|
|
57
64
|
enabled: true
|
|
58
|
-
description: '
|
|
65
|
+
description: 'Check subject capitalization'
|
|
59
66
|
|
|
60
67
|
EmptyMessage:
|
|
61
68
|
enabled: true
|
|
62
|
-
description: '
|
|
69
|
+
description: 'Check for empty commit message'
|
|
63
70
|
quiet: true
|
|
64
71
|
|
|
65
72
|
GerritChangeId:
|
|
66
73
|
enabled: false
|
|
67
|
-
description: '
|
|
74
|
+
description: 'Ensure Gerrit Change-Id is present'
|
|
68
75
|
required: true
|
|
69
76
|
|
|
70
77
|
HardTabs:
|
|
71
78
|
enabled: false
|
|
72
|
-
description: '
|
|
79
|
+
description: 'Check for hard tabs'
|
|
80
|
+
|
|
81
|
+
MessageFormat:
|
|
82
|
+
enabled: false
|
|
83
|
+
description: 'Check commit message matches expected pattern'
|
|
84
|
+
pattern: '(.+)[|](.+)[|](.+)'
|
|
85
|
+
expected_pattern_message: '<Issue Id> | <Commit Message Description> | <Developer(s)>'
|
|
86
|
+
sample_message: 'DEFECT-1234 | Refactored Onboarding flow | John Doe'
|
|
73
87
|
|
|
74
88
|
RussianNovel:
|
|
75
89
|
enabled: false
|
|
76
|
-
description: '
|
|
90
|
+
description: 'Check length of commit message'
|
|
77
91
|
quiet: true
|
|
78
92
|
|
|
79
93
|
SingleLineSubject:
|
|
80
94
|
enabled: true
|
|
81
|
-
description: '
|
|
95
|
+
description: 'Check subject line'
|
|
82
96
|
|
|
83
97
|
SpellCheck:
|
|
84
98
|
enabled: false
|
|
85
|
-
description: '
|
|
99
|
+
description: 'Check for misspelled words'
|
|
86
100
|
required_executable: 'hunspell'
|
|
87
101
|
flags: ['-a']
|
|
88
102
|
|
|
89
103
|
TextWidth:
|
|
90
104
|
enabled: true
|
|
91
|
-
description: '
|
|
105
|
+
description: 'Check text width'
|
|
92
106
|
max_subject_width: 60
|
|
93
107
|
max_body_width: 72
|
|
94
108
|
|
|
95
109
|
TrailingPeriod:
|
|
96
110
|
enabled: true
|
|
97
|
-
description: '
|
|
111
|
+
description: 'Check for trailing periods in subject'
|
|
98
112
|
|
|
99
113
|
# Hooks that are run after `git commit` is executed, before the commit message
|
|
100
114
|
# editor is displayed. These hooks are ideal for syntax checkers, linters, and
|
|
@@ -109,7 +123,7 @@ PreCommit:
|
|
|
109
123
|
|
|
110
124
|
AuthorEmail:
|
|
111
125
|
enabled: true
|
|
112
|
-
description: '
|
|
126
|
+
description: 'Check author email'
|
|
113
127
|
requires_files: false
|
|
114
128
|
required: true
|
|
115
129
|
quiet: true
|
|
@@ -117,14 +131,14 @@ PreCommit:
|
|
|
117
131
|
|
|
118
132
|
AuthorName:
|
|
119
133
|
enabled: true
|
|
120
|
-
description: '
|
|
134
|
+
description: 'Check for author name'
|
|
121
135
|
requires_files: false
|
|
122
136
|
required: true
|
|
123
137
|
quiet: true
|
|
124
138
|
|
|
125
139
|
BerksfileCheck:
|
|
126
140
|
enabled: false
|
|
127
|
-
description: '
|
|
141
|
+
description: 'Check Berksfile lock'
|
|
128
142
|
required_executable: 'berks'
|
|
129
143
|
flags: ['list', '--quiet']
|
|
130
144
|
install_command: 'gem install berks'
|
|
@@ -134,7 +148,7 @@ PreCommit:
|
|
|
134
148
|
|
|
135
149
|
Brakeman:
|
|
136
150
|
enabled: false
|
|
137
|
-
description: '
|
|
151
|
+
description: 'Check for security vulnerabilities'
|
|
138
152
|
required_executable: 'brakeman'
|
|
139
153
|
flags: ['--exit-on-warn', '--quiet', '--summary', '--only-files']
|
|
140
154
|
install_command: 'gem install brakeman'
|
|
@@ -143,12 +157,12 @@ PreCommit:
|
|
|
143
157
|
|
|
144
158
|
BrokenSymlinks:
|
|
145
159
|
enabled: true
|
|
146
|
-
description: '
|
|
160
|
+
description: 'Check for broken symlinks'
|
|
147
161
|
quiet: true
|
|
148
162
|
|
|
149
163
|
BundleCheck:
|
|
150
164
|
enabled: false
|
|
151
|
-
description: '
|
|
165
|
+
description: 'Check Gemfile dependencies'
|
|
152
166
|
required_executable: 'bundle'
|
|
153
167
|
flags: ['check']
|
|
154
168
|
install_command: 'gem install bundler'
|
|
@@ -159,12 +173,12 @@ PreCommit:
|
|
|
159
173
|
|
|
160
174
|
CaseConflicts:
|
|
161
175
|
enabled: true
|
|
162
|
-
description: '
|
|
176
|
+
description: 'Check for case-insensitivity conflicts'
|
|
163
177
|
quiet: true
|
|
164
178
|
|
|
165
179
|
ChamberSecurity:
|
|
166
180
|
enabled: false
|
|
167
|
-
description: '
|
|
181
|
+
description: 'Check that settings have been secured with Chamber'
|
|
168
182
|
required_executable: 'chamber'
|
|
169
183
|
flags: ['secure', '--files']
|
|
170
184
|
install_command: 'gem install chamber'
|
|
@@ -174,7 +188,7 @@ PreCommit:
|
|
|
174
188
|
|
|
175
189
|
CoffeeLint:
|
|
176
190
|
enabled: false
|
|
177
|
-
description: '
|
|
191
|
+
description: 'Analyze with coffeelint'
|
|
178
192
|
required_executable: 'coffeelint'
|
|
179
193
|
flags: ['--reporter=csv']
|
|
180
194
|
install_command: 'npm install -g coffeelint'
|
|
@@ -182,7 +196,7 @@ PreCommit:
|
|
|
182
196
|
|
|
183
197
|
CssLint:
|
|
184
198
|
enabled: false
|
|
185
|
-
description: '
|
|
199
|
+
description: 'Analyze with csslint'
|
|
186
200
|
required_executable: 'csslint'
|
|
187
201
|
flags: ['--quiet', '--format=compact']
|
|
188
202
|
install_command: 'npm install -g csslint'
|
|
@@ -190,7 +204,7 @@ PreCommit:
|
|
|
190
204
|
|
|
191
205
|
Dogma:
|
|
192
206
|
enabled: false
|
|
193
|
-
description: '
|
|
207
|
+
description: 'Analyze with dogma'
|
|
194
208
|
required_executable: 'mix'
|
|
195
209
|
flags: ['dogma']
|
|
196
210
|
include:
|
|
@@ -199,7 +213,7 @@ PreCommit:
|
|
|
199
213
|
|
|
200
214
|
EsLint:
|
|
201
215
|
enabled: false
|
|
202
|
-
description: '
|
|
216
|
+
description: 'Analyze with ESLint'
|
|
203
217
|
required_executable: 'eslint'
|
|
204
218
|
flags: ['--format=compact']
|
|
205
219
|
install_command: 'npm install -g eslint'
|
|
@@ -207,19 +221,25 @@ PreCommit:
|
|
|
207
221
|
|
|
208
222
|
ExecutePermissions:
|
|
209
223
|
enabled: false
|
|
210
|
-
description: '
|
|
224
|
+
description: 'Check for file execute permissions'
|
|
211
225
|
quiet: true
|
|
212
226
|
|
|
227
|
+
ForbiddenBranches:
|
|
228
|
+
enabled: false
|
|
229
|
+
description: 'Check for commit to forbidden branch'
|
|
230
|
+
quiet: true
|
|
231
|
+
branch_patterns: ['master']
|
|
232
|
+
|
|
213
233
|
GoLint:
|
|
214
234
|
enabled: false
|
|
215
|
-
description: '
|
|
235
|
+
description: 'Analyze with golint'
|
|
216
236
|
required_executable: 'golint'
|
|
217
237
|
install_command: 'go get github.com/golang/lint/golint'
|
|
218
238
|
include: '**/*.go'
|
|
219
239
|
|
|
220
240
|
GoVet:
|
|
221
241
|
enabled: false
|
|
222
|
-
description: '
|
|
242
|
+
description: 'Analyze with go vet'
|
|
223
243
|
required_executable: 'go'
|
|
224
244
|
flags: ['tool', 'vet']
|
|
225
245
|
install_command: 'go get golang.org/x/tools/cmd/vet'
|
|
@@ -227,42 +247,42 @@ PreCommit:
|
|
|
227
247
|
|
|
228
248
|
HamlLint:
|
|
229
249
|
enabled: false
|
|
230
|
-
description: '
|
|
250
|
+
description: 'Analyze with haml-lint'
|
|
231
251
|
required_executable: 'haml-lint'
|
|
232
252
|
install_command: 'gem install haml-lint'
|
|
233
253
|
include: '**/*.haml'
|
|
234
254
|
|
|
235
255
|
HardTabs:
|
|
236
256
|
enabled: false
|
|
237
|
-
description: '
|
|
257
|
+
description: 'Check for hard tabs'
|
|
238
258
|
quiet: true
|
|
239
259
|
required_executable: 'grep'
|
|
240
260
|
flags: ['-IHn', "\t"]
|
|
241
261
|
|
|
242
262
|
Hlint:
|
|
243
263
|
enabled: false
|
|
244
|
-
description: '
|
|
264
|
+
description: 'Analyze with hlint'
|
|
245
265
|
required_executable: 'hlint'
|
|
246
266
|
install_command: 'cabal install hlint'
|
|
247
267
|
include: '**/*.hs'
|
|
248
268
|
|
|
249
269
|
HtmlHint:
|
|
250
270
|
enabled: false
|
|
251
|
-
description: '
|
|
271
|
+
description: 'Analyze with HTMLHint'
|
|
252
272
|
required_executable: 'htmlhint'
|
|
253
273
|
install_command: 'npm install -g htmlhint'
|
|
254
274
|
include: '**/*.html'
|
|
255
275
|
|
|
256
276
|
HtmlTidy:
|
|
257
277
|
enabled: false
|
|
258
|
-
description: '
|
|
278
|
+
description: 'Analyze HTML with tidy'
|
|
259
279
|
required_executable: 'tidy'
|
|
260
280
|
flags: ['-errors', '-quiet', '-utf8']
|
|
261
281
|
include: '**/*.html'
|
|
262
282
|
|
|
263
283
|
ImageOptim:
|
|
264
284
|
enabled: false
|
|
265
|
-
description: '
|
|
285
|
+
description: 'Check for optimizable images'
|
|
266
286
|
required_executable: 'image_optim'
|
|
267
287
|
install_command: 'gem install image_optim'
|
|
268
288
|
include:
|
|
@@ -274,14 +294,14 @@ PreCommit:
|
|
|
274
294
|
|
|
275
295
|
JavaCheckstyle:
|
|
276
296
|
enabled: false
|
|
277
|
-
description: '
|
|
297
|
+
description: 'Analyze with checkstyle'
|
|
278
298
|
required_executable: 'checkstyle'
|
|
279
299
|
flags: ['-c', '/sun_checks.xml']
|
|
280
300
|
include: '**/*.java'
|
|
281
301
|
|
|
282
302
|
Jscs:
|
|
283
303
|
enabled: false
|
|
284
|
-
description: '
|
|
304
|
+
description: 'Analyze with JSCS'
|
|
285
305
|
required_executable: 'jscs'
|
|
286
306
|
flags: ['--reporter=inline', '--verbose']
|
|
287
307
|
install_command: 'npm install -g jscs'
|
|
@@ -289,7 +309,7 @@ PreCommit:
|
|
|
289
309
|
|
|
290
310
|
JsHint:
|
|
291
311
|
enabled: false
|
|
292
|
-
description: '
|
|
312
|
+
description: 'Analyze with JSHint'
|
|
293
313
|
required_executable: 'jshint'
|
|
294
314
|
flags: ['--verbose']
|
|
295
315
|
install_command: 'npm install -g jshint'
|
|
@@ -297,7 +317,7 @@ PreCommit:
|
|
|
297
317
|
|
|
298
318
|
JsLint:
|
|
299
319
|
enabled: false
|
|
300
|
-
description: '
|
|
320
|
+
description: 'Analyze with JSLint'
|
|
301
321
|
required_executable: 'jslint'
|
|
302
322
|
flags: ['--terse']
|
|
303
323
|
install_command: 'npm install -g jslint'
|
|
@@ -305,56 +325,63 @@ PreCommit:
|
|
|
305
325
|
|
|
306
326
|
Jsl:
|
|
307
327
|
enabled: false
|
|
308
|
-
description: '
|
|
328
|
+
description: 'Analyze with JSL'
|
|
309
329
|
required_executable: 'jsl'
|
|
310
330
|
flags: ['-nologo', '-nofilelisting', '-nocontext', '-nosummary']
|
|
311
331
|
include: '**/*.js'
|
|
312
332
|
|
|
313
333
|
JsonSyntax:
|
|
314
334
|
enabled: false
|
|
315
|
-
description: '
|
|
335
|
+
description: 'Validate JSON syntax'
|
|
316
336
|
required_library: 'json'
|
|
317
337
|
install_command: 'gem install json'
|
|
318
338
|
include: '**/*.json'
|
|
319
339
|
|
|
320
340
|
LocalPathsInGemfile:
|
|
321
341
|
enabled: false
|
|
322
|
-
description: '
|
|
342
|
+
description: 'Check for local paths in Gemfile'
|
|
323
343
|
required_executable: 'grep'
|
|
324
344
|
flags: ['-IHnE', "^[^#]*((\\bpath:)|(:path[ \t]*=>))"]
|
|
325
345
|
include: '**/Gemfile'
|
|
326
346
|
|
|
347
|
+
Mdl:
|
|
348
|
+
enabled: false
|
|
349
|
+
description: 'Analyze with mdl'
|
|
350
|
+
required_executable: 'mdl'
|
|
351
|
+
install_command: 'gem install mdl'
|
|
352
|
+
include: '**/*.md'
|
|
353
|
+
|
|
327
354
|
MergeConflicts:
|
|
328
355
|
enabled: true
|
|
329
|
-
description: '
|
|
356
|
+
description: 'Check for merge conflicts'
|
|
330
357
|
quiet: true
|
|
331
358
|
required_executable: 'grep'
|
|
332
359
|
flags: ['-IHn', "^<<<<<<<[ \t]"]
|
|
333
360
|
|
|
334
361
|
NginxTest:
|
|
335
362
|
enabled: false
|
|
336
|
-
description: '
|
|
363
|
+
description: 'Test nginx configs'
|
|
337
364
|
required_executable: 'nginx'
|
|
338
365
|
flags: ['-t']
|
|
339
366
|
include: '**/nginx.conf'
|
|
340
367
|
|
|
341
368
|
Pep257:
|
|
342
369
|
enabled: false
|
|
343
|
-
description: '
|
|
370
|
+
description: 'Analyze docstrings with pep257'
|
|
344
371
|
required_executable: 'pep257'
|
|
345
372
|
install_command: 'pip install pep257'
|
|
346
373
|
include: '**/*.py'
|
|
347
374
|
|
|
348
375
|
Pep8:
|
|
349
376
|
enabled: false
|
|
350
|
-
description: '
|
|
377
|
+
description: 'Analyze with pep8'
|
|
351
378
|
required_executable: 'pep8'
|
|
352
379
|
install_command: 'pip install pep8'
|
|
353
380
|
include: '**/*.py'
|
|
354
381
|
|
|
355
382
|
PuppetLint:
|
|
356
383
|
enabled: false
|
|
357
|
-
description: '
|
|
384
|
+
description: 'Analyze with puppet-lint'
|
|
358
385
|
required_executable: 'puppet-lint'
|
|
359
386
|
install_command: 'gem install puppet-lint'
|
|
360
387
|
flags:
|
|
@@ -365,14 +392,14 @@ PreCommit:
|
|
|
365
392
|
|
|
366
393
|
Pyflakes:
|
|
367
394
|
enabled: false
|
|
368
|
-
description: '
|
|
395
|
+
description: 'Analyze with pyflakes'
|
|
369
396
|
required_executable: 'pyflakes'
|
|
370
397
|
install_command: 'pip install pyflakes'
|
|
371
398
|
include: '**/*.py'
|
|
372
399
|
|
|
373
400
|
Pylint:
|
|
374
401
|
enabled: false
|
|
375
|
-
description: '
|
|
402
|
+
description: 'Analyze with Pylint'
|
|
376
403
|
required_executable: 'pylint'
|
|
377
404
|
install_command: 'pip install pylint'
|
|
378
405
|
flags:
|
|
@@ -383,20 +410,21 @@ PreCommit:
|
|
|
383
410
|
|
|
384
411
|
PythonFlake8:
|
|
385
412
|
enabled: false
|
|
386
|
-
description: '
|
|
413
|
+
description: 'Analyze with flake8'
|
|
387
414
|
required_executable: 'flake8'
|
|
388
415
|
install_command: 'pip install flake8'
|
|
389
416
|
include: '**/*.py'
|
|
390
417
|
|
|
391
418
|
RailsBestPractices:
|
|
392
419
|
enabled: false
|
|
393
|
-
description: '
|
|
420
|
+
description: 'Analyze with RailsBestPractices'
|
|
394
421
|
required_executable: 'rails_best_practices'
|
|
422
|
+
flags: ['--without-color']
|
|
395
423
|
install_command: 'gem install rails_best_practices'
|
|
396
424
|
|
|
397
425
|
RailsSchemaUpToDate:
|
|
398
426
|
enabled: false
|
|
399
|
-
description: '
|
|
427
|
+
description: 'Check if database schema is up to date'
|
|
400
428
|
include:
|
|
401
429
|
- 'db/migrate/*.rb'
|
|
402
430
|
- 'db/schema.rb'
|
|
@@ -404,7 +432,7 @@ PreCommit:
|
|
|
404
432
|
|
|
405
433
|
Reek:
|
|
406
434
|
enabled: false
|
|
407
|
-
description: '
|
|
435
|
+
description: 'Analyze with Reek'
|
|
408
436
|
required_executable: 'reek'
|
|
409
437
|
flags: ['--single-line', '--no-color']
|
|
410
438
|
install_command: 'gem install reek'
|
|
@@ -417,7 +445,7 @@ PreCommit:
|
|
|
417
445
|
|
|
418
446
|
RuboCop:
|
|
419
447
|
enabled: false
|
|
420
|
-
description: '
|
|
448
|
+
description: 'Analyze with RuboCop'
|
|
421
449
|
required_executable: 'rubocop'
|
|
422
450
|
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
|
|
423
451
|
install_command: 'gem install rubocop'
|
|
@@ -430,7 +458,7 @@ PreCommit:
|
|
|
430
458
|
|
|
431
459
|
RubyLint:
|
|
432
460
|
enabled: false
|
|
433
|
-
description: '
|
|
461
|
+
description: 'Analyze with ruby-lint'
|
|
434
462
|
required_executable: 'ruby-lint'
|
|
435
463
|
flags: ['--presenter=syntastic', '--levels=error,warning']
|
|
436
464
|
install_command: 'gem install ruby-lint'
|
|
@@ -440,27 +468,29 @@ PreCommit:
|
|
|
440
468
|
|
|
441
469
|
Scalariform:
|
|
442
470
|
enabled: false
|
|
443
|
-
description: '
|
|
471
|
+
description: 'Check formatting with Scalariform'
|
|
444
472
|
required_executable: 'scalariform'
|
|
445
473
|
flags: ['--test']
|
|
446
474
|
include: '**/*.scala'
|
|
447
475
|
|
|
448
476
|
Scalastyle:
|
|
449
477
|
enabled: false
|
|
450
|
-
description: '
|
|
478
|
+
description: 'Analyze with Scalastyle'
|
|
451
479
|
required_executable: 'scalastyle'
|
|
452
480
|
include: '**/*.scala'
|
|
453
481
|
|
|
454
482
|
ScssLint:
|
|
455
483
|
enabled: false
|
|
456
|
-
description: '
|
|
484
|
+
description: 'Analyze with scss-lint'
|
|
485
|
+
required_library: 'json'
|
|
457
486
|
required_executable: 'scss-lint'
|
|
487
|
+
flags: ['--format', 'JSON']
|
|
458
488
|
install_command: 'gem install scss-lint'
|
|
459
489
|
include: '**/*.scss'
|
|
460
490
|
|
|
461
491
|
SemiStandard:
|
|
462
492
|
enabled: false
|
|
463
|
-
description: '
|
|
493
|
+
description: 'Analyze with semistandard'
|
|
464
494
|
required_executable: 'semistandard'
|
|
465
495
|
flags: ['--verbose']
|
|
466
496
|
install_command: 'npm install -g semistandard'
|
|
@@ -468,28 +498,28 @@ PreCommit:
|
|
|
468
498
|
|
|
469
499
|
ShellCheck:
|
|
470
500
|
enabled: false
|
|
471
|
-
description: '
|
|
501
|
+
description: 'Analyze with ShellCheck'
|
|
472
502
|
required_executable: 'shellcheck'
|
|
473
503
|
flags: ['--format=gcc']
|
|
474
504
|
include: '**/*.sh'
|
|
475
505
|
|
|
476
506
|
SlimLint:
|
|
477
507
|
enabled: false
|
|
478
|
-
description: '
|
|
508
|
+
description: 'Analyze with slim-lint'
|
|
479
509
|
required_executable: 'slim-lint'
|
|
480
510
|
install_command: 'gem install slim_lint'
|
|
481
511
|
include: '**/*.slim'
|
|
482
512
|
|
|
483
513
|
Sqlint:
|
|
484
514
|
enabled: false
|
|
485
|
-
description: '
|
|
515
|
+
description: 'Analyze with sqlint'
|
|
486
516
|
required_executable: 'sqlint'
|
|
487
517
|
install_command: 'gem install sqlint'
|
|
488
518
|
include: '**/*.sql'
|
|
489
519
|
|
|
490
520
|
Standard:
|
|
491
521
|
enabled: false
|
|
492
|
-
description: '
|
|
522
|
+
description: 'Analyze with standard'
|
|
493
523
|
required_executable: 'standard'
|
|
494
524
|
flags: ['--verbose']
|
|
495
525
|
install_command: 'npm install -g standard'
|
|
@@ -497,13 +527,13 @@ PreCommit:
|
|
|
497
527
|
|
|
498
528
|
TrailingWhitespace:
|
|
499
529
|
enabled: false
|
|
500
|
-
description: '
|
|
530
|
+
description: 'Check for trailing whitespace'
|
|
501
531
|
required_executable: 'grep'
|
|
502
532
|
flags: ['-IHn', "[ \t]$"]
|
|
503
533
|
|
|
504
534
|
TravisLint:
|
|
505
535
|
enabled: false
|
|
506
|
-
description: '
|
|
536
|
+
description: 'Check Travis CI configuration'
|
|
507
537
|
required_executable: 'travis'
|
|
508
538
|
flags: ['lint']
|
|
509
539
|
install_command: 'gem install travis'
|
|
@@ -511,7 +541,7 @@ PreCommit:
|
|
|
511
541
|
|
|
512
542
|
Vint:
|
|
513
543
|
enabled: false
|
|
514
|
-
description: '
|
|
544
|
+
description: 'Analyze with Vint'
|
|
515
545
|
required_executable: 'vint'
|
|
516
546
|
install_command: 'pip install vim-vint'
|
|
517
547
|
include:
|
|
@@ -520,7 +550,7 @@ PreCommit:
|
|
|
520
550
|
|
|
521
551
|
W3cCss:
|
|
522
552
|
enabled: false
|
|
523
|
-
description: '
|
|
553
|
+
description: 'Analyze with W3C CSS validation service'
|
|
524
554
|
required_library: 'w3c_validators'
|
|
525
555
|
install_command: 'gem install w3c_validators'
|
|
526
556
|
validator_uri: 'http://jigsaw.w3.org/css-validator/validator'
|
|
@@ -532,7 +562,7 @@ PreCommit:
|
|
|
532
562
|
|
|
533
563
|
W3cHtml:
|
|
534
564
|
enabled: false
|
|
535
|
-
description: '
|
|
565
|
+
description: 'Analyze with W3C HTML validation service'
|
|
536
566
|
required_library: 'w3c_validators'
|
|
537
567
|
install_command: 'gem install w3c_validators'
|
|
538
568
|
validator_uri: 'http://validator.w3.org/check'
|
|
@@ -543,7 +573,7 @@ PreCommit:
|
|
|
543
573
|
|
|
544
574
|
XmlLint:
|
|
545
575
|
enabled: false
|
|
546
|
-
description: '
|
|
576
|
+
description: 'Analyze with xmllint'
|
|
547
577
|
required_executable: 'xmllint'
|
|
548
578
|
flags: ['--noout']
|
|
549
579
|
include:
|
|
@@ -552,7 +582,7 @@ PreCommit:
|
|
|
552
582
|
|
|
553
583
|
XmlSyntax:
|
|
554
584
|
enabled: false
|
|
555
|
-
description: '
|
|
585
|
+
description: 'Check XML syntax'
|
|
556
586
|
required_library: 'rexml/document'
|
|
557
587
|
include:
|
|
558
588
|
- '**/*.xml'
|
|
@@ -560,7 +590,7 @@ PreCommit:
|
|
|
560
590
|
|
|
561
591
|
YamlSyntax:
|
|
562
592
|
enabled: false
|
|
563
|
-
description: '
|
|
593
|
+
description: 'Check YAML syntax'
|
|
564
594
|
required_library: 'yaml'
|
|
565
595
|
include:
|
|
566
596
|
- '**/*.yaml'
|
|
@@ -574,7 +604,7 @@ PostCheckout:
|
|
|
574
604
|
|
|
575
605
|
BowerInstall:
|
|
576
606
|
enabled: false
|
|
577
|
-
description: '
|
|
607
|
+
description: 'Install bower dependencies'
|
|
578
608
|
requires_files: true
|
|
579
609
|
required_executable: 'bower'
|
|
580
610
|
install_command: 'npm install -g bower'
|
|
@@ -583,7 +613,7 @@ PostCheckout:
|
|
|
583
613
|
|
|
584
614
|
BundleInstall:
|
|
585
615
|
enabled: false
|
|
586
|
-
description: '
|
|
616
|
+
description: 'Install Bundler dependencies'
|
|
587
617
|
requires_files: true
|
|
588
618
|
required_executable: 'bundle'
|
|
589
619
|
install_command: 'gem install bundler'
|
|
@@ -595,13 +625,13 @@ PostCheckout:
|
|
|
595
625
|
|
|
596
626
|
IndexTags:
|
|
597
627
|
enabled: false
|
|
598
|
-
description: '
|
|
628
|
+
description: 'Generate tags file from source'
|
|
599
629
|
quiet: true
|
|
600
630
|
required_executable: 'ctags'
|
|
601
631
|
|
|
602
632
|
NpmInstall:
|
|
603
633
|
enabled: false
|
|
604
|
-
description: '
|
|
634
|
+
description: 'Install NPM dependencies'
|
|
605
635
|
requires_files: true
|
|
606
636
|
required_executable: 'npm'
|
|
607
637
|
flags: ['install']
|
|
@@ -611,7 +641,7 @@ PostCheckout:
|
|
|
611
641
|
|
|
612
642
|
SubmoduleStatus:
|
|
613
643
|
enabled: false
|
|
614
|
-
description: '
|
|
644
|
+
description: 'Check submodule status'
|
|
615
645
|
quiet: true
|
|
616
646
|
recursive: false
|
|
617
647
|
|
|
@@ -624,7 +654,7 @@ PostCommit:
|
|
|
624
654
|
|
|
625
655
|
BowerInstall:
|
|
626
656
|
enabled: false
|
|
627
|
-
description: '
|
|
657
|
+
description: 'Install bower dependencies'
|
|
628
658
|
requires_files: true
|
|
629
659
|
required_executable: 'bower'
|
|
630
660
|
install_command: 'npm install -g bower'
|
|
@@ -633,7 +663,7 @@ PostCommit:
|
|
|
633
663
|
|
|
634
664
|
BundleInstall:
|
|
635
665
|
enabled: false
|
|
636
|
-
description: '
|
|
666
|
+
description: 'Install Bundler dependencies'
|
|
637
667
|
requires_files: true
|
|
638
668
|
required_executable: 'bundle'
|
|
639
669
|
install_command: 'gem install bundler'
|
|
@@ -645,7 +675,7 @@ PostCommit:
|
|
|
645
675
|
|
|
646
676
|
GitGuilt:
|
|
647
677
|
enabled: false
|
|
648
|
-
description: '
|
|
678
|
+
description: 'Calculate changes in blame since last commit'
|
|
649
679
|
requires_files: true
|
|
650
680
|
required_executable: 'git-guilt'
|
|
651
681
|
flags: ['HEAD~', 'HEAD']
|
|
@@ -653,13 +683,13 @@ PostCommit:
|
|
|
653
683
|
|
|
654
684
|
IndexTags:
|
|
655
685
|
enabled: false
|
|
656
|
-
description: '
|
|
686
|
+
description: 'Generate tags file from source'
|
|
657
687
|
quiet: true
|
|
658
688
|
required_executable: 'ctags'
|
|
659
689
|
|
|
660
690
|
NpmInstall:
|
|
661
691
|
enabled: false
|
|
662
|
-
description: '
|
|
692
|
+
description: 'Install NPM dependencies'
|
|
663
693
|
requires_files: true
|
|
664
694
|
required_executable: 'npm'
|
|
665
695
|
flags: ['install']
|
|
@@ -669,7 +699,7 @@ PostCommit:
|
|
|
669
699
|
|
|
670
700
|
SubmoduleStatus:
|
|
671
701
|
enabled: false
|
|
672
|
-
description: '
|
|
702
|
+
description: 'Check submodule status'
|
|
673
703
|
quiet: true
|
|
674
704
|
recursive: false
|
|
675
705
|
|
|
@@ -681,7 +711,7 @@ PostMerge:
|
|
|
681
711
|
|
|
682
712
|
BowerInstall:
|
|
683
713
|
enabled: false
|
|
684
|
-
description: '
|
|
714
|
+
description: 'Install bower dependencies'
|
|
685
715
|
requires_files: true
|
|
686
716
|
required_executable: 'bower'
|
|
687
717
|
install_command: 'npm install -g bower'
|
|
@@ -690,7 +720,7 @@ PostMerge:
|
|
|
690
720
|
|
|
691
721
|
BundleInstall:
|
|
692
722
|
enabled: false
|
|
693
|
-
description: '
|
|
723
|
+
description: 'Install Bundler dependencies'
|
|
694
724
|
requires_files: true
|
|
695
725
|
required_executable: 'bundle'
|
|
696
726
|
install_command: 'gem install bundler'
|
|
@@ -702,13 +732,13 @@ PostMerge:
|
|
|
702
732
|
|
|
703
733
|
IndexTags:
|
|
704
734
|
enabled: false
|
|
705
|
-
description: '
|
|
735
|
+
description: 'Generate tags file from source'
|
|
706
736
|
quiet: true
|
|
707
737
|
required_executable: 'ctags'
|
|
708
738
|
|
|
709
739
|
NpmInstall:
|
|
710
740
|
enabled: false
|
|
711
|
-
description: '
|
|
741
|
+
description: 'Install NPM dependencies'
|
|
712
742
|
requires_files: true
|
|
713
743
|
required_executable: 'npm'
|
|
714
744
|
flags: ['install']
|
|
@@ -718,7 +748,7 @@ PostMerge:
|
|
|
718
748
|
|
|
719
749
|
SubmoduleStatus:
|
|
720
750
|
enabled: false
|
|
721
|
-
description: '
|
|
751
|
+
description: 'Check submodule status'
|
|
722
752
|
quiet: true
|
|
723
753
|
recursive: false
|
|
724
754
|
|
|
@@ -730,7 +760,7 @@ PostRewrite:
|
|
|
730
760
|
|
|
731
761
|
BowerInstall:
|
|
732
762
|
enabled: false
|
|
733
|
-
description: '
|
|
763
|
+
description: 'Install bower dependencies'
|
|
734
764
|
requires_files: true
|
|
735
765
|
required_executable: 'bower'
|
|
736
766
|
install_command: 'npm install -g bower'
|
|
@@ -739,7 +769,7 @@ PostRewrite:
|
|
|
739
769
|
|
|
740
770
|
BundleInstall:
|
|
741
771
|
enabled: false
|
|
742
|
-
description: '
|
|
772
|
+
description: 'Install Bundler dependencies'
|
|
743
773
|
requires_files: true
|
|
744
774
|
required_executable: 'bundle'
|
|
745
775
|
install_command: 'gem install bundler'
|
|
@@ -751,13 +781,13 @@ PostRewrite:
|
|
|
751
781
|
|
|
752
782
|
IndexTags:
|
|
753
783
|
enabled: false
|
|
754
|
-
description: '
|
|
784
|
+
description: 'Generate tags file from source'
|
|
755
785
|
quiet: true
|
|
756
786
|
required_executable: 'ctags'
|
|
757
787
|
|
|
758
788
|
NpmInstall:
|
|
759
789
|
enabled: false
|
|
760
|
-
description: '
|
|
790
|
+
description: 'Install NPM dependencies'
|
|
761
791
|
requires_files: true
|
|
762
792
|
required_executable: 'npm'
|
|
763
793
|
flags: ['install']
|
|
@@ -767,7 +797,7 @@ PostRewrite:
|
|
|
767
797
|
|
|
768
798
|
SubmoduleStatus:
|
|
769
799
|
enabled: false
|
|
770
|
-
description: '
|
|
800
|
+
description: 'Check submodule status'
|
|
771
801
|
quiet: true
|
|
772
802
|
recursive: false
|
|
773
803
|
|
|
@@ -781,19 +811,19 @@ PrePush:
|
|
|
781
811
|
|
|
782
812
|
ProtectedBranches:
|
|
783
813
|
enabled: false
|
|
784
|
-
description: '
|
|
814
|
+
description: 'Check for illegal pushes to protected branches'
|
|
785
815
|
branches: ['master']
|
|
786
816
|
|
|
787
817
|
RSpec:
|
|
788
818
|
enabled: false
|
|
789
|
-
description: '
|
|
819
|
+
description: 'Run RSpec test suite'
|
|
790
820
|
required_executable: 'rspec'
|
|
791
821
|
|
|
792
822
|
Minitest:
|
|
793
823
|
enabled: false
|
|
794
|
-
description: '
|
|
795
|
-
command: ['ruby', '-Ilib:test', '
|
|
796
|
-
|
|
824
|
+
description: 'Run Minitest test suite'
|
|
825
|
+
command: ['ruby', '-Ilib:test', '-rminitest', "-e 'exit! Minitest.run'"]
|
|
826
|
+
include: 'test/**/*_test.rb'
|
|
797
827
|
|
|
798
828
|
# Hooks that run during `git rebase`, before any commits are rebased.
|
|
799
829
|
# If a hook fails, the rebase is aborted.
|
|
@@ -805,5 +835,5 @@ PreRebase:
|
|
|
805
835
|
|
|
806
836
|
MergedCommits:
|
|
807
837
|
enabled: false
|
|
808
|
-
description: '
|
|
838
|
+
description: 'Check for commits that have already been merged'
|
|
809
839
|
branches: ['master']
|