Esempio n. 1
0
                   doctype, entities, trailing_whitespace, tabs, charset,
                   void_element, optional_tag, type_attribute,
                   concerns_separation, protocol, names,
                   capitalization, quotation, indentation, formatting,
                   boolean_attribute, invalid_attribute, void_zero,
                   invalid_handler, http_equiv, extra_whitespace.
  --printfilename  Include the filename when printing the results
  -r --recursive   Specify a directory to lint .html files.

"""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import sys

import docopt

import html_linter

__VERSION__ = '0.3.0'

if __name__ == '__main__':
    options = docopt.docopt(__doc__,
                            help=True,
                            version='html5_lint v%s' % __VERSION__)

    sys.exit(html_linter.main(options))
Esempio n. 2
0
 def call_main(**kwargs):
     exit_code = html_linter.main(kwargs)
     return sys.stdout.getvalue().strip().splitlines(), exit_code
Esempio n. 3
0
                   void_element, optional_tag, type_attribute,
                   concerns_separation, protocol, names,
                   capitalization, quotation, indentation, formatting,
                   boolean_attribute, invalid_attribute, void_zero,
                   invalid_handler, http_equiv, extra_whitespace.
  --printfilename  Include the filename when printing the results

"""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import sys

import docopt

import html_linter


__VERSION__ = '0.3.0'


if __name__ == '__main__':
    options = docopt.docopt(__doc__,
                            help=True,
                            version='html5_lint v%s' % __VERSION__)

    sys.exit(html_linter.main(options))
Esempio n. 4
0
 def call_main(**kwargs):
     exit_code = html_linter.main(kwargs)
     return sys.stdout.getvalue().strip().splitlines(), exit_code