error output now compatible with vim quickfix

Prior to this change, read errors and parse errors would cause vim quickfix to
open new buffers with meaningless paths. For logged output, vim would open a new
buffer with the timestamp as a name.

This change makes some assumptions that are true today:
 * Errors from ioutil.ReadFile are user-readable and meaningful alone.
    e.g. open example.go: no such file or directory
 * Errors from parsing concatenate with the filename to produce quickfix format.
    e.g. example.go:8:1: expected declaration, found '}'

With this change, the suggested autosave behavior from the README is usable.

Signed-off-by: David Symonds <dsymonds@golang.org>
1 file changed
tree: 9c585122bfe793cae27481a7462f273614c738df
  1. golint/
  2. misc/
  3. testdata/
  4. LICENSE
  5. lint.go
  6. lint_test.go
  7. README