This patch simplifies error reporting, making it straight-forward. It also adds a few tests to make doclint more robust.