html-validator-cli: Command Line Interface for https://validator.w3.org/

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Please see the README on GitHub at https://github.com/iij-ii/html-validator-cli#readme


[Skip to ReadMe]

Properties

Versions0.1.0.3, 0.1.0.3, 0.1.0.4, 0.1.0.5
Change logChangeLog.md
Dependenciesaeson, ansi-terminal, base (>=4.7 && <5), bytestring, directory (>=1.2.5), doctest, filepath, hspec, html-validator-cli, http-conduit, text, utf8-string [details]
LicenseBSD-3-Clause
Copyright2018 Kenzo Yotsuya
AuthorKezno Yotsuya
Maintainerkyotsuya@iij-ii.co.jp
CategoryWeb
Home pagehttps://github.com/iij-ii/html-validator-cli#readme
Bug trackerhttps://github.com/iij-ii/html-validator-cli/issues
Source repositoryhead: git clone https://github.com/iij-ii/html-validator-cli
Executablesvalidatehtml
UploadedTue Oct 16 07:08:34 UTC 2018 by KenzoYotsuya

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for html-validator-cli-0.1.0.3

[back to package description]

html-validator-cli CircleCI

Command Line Interface for The W3C Markup Validation Service

$ cat /var/www/html/index.html
<!DOCTYPE html>
<html>
    <body>Hello, Validator!</body>
</html>

$ validatehtml /var/www/html/index.html
[ERROR] The character encoding was not declared. Proceeding using “windows-1252”.

[ERROR] Element “head” is missing a required instance of child element “title”.
From line 2, column 7; to line 3, column 10
ml> <html>     <body>Hello,
          ^^^^^^^^^^^

[WARNING] Consider adding a “lang” attribute to the “html” start tag to declare the language of this document.
From line 1, column 16; to line 2, column 6
TYPE html> <html>     <
          ^^^^^^^

Usage

Usage: validatehtml [-u URL] [-x DIR] FILE | DIR ...
  -s URL  --validator-url=URL  validation service url (default: https://validator.w3.org/nu/)
  -x DIR  --exclude=DIR        exclude files in DIR
  -1      --oneline            print each message on one line

License

Copyright (c) IIJ Innovation Institute Inc.

Licensed under The 3-Clause BSD License.