forked from pre-commit/pre-commit.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhooks.html
More file actions
2336 lines (2326 loc) · 76 KB
/
Copy pathhooks.html
File metadata and controls
2336 lines (2326 loc) · 76 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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="build/main.css">
<link rel="icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pre-commit</title>
</head>
<body class="page-hooks" data-spy="scroll" data-target=".pc-sidebar">
<header class="navbar navbar-default pc-nav" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".pc-navbar-collapse">
<span class="sr-only">Toggle navigtaion</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand pc-navbar-brand">
<i class="logo"></i>
</a>
</div>
<nav class="navbar-collapse pc-navbar pc-navbar-collapse collapse" role="navigation">
<ul class="nav navbar-nav">
<li><a href="/">Documentation</a></li>
<li><a href="hooks.html">Supported hooks</a></li>
<li><a href="https://github.com/pre-commit/demo-repo#readme">Demo</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/pre-commit/pre-commit" class="btn btn-default">Download on GitHub</a></li>
</ul>
</nav>
</div>
</header>
<div class="top-shelf">
<div class="container">
<img class="pc-logo-top-shelf hidden-xs hidden-sm" src="logo-top-shelf.png">
<h1>
<a href="https://github.com/pre-commit/pre-commit">
pre-commit
</a>
</h1>
<p>A framework for managing and maintaining multi-language <span class="nowrap">pre-commit</span> hooks.</p>
<p><a href="https://dev.azure.com/asottile/asottile/_build/latest?definitionId=21&branchName=master"><img src="https://dev.azure.com/asottile/asottile/_apis/build/status/pre-commit.pre-commit?branchName=master" alt="Build Status" style="max-width:100%;"></a>
<a href="https://dev.azure.com/asottile/asottile/_build/latest?definitionId=21&branchName=master"><img src="https://img.shields.io/azure-devops/coverage/asottile/asottile/21/master.svg" alt="Azure DevOps Coverage" style="max-width:100%;"></a>
<a href="https://github.com/pre-commit/pre-commit"><img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" alt="pre-commit" style="max-width:100%;"></a></p>
<p><iframe src="https://ghbtns.com/github-btn.html?user=pre-commit&repo=pre-commit&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="104px" height="20"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://pre-commit.com" data-text="pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p>
</div>
</div>
<div class="container pc-main-content">
<div class="page-header"><h1>Supported hooks</h1></div>
<p>
To add to this list, fork <a href="https://github.com/pre-commit/pre-commit.github.io">this repository</a>.
</p>
<p>
Also available in <a href="/all-hooks.json">json</a>.
</p>
<h3>
<a href="https://github.com/pre-commit/pre-commit-hooks" target="_blank">
github.com/pre-commit/pre-commit-hooks
</a>
</h3>
<ul>
<li>
<code>autopep8-wrapper</code>
- This is deprecated, use pre-commit/mirrors-autopep8 instead.
</li>
<li>
<code>check-added-large-files</code>
- Prevent giant files from being committed
</li>
<li>
<code>check-ast</code>
- Simply check whether the files parse as valid python.
</li>
<li>
<code>check-byte-order-marker</code>
- Forbid files which have a UTF-8 byte-order marker
</li>
<li>
<code>check-builtin-literals</code>
- Require literal syntax when initializing empty or zero Python builtin types.
</li>
<li>
<code>check-case-conflict</code>
- Check for files that would conflict in case-insensitive filesystems
</li>
<li>
<code>check-docstring-first</code>
- Checks a common error of defining a docstring after code.
</li>
<li>
<code>check-executables-have-shebangs</code>
- Ensures that (non-binary) executables have a shebang.
</li>
<li>
<code>check-json</code>
- This hook checks json files for parseable syntax.
</li>
<li>
<code>pretty-format-json</code>
- This hook sets a standard for formatting JSON files.
</li>
<li>
<code>check-merge-conflict</code>
- Check for files that contain merge conflict strings.
</li>
<li>
<code>check-symlinks</code>
- Checks for symlinks which do not point to anything.
</li>
<li>
<code>check-toml</code>
- This hook checks toml files for parseable syntax.
</li>
<li>
<code>check-vcs-permalinks</code>
- Ensures that links to vcs websites are permalinks.
</li>
<li>
<code>check-xml</code>
- This hook checks xml files for parseable syntax.
</li>
<li>
<code>check-yaml</code>
- This hook checks yaml files for parseable syntax.
</li>
<li>
<code>debug-statements</code>
- Check for debugger imports and py37+ `breakpoint()` calls in python source.
</li>
<li>
<code>detect-aws-credentials</code>
- Detects *your* aws credentials from the aws cli credentials file
</li>
<li>
<code>detect-private-key</code>
- Detects the presence of private keys
</li>
<li>
<code>double-quote-string-fixer</code>
- This hook replaces double quoted strings with single quoted strings
</li>
<li>
<code>end-of-file-fixer</code>
- Ensures that a file is either empty, or ends with one newline.
</li>
<li>
<code>file-contents-sorter</code>
- Sort the lines in specified files (defaults to alphabetical). You must provide list of target files as input in your .pre-commit-config.yaml file.
</li>
<li>
<code>fix-encoding-pragma</code>
- Add # -*- coding: utf-8 -*- to the top of python files
</li>
<li>
<code>flake8</code>
- This hook runs flake8. (deprecated, use gitlab.com/pycqa/flake8)
</li>
<li>
<code>forbid-new-submodules</code>
- Prevent addition of new git submodules
</li>
<li>
<code>mixed-line-ending</code>
- Replaces or checks mixed line ending
</li>
<li>
<code>name-tests-test</code>
- This verifies that test files are named correctly
</li>
<li>
<code>no-commit-to-branch</code>
- Don't commit to branch
</li>
<li>
<code>pyflakes</code>
- This hook runs pyflakes. (This is deprecated, use flake8).
</li>
<li>
<code>requirements-txt-fixer</code>
- Sorts entries in requirements.txt
</li>
<li>
<code>sort-simple-yaml</code>
- Sorts simple YAML files which consist only of top-level keys, preserving comments and blocks.
</li>
<li>
<code>trailing-whitespace</code>
- This hook trims trailing whitespace.
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-autopep8" target="_blank">
github.com/pre-commit/mirrors-autopep8
</a>
</h3>
<ul>
<li>
<code>autopep8</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-coffeelint" target="_blank">
github.com/pre-commit/mirrors-coffeelint
</a>
</h3>
<ul>
<li>
<code>coffeelint</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-csslint" target="_blank">
github.com/pre-commit/mirrors-csslint
</a>
</h3>
<ul>
<li>
<code>csslint</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-eslint" target="_blank">
github.com/pre-commit/mirrors-eslint
</a>
</h3>
<ul>
<li>
<code>eslint</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-fixmyjs" target="_blank">
github.com/pre-commit/mirrors-fixmyjs
</a>
</h3>
<ul>
<li>
<code>fixmyjs</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-isort" target="_blank">
github.com/pre-commit/mirrors-isort
</a>
</h3>
<ul>
<li>
<code>isort</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-jshint" target="_blank">
github.com/pre-commit/mirrors-jshint
</a>
</h3>
<ul>
<li>
<code>jshint</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-mypy" target="_blank">
github.com/pre-commit/mirrors-mypy
</a>
</h3>
<ul>
<li>
<code>mypy</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-puppet-lint" target="_blank">
github.com/pre-commit/mirrors-puppet-lint
</a>
</h3>
<ul>
<li>
<code>puppet-lint</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-ruby-lint" target="_blank">
github.com/pre-commit/mirrors-ruby-lint
</a>
</h3>
<ul>
<li>
<code>ruby-lint</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-scss-lint" target="_blank">
github.com/pre-commit/mirrors-scss-lint
</a>
</h3>
<ul>
<li>
<code>scss-lint</code>
- scss_lint
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/mirrors-yapf" target="_blank">
github.com/pre-commit/mirrors-yapf
</a>
</h3>
<ul>
<li>
<code>yapf</code>
</li>
</ul>
<h3>
<a href="https://github.com/pre-commit/pygrep-hooks" target="_blank">
github.com/pre-commit/pygrep-hooks
</a>
</h3>
<ul>
<li>
<code>python-check-blanket-noqa</code>
- Enforce that `noqa` annotations always occur with specific codes
</li>
<li>
<code>python-check-mock-methods</code>
- Prevent common mistakes of `assert mck.not_called()`, `assert mck.called_once_with(...)` and `mck.assert_called`.
</li>
<li>
<code>python-no-eval</code>
- A quick check for the `eval()` built-in function
</li>
<li>
<code>python-no-log-warn</code>
- A quick check for the deprecated `.warn()` method of python loggers
</li>
<li>
<code>python-use-type-annotations</code>
- Enforce that python3.6+ type annotations are used instead of type comments
</li>
<li>
<code>rst-backticks</code>
- Detect common mistake of using single backticks when writing rst
</li>
<li>
<code>text-unicode-replacement-char</code>
- Forbid files which have a UTF-8 Unicode replacement character
</li>
</ul>
<h3>
<a href="https://github.com/FalconSocial/pre-commit-mirrors-pep257" target="_blank">
github.com/FalconSocial/pre-commit-mirrors-pep257
</a>
</h3>
<ul>
<li>
<code>pep257</code>
</li>
</ul>
<h3>
<a href="https://github.com/FalconSocial/pre-commit-python-sorter" target="_blank">
github.com/FalconSocial/pre-commit-python-sorter
</a>
</h3>
<ul>
<li>
<code>python-import-sorter</code>
- This hook sorts python imports.
</li>
</ul>
<h3>
<a href="https://github.com/guykisel/pre-commit-robotframework-tidy" target="_blank">
github.com/guykisel/pre-commit-robotframework-tidy
</a>
</h3>
<ul>
<li>
<code>robotframework-tidy-wrapper</code>
- Runs Robot Framework's tidy tool.
</li>
</ul>
<h3>
<a href="https://github.com/guykisel/prospector-mirror" target="_blank">
github.com/guykisel/prospector-mirror
</a>
</h3>
<ul>
<li>
<code>prospector</code>
- This hook runs Prospector: https://github.com/landscapeio/prospector
</li>
</ul>
<h3>
<a href="https://github.com/asottile/add-trailing-comma" target="_blank">
github.com/asottile/add-trailing-comma
</a>
</h3>
<ul>
<li>
<code>add-trailing-comma</code>
- Automatically add trailing commas to calls and literals.
</li>
</ul>
<h3>
<a href="https://github.com/asottile/pyupgrade" target="_blank">
github.com/asottile/pyupgrade
</a>
</h3>
<ul>
<li>
<code>pyupgrade</code>
- Automatically upgrade syntax for newer versions.
</li>
</ul>
<h3>
<a href="https://github.com/asottile/reorder_python_imports" target="_blank">
github.com/asottile/reorder_python_imports
</a>
</h3>
<ul>
<li>
<code>reorder-python-imports</code>
- This hook reorders imports in python files.
</li>
</ul>
<h3>
<a href="https://github.com/asottile/yesqa" target="_blank">
github.com/asottile/yesqa
</a>
</h3>
<ul>
<li>
<code>yesqa</code>
- Automatically remove unnecessary `# noqa` comments
</li>
</ul>
<h3>
<a href="https://github.com/asottile/seed-isort-config" target="_blank">
github.com/asottile/seed-isort-config
</a>
</h3>
<ul>
<li>
<code>seed-isort-config</code>
- Statically populate the `known_third_party` `isort` setting.
</li>
</ul>
<h3>
<a href="https://github.com/asottile/blacken-docs" target="_blank">
github.com/asottile/blacken-docs
</a>
</h3>
<ul>
<li>
<code>blacken-docs</code>
- Run `black` on python code blocks in documentation files
</li>
</ul>
<h3>
<a href="https://github.com/asottile/dead" target="_blank">
github.com/asottile/dead
</a>
</h3>
<ul>
<li>
<code>dead</code>
- dead simple python dead code detection
</li>
</ul>
<h3>
<a href="https://github.com/asottile/setup-cfg-fmt" target="_blank">
github.com/asottile/setup-cfg-fmt
</a>
</h3>
<ul>
<li>
<code>setup-cfg-fmt</code>
- apply a consistent format to `setup.cfg` files
</li>
</ul>
<h3>
<a href="https://github.com/asottile/cheetah_lint" target="_blank">
github.com/asottile/cheetah_lint
</a>
</h3>
<ul>
<li>
<code>cheetah-reorder-imports</code>
- This hook reorders imports in cheetah files.
</li>
<li>
<code>cheetah-flake</code>
- Lint cheetah code using flake8 and some other checks.
</li>
</ul>
<h3>
<a href="https://github.com/digitalpulp/pre-commit-php" target="_blank">
github.com/digitalpulp/pre-commit-php
</a>
</h3>
<ul>
<li>
<code>php-lint-all</code>
- Check PHP Syntax on ALL PHP staged files with user friendly messages and colors
</li>
<li>
<code>php-lint</code>
- Runs php -l on all staged files. Exits when it hits the first errored file
</li>
<li>
<code>php-unit</code>
- Run the full php unit test. Checks which PHPUnit executable is available first and then runs it. Preference order is vendor/bin, phpunit and phpunit.phar.
</li>
<li>
<code>php-cs</code>
- Run php codesniffer against all staged files.
</li>
<li>
<code>php-cbf</code>
- Run php codesniffer against all staged files.
</li>
<li>
<code>php-cs-fixer</code>
- Run php coding standards fixer against all staged files.
</li>
</ul>
<h3>
<a href="https://github.com/elidupuis/mirrors-jscs" target="_blank">
github.com/elidupuis/mirrors-jscs
</a>
</h3>
<ul>
<li>
<code>jscs</code>
</li>
</ul>
<h3>
<a href="https://github.com/elidupuis/mirrors-sass-lint" target="_blank">
github.com/elidupuis/mirrors-sass-lint
</a>
</h3>
<ul>
<li>
<code>sass-lint</code>
</li>
</ul>
<h3>
<a href="https://github.com/jumanjihouse/pre-commit-hooks" target="_blank">
github.com/jumanjihouse/pre-commit-hooks
</a>
</h3>
<ul>
<li>
<code>bundler-audit</code>
- Check for vulnerable gem versions and insecure sources
</li>
<li>
<code>check-mailmap</code>
- Detect if an email address needs to be added to mailmap
</li>
<li>
<code>fasterer</code>
- Use fasterer to suggest speed improvements in Ruby
</li>
<li>
<code>forbid-binary</code>
- Forbid binary files from being committed
</li>
<li>
<code>forbid-space-in-indent</code>
- Forbid spaces in indentation
</li>
<li>
<code>git-check</code>
- Use git to check for conflict markers and core.whitespace errors, respecting .gitattributes
</li>
<li>
<code>git-dirty</code>
- Detect if git tree contains modified, staged, or untracked files
</li>
<li>
<code>markdownlint</code>
- Check markdown files and flag style issues
</li>
<li>
<code>reek</code>
- Use reek to find ruby code smells
</li>
<li>
<code>require-ascii</code>
- Ensure file is ascii-encoded
</li>
<li>
<code>rubocop</code>
- Enforce Ruby style guide with rubocop and rubocop-rspec
</li>
<li>
<code>shellcheck</code>
- Shell scripts conform to shellcheck
</li>
<li>
<code>script-must-have-extension</code>
- Non-executable shell script filename ends in .sh
</li>
<li>
<code>script-must-not-have-extension</code>
- Executable shell script omits the filename extension
</li>
<li>
<code>shfmt</code>
- Check shell style with shfmt
</li>
</ul>
<h3>
<a href="https://github.com/jumanjihouse/pre-commit-hook-yamlfmt" target="_blank">
github.com/jumanjihouse/pre-commit-hook-yamlfmt
</a>
</h3>
<ul>
<li>
<code>yamlfmt</code>
- Format YAML files
</li>
</ul>
<h3>
<a href="https://github.com/Lucas-C/pre-commit-hooks" target="_blank">
github.com/Lucas-C/pre-commit-hooks
</a>
</h3>
<ul>
<li>
<code>forbid-crlf</code>
- Forbid files containing CRLF end-lines to be committed
</li>
<li>
<code>remove-crlf</code>
- Replace CRLF end-lines by LF ones before committing
</li>
<li>
<code>forbid-tabs</code>
- Forbid files containing tabs to be committed
</li>
<li>
<code>remove-tabs</code>
- Replace tabs by whitespaces before committing
</li>
<li>
<code>insert-license</code>
- Insert a short license disclaimer as a header comment in source files
</li>
</ul>
<h3>
<a href="https://github.com/Lucas-C/pre-commit-hooks-go" target="_blank">
github.com/Lucas-C/pre-commit-hooks-go
</a>
</h3>
<ul>
<li>
<code>checkmake</code>
- Makefile linter/analyzer
</li>
</ul>
<h3>
<a href="https://github.com/Lucas-C/pre-commit-hooks-java" target="_blank">
github.com/Lucas-C/pre-commit-hooks-java
</a>
</h3>
<ul>
<li>
<code>validate-html</code>
- HTML syntax validator using W3C v.Nu checker, with support for handlebars/jinja2 templates
</li>
</ul>
<h3>
<a href="https://github.com/Lucas-C/pre-commit-hooks-lxml" target="_blank">
github.com/Lucas-C/pre-commit-hooks-lxml
</a>
</h3>
<ul>
<li>
<code>forbid-html-img-without-alt-text</code>
- List every <img> tag without a alt= or data-ng-attr-alt= attribute
</li>
<li>
<code>forbid-non-std-html-attributes</code>
- Detect any non-standard attribute that is not prefixed with data-
</li>
<li>
<code>detect-missing-css-classes</code>
- Detect unused or missing CSS classes definitions, and abort if any of the later ones is found
</li>
<li>
<code>html-tags-blacklist</code>
- Forbid some HTML tags
</li>
<li>
<code>html-attributes-blacklist</code>
- Forbid some HTML attributes
</li>
</ul>
<h3>
<a href="https://github.com/Lucas-C/pre-commit-hooks-markup" target="_blank">
github.com/Lucas-C/pre-commit-hooks-markup
</a>
</h3>
<ul>
<li>
<code>rst-linter</code>
- Check .rst files with the same linter used by pypi.org
</li>
</ul>
<h3>
<a href="https://github.com/Lucas-C/pre-commit-hooks-nodejs" target="_blank">
github.com/Lucas-C/pre-commit-hooks-nodejs
</a>
</h3>
<ul>
<li>
<code>htmlhint</code>
- NodeJS HTML syntax linter (htmlhint)
</li>
<li>
<code>htmllint</code>
- NodeJS HTML syntax linter (htmllint)
</li>
<li>
<code>dockerfile_lint</code>
- Dockerfile linter
</li>
<li>
<code>markdown-toc</code>
- Insert a table of contents in Markdown files, like a README.md
</li>
</ul>
<h3>
<a href="https://github.com/Lucas-C/pre-commit-hooks-safety" target="_blank">
github.com/Lucas-C/pre-commit-hooks-safety
</a>
</h3>
<ul>
<li>
<code>python-safety-dependencies-check</code>
- Analyze your Python requirements for known security vulnerabilities
</li>
</ul>
<h3>
<a href="https://github.com/chriskuehl/puppet-pre-commit-hooks" target="_blank">
github.com/chriskuehl/puppet-pre-commit-hooks
</a>
</h3>
<ul>
<li>
<code>epp-validate</code>
- Validate syntax of Puppet EPP templates
</li>
<li>
<code>erb-validate</code>
- Validate syntax of Ruby ERB templates
</li>
<li>
<code>g10k-validate</code>
- Validate syntax of Puppetfile using g10k
</li>
<li>
<code>puppet-lint</code>
- Check Puppet manifests for stylistic problems
</li>
<li>
<code>puppet-validate</code>
- Validate syntax of Puppet manifests
</li>
<li>
<code>r10k-validate</code>
- Validate syntax of Puppetfile using r10k
</li>
<li>
<code>ruby-validate</code>
- Validate syntax of ruby code
</li>
</ul>
<h3>
<a href="https://github.com/golangci/golangci-lint" target="_blank">
github.com/golangci/golangci-lint
</a>
</h3>
<ul>
<li>
<code>golangci-lint</code>
- Fast linters runner for Go.
</li>
</ul>
<h3>
<a href="https://github.com/Bahjat/pre-commit-golang" target="_blank">
github.com/Bahjat/pre-commit-golang
</a>
</h3>
<ul>
<li>
<code>go-fmt-import</code>
- Runs `goimport,gofmt`, requires golang
</li>
<li>
<code>go-vet</code>
- Runs `go vet`, requires golang
</li>
<li>
<code>go-lint</code>
- Runs `go lint`, requires golang
</li>
<li>
<code>go-unit-tests</code>
- Runs `go test`, requires golang
</li>
<li>
<code>gofumpt</code>
- Runs `gofumpt`, requires github.com/mvdan/gofumpt
</li>
<li>
<code>go-err-check</code>
- Runs `errcheck`, requires github.com/kisielk/errcheck
</li>
<li>
<code>go-static-check</code>
- Runs `staticcheck`, install https://staticcheck.io/docs/
</li>
<li>
<code>golangci-lint</code>
- Runs `golangci-lint`, install https://github.com/golangci/golangci-lint
</li>
</ul>
<h3>
<a href="https://github.com/dnephin/pre-commit-golang" target="_blank">
github.com/dnephin/pre-commit-golang
</a>
</h3>
<ul>
<li>
<code>go-fmt</code>
- Runs `gofmt`, requires golang
</li>
<li>
<code>go-imports</code>
- Runs `goimports`, requires golang
</li>
<li>
<code>go-vet</code>
- Runs `go vet`, requires golang
</li>
<li>
<code>go-lint</code>
- Runs `golint`, requires https://github.com/golang/lint
</li>
<li>
<code>go-cyclo</code>
- Runs `gocyclo`, requires https://github.com/fzipp/gocyclo
</li>
<li>
<code>validate-toml</code>
- Runs `tomlv`, requires https://github.com/BurntSushi/toml/tree/master/cmd/tomlv"
</li>
<li>
<code>no-go-testing</code>
- Checks that no files are using `testing.T`, if you want developers to use a different testing framework
</li>
<li>
<code>gometalinter</code>
-
</li>
<li>
<code>golangci-lint</code>
- Runs `golangci-lint`, requires https://github.com/golangci/golangci-lint
</li>
<li>
<code>go-critic</code>
- Runs `go-critic`, requires https://github.com/go-critic/go-critic
</li>
<li>
<code>go-unit-tests</code>
- Runs `go test`
</li>
<li>
<code>go-build</code>
- Runs `go build`, requires golang
</li>
</ul>
<h3>
<a href="https://github.com/troian/pre-commit-golang" target="_blank">
github.com/troian/pre-commit-golang
</a>
</h3>
<ul>
<li>
<code>go-fmt</code>
- Runs `gofmt`, requires golang
</li>
<li>
<code>go-imports</code>
- Runs `goimports`, requires golang
</li>
<li>
<code>go-vet</code>
- Runs `go vet`, requires golang
</li>
<li>
<code>go-lint</code>
- Runs `golint`, requires https://github.com/golang/lint
</li>
<li>
<code>go-metalinter</code>
- Runs `gometalinter`, requires https://github.com/alecthomas/gometalinter
</li>
<li>
<code>go-build</code>
- Makes sure Go code can build
</li>
<li>
<code>go-build-plugin</code>
- Makes sure Go code can build package as plugin
</li>
</ul>
<h3>
<a href="https://github.com/jstewmon/check-swagger" target="_blank">
github.com/jstewmon/check-swagger
</a>
</h3>
<ul>
<li>
<code>check-swagger</code>
- Hook to validate swagger specs.
</li>
</ul>
<h3>
<a href="https://github.com/detailyang/pre-commit-shell" target="_blank">
github.com/detailyang/pre-commit-shell
</a>
</h3>
<ul>
<li>
<code>shell-lint</code>
- Check Shell Syntax on ALL staged files with user friendly messages and colors
</li>
</ul>
<h3>
<a href="https://github.com/bemeurer/beautysh" target="_blank">
github.com/bemeurer/beautysh
</a>
</h3>
<ul>
<li>
<code>beautysh</code>
- A Bash beautifier for the masses.
https://pypi.python.org/pypi/beautysh
</li>
</ul>
<h3>
<a href="https://github.com/antonbabenko/pre-commit-terraform" target="_blank">
github.com/antonbabenko/pre-commit-terraform
</a>
</h3>
<ul>
<li>
<code>terraform_fmt</code>
- Rewrites all Terraform configuration files to a canonical format.
</li>
<li>
<code>terraform_docs</code>
- Inserts input and output documentation into README.md (using terraform-docs).
</li>
<li>
<code>terraform_docs_without_aggregate_type_defaults</code>
- Inserts input and output documentation into README.md (using terraform-docs).
</li>
<li>
<code>terraform_docs_replace</code>
- Overwrite content of README.md with terraform-docs.
</li>
<li>
<code>terraform_validate</code>
- Validates all Terraform configuration files.
</li>
<li>
<code>terraform_tflint</code>
- Validates all Terraform configuration files with TFLint.
</li>
<li>
<code>terragrunt_fmt</code>
- Rewrites all Terragrunt configuration files to a canonical format.
</li>