Skip to content

Commit 7a2bec0

Browse files
authored
Merge pull request #91 from u-quark/add-html-tidy
Add html-tidy for HTML validation
2 parents ac3a4ca + fcfb945 commit 7a2bec0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ used at the same time.
122122

123123
- [shellcheck](https://github.com/koalaman/shellcheck)
124124

125+
## HTML
126+
127+
- [html-tidy](https://github.com/htacg/tidy-html5)
128+
125129
## Terraform
126130

127131
- `terraform-format`: built-in formatter

modules/hooks.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,5 +225,12 @@ in
225225
entry = "${tools.hunspell}/bin/hunspell -l";
226226
files = "\\.((txt)|(html)|(xml)|(md)|(rst)|(tex)|(odf)|\\d)$";
227227
};
228+
html-tidy =
229+
{
230+
name = "html-tidy";
231+
description = "HTML linter";
232+
entry = "${tools.html-tidy}/bin/tidy -quiet -errors";
233+
files = "\\.html$";
234+
};
228235
};
229236
}

nix/tools.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
, cargo
2323
, nodePackages
2424
, hunspell
25+
, html-tidy
2526
}:
2627

2728
{
28-
inherit ansible-lint hlint shellcheck ormolu hindent cabal-fmt nixpkgs-fmt nixfmt nix-linter rustfmt clippy cargo;
29+
inherit ansible-lint hlint shellcheck ormolu hindent cabal-fmt nixpkgs-fmt nixfmt nix-linter rustfmt clippy cargo html-tidy;
2930
inherit (elmPackages) elm-format;
3031
inherit (haskellPackages) stylish-haskell brittany hpack fourmolu;
3132
inherit (pythonPackages) yamllint;

0 commit comments

Comments
 (0)