Suppress CSS lint checking; accept longer lines.

The CSS style that Pocketlint expects is just too different from what we
have.  Don't check those files for now.

Also, a maximum line length of 300 still gives too many warnings, so I'm
regretfully dumping the default to 400 characters.  The traditional 80
characters are already longer than the measured optimum for human reading,
so I hope some day we can address this!
This commit is contained in:
Jeroen Vermeulen 2015-05-17 20:03:27 +07:00
parent 262edf2511
commit 108da16374

View File

@ -279,23 +279,31 @@ def check_lint(root_dir, ignore, verbose, dry_run, files_at_a_time,
'.hh',
'.hpp',
'.hxx',
# Configuration file.
'.ini',
# CSS.
'.css',
# CSS: Don't check for now. Styles differ too much.
# '.css',
# JavaScript.
'.js',
# Markdown documentation.
'.md',
# Perl.
'.cgi',
'.perl',
'.pl',
'.pm',
# PHP.
'.php',
# Python.
'.py',
# Shell script.
'.sh',
]
@ -339,7 +347,7 @@ def parse_arguments():
"Process NUMBER files in one command line. "
"Defaults to %(default)s."))
parser.add_argument(
'--max-line-len', '-m', type=int, metavar='NUMBER', default=300,
'--max-line-len', '-m', type=int, metavar='NUMBER', default=400,
help=(
"Allow maximum line length of NUMBER characters. Default is "
"%(default)s, optimal for humans is said to be somewhere around "