# # sample configuration file for weblint # distributed as part of weblint 1.011 # # the settings in this file reflect the built-in defaults # #======================================================================== # Weblint Variables #======================================================================== # # message-style: style of warning message to generate # lint generate warnings similar to traditional lint: # file(line #): warning # this is the default # short don't include the filename in the warning message: # line #: warning # terse a style which is easy for another program to parse: # file:line #:warning-identifier set message-style = lint # # url-get: a program which can be used to retrieve a URL # set url-get = lynx -source #======================================================================== # Extensions #======================================================================== #------------------------------------------------------------------------ # Allow netscape HTML extensions, such as CENTER and FONT #------------------------------------------------------------------------ # uncomment following line to enable the netscape extensions # extension netscape #======================================================================== # Weblint Warnings #======================================================================== #------------------------------------------------------------------------ # By default, when recursing in a directory, weblint will check files # which are symlinks. Uncomment the following line if you want weblint # to skip symlinks. This is equivalent to the -l command-line switch #------------------------------------------------------------------------ # ignore symlinks #------------------------------------------------------------------------ # There are two checks for the case of element tags: # upper-case all tags should be in upper case # lower-case all tags should be in lower case # If both are disabled, then case is ignored #------------------------------------------------------------------------ disable upper-case lower-case #------------------------------------------------------------------------ # Bad style to use `here' as anchor text #------------------------------------------------------------------------ enable here-anchor #------------------------------------------------------------------------ # Flag any elements which are not recognized. This will catch mis-typed # elements (e.g. , or <\BODY>). #------------------------------------------------------------------------ enable unknown-element #------------------------------------------------------------------------ # check element attributes to see if they are legal #------------------------------------------------------------------------ enable unknown-attribute #------------------------------------------------------------------------ # flag if no HEAD element in page #------------------------------------------------------------------------ enable require-head #------------------------------------------------------------------------ # Flag elements which should only appear once on a page (eg TITLE) #------------------------------------------------------------------------ enable once-only #------------------------------------------------------------------------ # Flag case where page has BODY element, but no HEAD defined #------------------------------------------------------------------------ enable body-no-head #------------------------------------------------------------------------ # If you want outer element to be #------------------------------------------------------------------------ enable html-outer #------------------------------------------------------------------------ # Flag elements which are only allowed to appear in HEAD element #------------------------------------------------------------------------ enable head-element #------------------------------------------------------------------------ # Flag elements which aren't allowed to appear in HEAD element #------------------------------------------------------------------------ enable non-head-element #------------------------------------------------------------------------ # Flag obsolete elements, such as XMP and LISTING #------------------------------------------------------------------------ enable obsolete #------------------------------------------------------------------------ # Flag mis-matched begin and end tags; for example: #

...

#------------------------------------------------------------------------ enable mis-match #------------------------------------------------------------------------ # Flag any IMG elements which don't have ALT text defined. #------------------------------------------------------------------------ enable img-alt #------------------------------------------------------------------------ # Flag illegally nested elements (such as anchors). #------------------------------------------------------------------------ enable nested-element #------------------------------------------------------------------------ # Check for those elements which have required context. # For example, the element can only appear in or #------------------------------------------------------------------------ enable required-context #------------------------------------------------------------------------ # Check for mailto: LINK in header; for example: # # This lets at least lynx users comment on a page. #------------------------------------------------------------------------ disable mailto-link #------------------------------------------------------------------------ # Flag overlapped elements. For example: # text #------------------------------------------------------------------------ enable element-overlap #------------------------------------------------------------------------ # Generate a warning if closing tag is not seen for elements where # it is expected. A common case is ... . #------------------------------------------------------------------------ enable unclosed-element #------------------------------------------------------------------------ # Generate a warning if markup appears inside a comment. This can # confuse quite a few browsers, so it's not a good idea to do it. #------------------------------------------------------------------------ enable markup-in-comment #------------------------------------------------------------------------ # You are not allowed to have any whitespace between the opening # < and element name. #------------------------------------------------------------------------ enable leading-whitespace #------------------------------------------------------------------------ # Flag potentially unclosed tags: # < ... < ... > #------------------------------------------------------------------------ enable unexpected-open #------------------------------------------------------------------------ # Elements which do not have any required attributes, but for which at # least one attribute is expected. Anchors, for example. #------------------------------------------------------------------------ enable expected-attribute #------------------------------------------------------------------------ # Required element attributes. Eg IMG tag must have SRC attribute. #------------------------------------------------------------------------ enable required-attribute #------------------------------------------------------------------------ # Currently just checks local links, to see if target file exists. # disabled at the moment, since it generates bogus warnings if the file # path included directories. #------------------------------------------------------------------------ disable bad-link #------------------------------------------------------------------------ # Check for headings which are more than 1 level deeper than previous. # Example:

followed by

#------------------------------------------------------------------------ enable heading-order #------------------------------------------------------------------------ # Check for odd number of double quotes in tag, to catch things like: # #------------------------------------------------------------------------ enable illegal-closing #------------------------------------------------------------------------ # Warn about unclosed comments. For example: # #------------------------------------------------------------------------ enable unclosed-comment #------------------------------------------------------------------------ # Warning for use of physical font markup, rather than logical # For example: # where you should use # where you should use # where you should use , , , or #------------------------------------------------------------------------ disable physical-font #------------------------------------------------------------------------ # Warning for repeated attributes within the same tag. For example: # # #------------------------------------------------------------------------ enable repeated-attribute #------------------------------------------------------------------------ # Warn against use of ' as a delimiter for attribute values. E.g.: # KRI #------------------------------------------------------------------------ enable attribute-delimiter #------------------------------------------------------------------------ # Warn against use of netscape-specific attributes for non netscape-specific # elements. For example: # #------------------------------------------------------------------------ enable netscape-attribute #------------------------------------------------------------------------ # Warn about attributes on a closing tag of container element. E.g.: # click here! #------------------------------------------------------------------------ enable closing-attribute #------------------------------------------------------------------------ # When recursing in a directory, check whether there is a directory # index file. See also the variable `directory-index', which specifies # the name of index file to look for. #------------------------------------------------------------------------ enable directory-index #------------------------------------------------------------------------ # Warn about empty container elements. For example: # #------------------------------------------------------------------------ enable empty-container #------------------------------------------------------------------------ # Warn about situations where one element is expected to immediately # follow another, with no tags or text between. For example: # 1) LH should be the first thing in a UL, if it appears at all # 2) should be nothing between and #------------------------------------------------------------------------ enable must-follow