W3C home > Mailing lists > Public > www-validator@w3.org > April 2017

Re: New message-filtering options for the HTML checker

From: Fuqiao Xue <xfq.free@gmail.com>
Date: Mon, 17 Apr 2017 20:01:56 +0800
Message-ID: <CAAF+z6GX1Y9+LQSoO_BQvn5Z7pkwjqqBrLPrQk6VC8H6mkGjxw@mail.gmail.com>
To: "Michael[tm] Smith" <mike@w3.org>
Cc: www-validator@w3.org
Hi Mike,

On Mon, Apr 17, 2017 at 4:27 PM, Michael[tm] Smith <mike@w3.org> wrote:
> This weekend I worked on adding new options to the HTML checker to allow
> filtering out (dropping/ignoring/suppressing) errors/warnings you don’t
> care about/don’t want to see/don’t consider to be a problem.

Cool. Thanks for working on this.

It's really useful for CI systems. Whatever the reason, some
errors/warnings (and info?) in web pages are intentional. Previously,
CI servers complained about them all the time, creating too much

> https://github.com/validator/validator/wiki/Message-filtering (and pasted in
> below) has documentation on the options available in various contexts.
> * Filtering messages with the command-line checker
>   * Using the `--filterfile` option
>   * Using the `--filterpattern` option
> * Filtering messages in the network API and Web checker
>   * Using the `filterurl` query param
>   * Using the `filterpattern` query param
> * Filtering messages globally for your own checker service
>   * Using the `resources/message-filters.txt` file
>   * Using the `--filter-file` option to the build script
>   * Using the `nu.validator.servlet.filterfile` Java system property

I have a question about the command-line options. Why do both
`--filterfile` (for vnu.jar) and `--filter-file` (for build.{py,sh})
exist? Is it intentional?
Received on Monday, 17 April 2017 12:02:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 17 April 2017 12:02:34 UTC