mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 18:46:53 +00:00
feat: add a simple HTML check pre-commit hook
This commit is contained in:
parent
ae7cee538b
commit
1d83507cf7
10 changed files with 118 additions and 0 deletions
1
testing/resources/bad_html_not_closed.html
Normal file
1
testing/resources/bad_html_not_closed.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div>hello
|
||||
1
testing/resources/bad_html_too_many_close.html
Normal file
1
testing/resources/bad_html_too_many_close.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div>hello</div></div>
|
||||
1
testing/resources/bad_html_wrong_close.html
Normal file
1
testing/resources/bad_html_wrong_close.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div><p></ul></div>
|
||||
1
testing/resources/ok_html_fragment.html
Normal file
1
testing/resources/ok_html_fragment.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<p><a href="https://httpbin.org/">Awesome<a></p>
|
||||
10
testing/resources/ok_html_page.html
Normal file
10
testing/resources/ok_html_page.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!doctype html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>My test page</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>This is my page</p>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue